diff --git a/src/App.svelte b/src/App.svelte index b0ab0d0..241ec93 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -31,7 +31,7 @@ function joinGame(uname: string, gameId: string) { players = []; - socket = io(`http://${window.location.hostname}:3000/`); + socket = io(import.meta.env.GAMESERVER_URL || `http://${window.location.hostname}:3000/`); socket.on('connect', () => { socket.emit('joinGame', gameId, uname, (result) => { if (result.error === false) {