build for prod
All checks were successful
CI/CD Pipeline / build (push) Successful in 19s

This commit is contained in:
2026-03-04 10:34:09 -07:00
parent 9072993414
commit 07687c8ca8
3 changed files with 8 additions and 2 deletions

View File

@@ -9,6 +9,9 @@ RUN npm install -g pnpm && pnpm install --frozen-lockfile
COPY . .
ARG VITE_WS_SERVER=ws://localhost:4000/socket
ENV VITE_WS_SERVER=$VITE_WS_SERVER
RUN pnpm build
FROM nginx:alpine

View File

@@ -6,7 +6,7 @@ import { WebSocketProvider } from "./contexts/WebSocketContext.tsx";
import { GameChannelProvider } from "./contexts/GameChannelContext.tsx";
import { NameInput } from "./game/NameInput.tsx";
const WS_SERVER = "ws://localhost:4000/socket";
const WS_SERVER = import.meta.env.VITE_WS_SERVER ?? "ws://localhost:4000/socket";
const getPlayerNameFromUrl = () => {
const params = new URLSearchParams(window.location.search);