top of page
!!install!! - .env.local.production
API_URL=http://localhost:3001/mock-api
# Server-only secrets (e.g., database connections) DATABASE_URL="postgresql://localhost:5432/my_staging_db" STRIPE_SECRET_KEY="sk_test_local_production_key..." # Client-facing variables (exposed to browser bundle) NEXT_PUBLIC_API_URL="http://localhost:3000/api" NEXT_PUBLIC_ANALYTICS_ID="UA-STAGING-000000" Use code with caution. Step 4: Execute the Production Build .env.local.production
The standard loading order from lowest priority to highest priority generally looks like this: – The default file loaded in all environments. .env.local.production
bottom of page

