From b450648caa0d1bd5c91e67a33153bbacaf57f006 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 10 Aug 2024 00:14:17 +0900 Subject: feat: prepend base path --- frontend/app/components/GolfWatchApp.client.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'frontend/app/components/GolfWatchApp.client.tsx') diff --git a/frontend/app/components/GolfWatchApp.client.tsx b/frontend/app/components/GolfWatchApp.client.tsx index aefe945..829f709 100644 --- a/frontend/app/components/GolfWatchApp.client.tsx +++ b/frontend/app/components/GolfWatchApp.client.tsx @@ -20,11 +20,10 @@ export default function GolfWatchApp({ game: Game; sockToken: string; }) { - // const socketUrl = `wss://t.nil.ninja/iosdc-japan/2024/sock/golf/${game.game_id}/watch?token=${sockToken}`; const socketUrl = process.env.NODE_ENV === "development" - ? `ws://localhost:8002/sock/golf/${game.game_id}/watch?token=${sockToken}` - : `ws://api-server/sock/golf/${game.game_id}/watch?token=${sockToken}`; + ? `ws://localhost:8002/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/watch?token=${sockToken}` + : `wss://t.nil.ninja/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/watch?token=${sockToken}`; const { lastJsonMessage, readyState } = useWebSocket( socketUrl, -- cgit v1.2.3-70-g09d2