mars / create-react-app-buildpack

⚛️ Heroku Buildpack for create-react-app: static hosting for React.js web apps
MIT License
3.29k stars 651 forks source link

environment variables are persisted when artifacts are promoted through Heroku CI #160

Closed brandonkirchner closed 5 years ago

brandonkirchner commented 5 years ago

when you promote a change from one environment to another (stage to prod, for example), the environment variables set in stage will be set in prod, overriding whatever the environment variables are in prod. to fix, you need to re-build and deploy from prod.

mars commented 5 years ago

Hi @brandonkirchner 🙂

See Runtime config variables, a feature created specifically for this buildpack that eliminates the re-build step by injecting variables into the Javascript bundle as each Heroku dyno starts-up.