diff --git a/src/hooks/exhibition/useMultuplay.ts b/src/hooks/exhibition/useMultuplay.ts index 95b017d..9579489 100644 --- a/src/hooks/exhibition/useMultuplay.ts +++ b/src/hooks/exhibition/useMultuplay.ts @@ -22,7 +22,7 @@ export type UpdatePayload = { const createSocket = (token?: string) => io( process.env.NODE_ENV === "production" - ? "https://multiplay.creamsoda.in" + ? "https://multiplay-creamsoda-in-a-dream.herokuapp.com" : "http://localhost:5000", { autoConnect: false, diff --git a/src/utils/api.ts b/src/utils/api.ts index f343d79..6fe8d4b 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -5,7 +5,7 @@ export type Response = { export const get = (path: string, options?: RequestInit): Promise => { const baseUrl = process.env.NODE_ENV === "production" - ? "https://creamsoda.in/a/dream/" + ? "https://creamsoda-in-a-dream.herokuapp.com/a/dream/" : "http://localhost:5000/"; return fetch( diff --git a/src/utils/axios.ts b/src/utils/axios.ts index 29d5761..e75d690 100644 --- a/src/utils/axios.ts +++ b/src/utils/axios.ts @@ -3,7 +3,7 @@ import axios from "axios"; export default axios.create({ baseURL: process.env.NODE_ENV === "production" - ? "https://creamsoda.in/a/dream/" + ? "https://creamsoda-in-a-dream.herokuapp.com/a/dream/" : "http://localhost:5000/", headers: { Accept: "application/json", diff --git a/src/utils/cheki.ts b/src/utils/cheki.ts index f9f8cb4..055ff2c 100644 --- a/src/utils/cheki.ts +++ b/src/utils/cheki.ts @@ -54,7 +54,7 @@ const convertUrlToImage = (url: string): Promise => const getEndpointUrl = (path: string) => url.resolve( process.env.NODE_ENV === "production" - ? "https://creamsoda.in/a/dream/" + ? "https://creamsoda-in-a-dream.herokuapp.com/a/dream/" : "http://localhost:5000/", path.startsWith("/") ? path.slice(1) : path ); @@ -191,7 +191,7 @@ export const getImageSizeByDirection = (direction: ChekiDirection) => ({ export const ping = async (): Promise => { await fetch( process.env.NODE_ENV === "production" - ? "https://creamsoda.in/a/dream" + ? "https://creamsoda-in-a-dream.herokuapp.com/a/dream" : "http://localhost:5000" ); }; diff --git a/src/utils/exhibition.ts b/src/utils/exhibition.ts index 976010e..d57d7db 100644 --- a/src/utils/exhibition.ts +++ b/src/utils/exhibition.ts @@ -101,7 +101,7 @@ export const getScene = async (url: string) => { export const ping = async (): Promise => { await fetch( process.env.NODE_ENV === "production" - ? "https://multiplay.creamsoda.in/a/dream" + ? "https://multiplay-creamsoda-in-a-dream.herokuapp.com/a/dream" : "http://localhost:5000" ); };