# ============================================================================= # Task Reporter - Frontend Environment Configuration # ============================================================================= # Copy this file to .env and customize as needed. # All variables are optional and have sensible defaults for development. # ============================================================================= # ----------------------------------------------------------------------------- # API Configuration # ----------------------------------------------------------------------------- # API Base URL (optional) # - For local development: leave empty or don't set (will use /api with proxy) # - For production with separate backend: set to full URL # Example: https://api.yourdomain.com/api VITE_API_BASE_URL= # API request timeout in milliseconds (default: 30000 = 30 seconds) VITE_API_TIMEOUT_MS=30000 # ----------------------------------------------------------------------------- # Development Server Configuration # ----------------------------------------------------------------------------- # Frontend development server port (default: 3000) VITE_PORT=3000 # Backend API URL for development proxy (default: http://localhost:8000) # This is used by Vite's proxy configuration during development VITE_BACKEND_URL=http://localhost:8000 # ----------------------------------------------------------------------------- # WebSocket Configuration # ----------------------------------------------------------------------------- # Maximum WebSocket reconnection delay in milliseconds (default: 30000 = 30 seconds) # The reconnection uses exponential backoff, capped at this value VITE_MAX_RECONNECT_DELAY_MS=30000 # ----------------------------------------------------------------------------- # Query/Cache Configuration # ----------------------------------------------------------------------------- # Messages refetch interval in milliseconds (default: 30000 = 30 seconds) # Used for polling online users status VITE_MESSAGES_REFETCH_INTERVAL_MS=30000 # Reports stale time in milliseconds (default: 30000 = 30 seconds) # Time before cached report data is considered stale VITE_REPORTS_STALE_TIME_MS=30000 # ============================================================================= # Notes # ============================================================================= # - All VITE_ prefixed variables are exposed to the browser # - Never put sensitive data (API keys, secrets) in frontend environment variables # - When VITE_API_BASE_URL is set: # - http:// URLs will be converted to ws:// for WebSocket connections # - https:// URLs will be converted to wss:// for WebSocket connections # =============================================================================