fix(deploy): wow I really can't read documentation can I
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ashhhleyyy 2022-08-13 23:00:38 +01:00
parent c92d26d4b9
commit d995f0e215
Signed by: ash
GPG key ID: 83B789081A0878FB
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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', () => {