# CS2.WTF Environment Configuration # Copy this file to .env for local development # DO NOT commit .env to version control # ============================================ # API Configuration # ============================================ # Backend API Base URL # Development: Vite proxy forwards /api to this URL (default: http://localhost:8000) # Production: Set to your actual backend URL (e.g., https://api.csgow.tf) # Note: In development, the frontend uses /api and Vite proxies to this URL VITE_API_BASE_URL=http://localhost:8000 # API request timeout in milliseconds # Default: 10000 (10 seconds) VITE_API_TIMEOUT=10000 # ============================================ # Feature Flags # ============================================ # Enable live match updates (polling/WebSocket) # Default: false VITE_ENABLE_LIVE_MATCHES=false # Enable analytics tracking # Default: true (respects user consent) VITE_ENABLE_ANALYTICS=true # Enable debug mode (verbose logging, dev tools) # Default: false VITE_DEBUG_MODE=false # ============================================ # Analytics & Tracking (Optional) # ============================================ # Plausible Analytics # Only required if analytics is enabled # VITE_PLAUSIBLE_DOMAIN=cs2.wtf # VITE_PLAUSIBLE_API_HOST=https://plausible.io # Umami Analytics (alternative) # VITE_UMAMI_WEBSITE_ID=your-website-id # VITE_UMAMI_SRC=https://analytics.example.com/script.js # ============================================ # Experimental Features # ============================================ # Enable WebGL-based heatmaps (high performance) # Default: false (use Canvas fallback) # VITE_ENABLE_WEBGL_HEATMAPS=false # Enable MSW API mocking in development # Useful for frontend development without backend # Default: false # VITE_ENABLE_MSW_MOCKING=false # ============================================ # Build Configuration # ============================================ # App version (auto-populated from package.json) # VITE_APP_VERSION=2.0.0 # Build timestamp (auto-populated during build) # VITE_BUILD_TIMESTAMP=2024-11-04T12:00:00Z # ============================================ # SSR/Deployment (Advanced) # ============================================ # Public base URL for the application # Used for canonical URLs, sitemaps, etc. # PUBLIC_BASE_URL=https://cs2.wtf # Origin whitelist for CORS (if handling API in same domain) # PUBLIC_CORS_ORIGINS=https://cs2.wtf,https://www.cs2.wtf