From d995f0e2153e3024ba2a8d21901545f95ef71baf Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sat, 13 Aug 2022 23:00:38 +0100 Subject: [PATCH] fix(deploy): wow I really can't read documentation can I --- .drone.yml | 2 +- src/App.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', () => {