# Multiplayer WebSocket backend URL, read at build time via # `import.meta.env.VITE_WS_URL` (see src/net/client.ts). Defaults to # ws://localhost:8080 for local dev when unset. # # For a Netlify deploy, set this in Site settings -> Environment # variables (or `netlify env:set VITE_WS_URL wss://your-backend-host`) # to the deployed backend's address. Use wss:// (not ws://) once the # Netlify site is served over https, or the browser blocks the # connection as mixed content. The backend's own listen port is # separately configurable via its host's PORT env var — see # backend/src/index.js — and is not set here; it only affects which # port the backend process binds to, not this URL. VITE_WS_URL=ws://localhost:8080