From 269f5b6f595c25a33f51c92dd8c6b6cf66bfc6e7 Mon Sep 17 00:00:00 2001 From: calmery <12670155+calmery@users.noreply.github.com> Date: Thu, 2 Sep 2021 12:17:28 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=89=E3=83=A1=E3=82=A4=E3=83=B3=E3=81=AE?= =?UTF-8?q?=E6=9C=89=E5=8A=B9=E6=9C=9F=E9=99=90=E5=88=87=E3=82=8C=E3=81=AE?= =?UTF-8?q?=E3=81=9F=E3=82=81=20Heroku=20=E3=81=AE=20URL=20=E3=82=92?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E4=BD=BF=E7=94=A8=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/exhibition/useMultuplay.ts | 2 +- src/utils/api.ts | 2 +- src/utils/axios.ts | 2 +- src/utils/cheki.ts | 4 ++-- src/utils/exhibition.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/hooks/exhibition/useMultuplay.ts b/src/hooks/exhibition/useMultuplay.ts index 95b017d9..95794897 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 f343d79b..6fe8d4b1 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 29d57614..e75d690d 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 f9f8cb45..055ff2c7 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 976010ee..d57d7db8 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" ); };