diff --git a/apps/web/.env.production b/apps/web/.env.production new file mode 100644 index 000000000..8c90d3cde --- /dev/null +++ b/apps/web/.env.production @@ -0,0 +1,47 @@ +# ============================================================================= +# VEZA FRONTEND - PRODUCTION CONFIGURATION +# ============================================================================= +# This file contains production-specific environment variables for the frontend +# These URLs should point to your production backend API +# ============================================================================= + +# --- API URLs (ABSOLUTE) --- +# Production backend API URL (must be absolute, not relative) +# Example: https://api.veza.com/api/v1 +VITE_API_URL=https://api.veza.com/api/v1 + +# WebSocket URL for real-time features +# Example: wss://api.veza.com/ws +VITE_WS_URL=wss://api.veza.com/ws + +# Stream server URL for media streaming +# Example: https://api.veza.com/stream +VITE_STREAM_URL=https://api.veza.com/stream + +# Upload server URL for file uploads +# Example: https://api.veza.com/upload +VITE_UPLOAD_URL=https://api.veza.com/upload + +# --- API VERSION --- +# API version to use (sent in X-API-Version header) +VITE_API_VERSION=v1 + +# --- FEATURE FLAGS --- +# Enable/disable features in production +VITE_ENABLE_VALIDATION_ALERTING=true + +# ============================================================================= +# DEPLOYMENT NOTES +# ============================================================================= +# +# For local testing with production build: +# 1. Update URLs above to match your local setup (e.g., http://veza.com:8080/api/v1) +# 2. Build: npm run build +# 3. Preview: npm run preview +# +# For actual production deployment: +# 1. Update URLs to real production domains +# 2. Ensure backend CORS allows your frontend domain +# 3. Use HTTPS for all URLs (except local testing) +# +# =============================================================================