veza/apps/web/.env.production
senke e814bd2235 config(prod): add frontend production environment file
Created .env.production for frontend with absolute API URLs for
production deployment.

Configuration:
- VITE_API_URL: https://api.veza.com/api/v1
- VITE_WS_URL: wss://api.veza.com/ws
- VITE_STREAM_URL: https://api.veza.com/stream
- VITE_UPLOAD_URL: https://api.veza.com/upload
- VITE_API_VERSION: v1

Features:
- Absolute URLs (required for production, no Vite proxy)
- HTTPS/WSS for secure connections
- Validation alerting enabled
- Deployment notes included

Usage:
- Local testing: Update URLs to local domains, npm run build, npm run preview
- Production: Update to real domains, ensure CORS configured

Impact: Frontend can now be deployed to production with proper API URLs.

Fixes: P2.2 from audit AUDIT_TEMP_29_01_2026.md
2026-01-29 23:23:04 +01:00

47 lines
1.7 KiB
Text

# =============================================================================
# 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)
#
# =============================================================================