From b450648caa0d1bd5c91e67a33153bbacaf57f006 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sat, 10 Aug 2024 00:14:17 +0900
Subject: feat: prepend base path

---
 frontend/app/components/GolfPlayApp.client.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'frontend/app/components/GolfPlayApp.client.tsx')

diff --git a/frontend/app/components/GolfPlayApp.client.tsx b/frontend/app/components/GolfPlayApp.client.tsx
index 911fae0..43828e6 100644
--- a/frontend/app/components/GolfPlayApp.client.tsx
+++ b/frontend/app/components/GolfPlayApp.client.tsx
@@ -22,11 +22,10 @@ export default function GolfPlayApp({
 	game: Game;
 	sockToken: string;
 }) {
-	// const socketUrl = `wss://t.nil.ninja/iosdc-japan/2024/sock/golf/${game.game_id}/play?token=${sockToken}`;
 	const socketUrl =
 		process.env.NODE_ENV === "development"
-			? `ws://localhost:8002/sock/golf/${game.game_id}/play?token=${sockToken}`
-			: `ws://api-server/sock/golf/${game.game_id}/play?token=${sockToken}`;
+			? `ws://localhost:8002/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/play?token=${sockToken}`
+			: `wss://t.nil.ninja/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/play?token=${sockToken}`;
 
 	const { sendJsonMessage, lastJsonMessage, readyState } =
 		useWebSocket<WebSocketMessage>(socketUrl, {});
-- 
cgit v1.3.1

