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:site
- pnpm build:server - pnpm build:server
environment: environment:
GAMESERVER_URL: https://game-server.ashhhleyyy.dev/ VITE_GAMESERVER_URL: https://game-server.ashhhleyyy.dev/
- name: Deploy - name: Deploy
image: alpine image: alpine
commands: commands:

View file

@ -40,7 +40,7 @@
function joinGame(uname: string, gameId: string) { function joinGame(uname: string, gameId: string) {
players = []; players = [];
socket = io( socket = io(
import.meta.env.GAMESERVER_URL || import.meta.env.VITE_GAMESERVER_URL ||
`http://${window.location.hostname}:3000/` `http://${window.location.hostname}:3000/`
); );
socket.on('connect', () => { socket.on('connect', () => {