diff --git a/frontend/src/routes/room/[...slug]/+page.svelte b/frontend/src/routes/room/[...slug]/+page.svelte index 699676a..bb25813 100644 --- a/frontend/src/routes/room/[...slug]/+page.svelte +++ b/frontend/src/routes/room/[...slug]/+page.svelte @@ -18,6 +18,7 @@ import Challenge from "../../../components/rooms/Challenge.svelte"; import { refreshRequest } from "../../../requests/auth.request"; import Waiting from "../../../components/rooms/Waiting.svelte"; + import { env } from "$env/dynamic/public"; const p = "p"; @@ -26,7 +27,7 @@ const room = writable(null); const member = writable(null); const parcours = writable(null); - const ws = connect("ws://127.0.0.1:8002/api/ws/room/" + $page.params.slug); + const ws = connect(`${env.PUBLIC_API_BASE}api/ws/room/${$page.params.slug}`); setContext("room", room); setContext("member", member);