Skip to content

Commit

Permalink
fixed api urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Dec 27, 2023
1 parent fc9b36a commit 30fcb54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/testnet/frontend/src/api/fetchPlanetsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const fetchPlanetsData = async (): Promise<PlanetDetails[]> => {
console.log(nodeEnv);
const apiUrl =
nodeEnv === "production"
? "https://api.testnet.no-game.xyz/universe"
? "https://www.api.testnet.no-game.xyz/universe"
: "http://localhost:3001/universe";

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const LeadearBoardFleet = ({ planetId }: Props) => {
const nodeEnv = import.meta.env.VITE_NODE_ENV;
const apiUrl =
nodeEnv === "production"
? "https://api.testnet.no-game.xyz/fleet"
? "https://www.api.testnet.no-game.xyz/fleet"
: "http://localhost:3001/fleet";

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const LeadearBoardMain = ({ planetId }: Props) => {
const nodeEnv = import.meta.env.VITE_NODE_ENV;
const apiUrl =
nodeEnv === "production"
? "https://api.testnet.no-game.xyz/leaderboard"
? "https://www.api.testnet.no-game.xyz/leaderboard"
: "http://localhost:3001/leaderboard";

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const LeadearBoardTech = ({ planetId }: Props) => {
const nodeEnv = import.meta.env.VITE_NODE_ENV;
const apiUrl =
nodeEnv === "production"
? "https://api.testnet.no-game.xyz/tech"
? "https://www.api.testnet.no-game.xyz/tech"
: "http://localhost:3001/tech";

useEffect(() => {
Expand Down

0 comments on commit 30fcb54

Please sign in to comment.