Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
ドメインの有効期限切れのため Heroku の URL を直接使用する
Browse files Browse the repository at this point in the history
  • Loading branch information
calmery committed Sep 2, 2021
1 parent 90c315e commit 269f5b6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/hooks/exhibition/useMultuplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Response<T> = {
export const get = <T>(path: string, options?: RequestInit): Promise<T> => {
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(
Expand Down
2 changes: 1 addition & 1 deletion src/utils/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/cheki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const convertUrlToImage = (url: string): Promise<HTMLImageElement> =>
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
);
Expand Down Expand Up @@ -191,7 +191,7 @@ export const getImageSizeByDirection = (direction: ChekiDirection) => ({
export const ping = async (): Promise<void> => {
await fetch(
process.env.NODE_ENV === "production"
? "https://creamsoda.in/a/dream"
? "https://creamsoda-in-a-dream.herokuapp.com/a/dream"
: "http://localhost:5000"
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/utils/exhibition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const getScene = async (url: string) => {
export const ping = async (): Promise<void> => {
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"
);
};
Expand Down

0 comments on commit 269f5b6

Please sign in to comment.