# Space-Game Environment Configuration Example # Copy this file to .env.local and fill in your actual values # NEVER commit .env.local to version control # ============================================================================== # SpacetimeDB Configuration # ============================================================================== # Primary variables (used by Rust backend) SPACETIMEDB_DB_NAME=void-nav-dev SPACETIMEDB_HOST=http://127.0.0.1:3000 # Frontend variables (Vite apps) VITE_SPACETIMEDB_DB_NAME=void-nav-dev VITE_SPACETIMEDB_HOST=http://127.0.0.1:3000 # ============================================================================== # Better Auth Configuration # ============================================================================== # Generate a secure random secret for production: # openssl rand -base64 32 BETTER_AUTH_SECRET=your-secret-here-generate-with-openssl-rand-base64-32 BETTER_AUTH_URL=http://localhost:4000 # ============================================================================== # Application URLs # ============================================================================== VITE_DOCS_URL=http://localhost:5173/docs VITE_GAME_URL=http://localhost:5175 # ============================================================================== # CORS Configuration (for auth service) # ============================================================================== # Comma-separated list of allowed origins for CORS # Example: CORS_ALLOWED_ORIGINS=https://docs.example.com,https://site.example.com CORS_ALLOWED_ORIGINS=http://localhost:5173,http://localhost:5174,http://localhost:5175