fix(deploy): wow I really can't read documentation can I
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c92d26d4b9
commit
d995f0e215
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
|
@ -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', () => {
|
||||||
|
|
Loading…
Reference in a new issue