diff --git a/.drone.yml b/.drone.yml index 029fa54..85e2541 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,7 @@ steps: - pnpm build:site - pnpm build:server environment: - GAMESERVER_URL: https://game-server.ashhhleyyy.dev/ + VITE_GAMESERVER_URL: https://game-server.ashhhleyyy.dev/ - name: Deploy image: alpine commands: diff --git a/src/App.svelte b/src/App.svelte index 5870a7d..18098c6 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -40,7 +40,7 @@ function joinGame(uname: string, gameId: string) { players = []; socket = io( - import.meta.env.GAMESERVER_URL || + import.meta.env.VITE_GAMESERVER_URL || `http://${window.location.hostname}:3000/` ); socket.on('connect', () => {