Files
ember-market-frontend/env.example
NotII 57c2fbdf50 Add CapRover deployment fix and improve env var handling
Added CAPROVER-DEPLOYMENT-FIX.md with instructions for required environment variables to prevent 500 errors. Improved validation and fallback logic for SERVER_API_URL and API_BASE_URL in server-api.ts, route.ts, and next.config.mjs to handle missing or invalid values gracefully and log warnings instead of crashing.
2025-09-01 16:31:12 +01:00

25 lines
842 B
Plaintext

# Frontend Environment Configuration
# Copy this file to .env.local for development or .env for production
# ===========================================
# FRONTEND CONFIGURATION (Safe for browser)
# ===========================================
NEXT_PUBLIC_API_URL=/api
# ===========================================
# BACKEND CONFIGURATION (Server-side only)
# ===========================================
# Replace with your actual backend domain
SERVER_API_URL=https://internal-api.inboxi.ng/api
API_BASE_URL=https://internal-api.inboxi.ng
API_HOSTNAME=internal-api.inboxi.ng
# ===========================================
# DEVELOPMENT OVERRIDES
# ===========================================
# For local development, uncomment these:
# SERVER_API_URL=http://localhost:3001/api
# API_BASE_URL=http://localhost:3001
# API_HOSTNAME=localhost