top of page
.env.local.production
.env.local.production
Why would you do this? Maybe you are debugging a performance issue that only appears in the minified build, or you want to test API integrations against a staging or production database without changing your standard development config.
: Storing sensitive production credentials that you need locally but never want to commit to version control. Best Practices Adding Custom Environment Variables | Create React App .env.local.production
echo "DATABASE_URL=postgres://prod_user:SuperSecret123@db.prod.com/mydb" > .env.production.local git add . && git commit -m "Fix prod config" git push origin main Why would you do this
bottom of page