# ============================================================================ # rublox-player environment variables # ============================================================================ # Copy this file to .env (`cp .env.example .env`), then edit if needed. # Defaults below point at the public staging environment so you can run the # player out of the box without setting up your own backend. # Backend base URL (HTTP API). # Leave empty to use vite-proxy in dev (http://localhost:5173 → staging). # In production set to your origin if frontend & backend are on different hosts. VITE_API_BASE= # Colyseus realtime (multiplayer) endpoints. # These DO need to be configured for multiplayer to work. # Public staging: VITE_REALTIME_HTTP=https://dev-api.rublox.pro/api-game VITE_REALTIME_WS=wss://dev-api.rublox.pro/api-game # Rublox main site — where players are redirected if no auth ticket present. VITE_RUBLOX_HOME=https://rublox.pro/app # Standalone mode — load a built-in sample game instead of fetching from API. # Useful for first-run / dogfood / when backend is unreachable. # Values: "true" | "false" VITE_STANDALONE=false # Asset CDN base URL (optional). When set, .glb/.png/.mp3 are loaded from # this URL instead of the local public/ folder. Useful in production to # offload bandwidth to Cloudflare R2 or similar. # VITE_ASSETS_CDN=https://cdn.rublox.pro/assets