# ═══════════════════════════════════════════════════════════════════════════════ # $APP_NAME — Frontend Environment Variables Template # Copy to .env and fill in all CHANGE_ME values before building. # # Self-hosted setup: # 1. cp .env.example .env # 2. Fill in every CHANGE_ME value below # 3. npm run build (bakes env vars into the dist/ bundle) # 4. docker build -t $APP_NAME-app . # (or serve dist/ with any static host — Nginx, Caddy, Vercel, etc.) # # NOTE: These are BUILD-TIME variables (VITE_ prefix). Changing them after # the build has no effect — you must rebuild to pick up new values. # ═══════════════════════════════════════════════════════════════════════════════ # ── API Connection ──────────────────────────────────────────────────────────── # Point to your backend's public URL — no trailing slash. # Must match APP_URL / ALLOWED_ORIGINS in the backend .env. VITE_APP_NAME=starr VITE_API_URL=https://api.yourdomain.com/api VITE_APP_URL=https://api.yourdomain.com # ── PayPal ──────────────────────────────────────────────────────────────────── # Client ID is the public key — safe to expose in the browser bundle. # developer.paypal.com → My Apps & Credentials → Live tab → Client ID VITE_PAYPAL_CLIENT_ID=CHANGE_ME