You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2022. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+11-4
Original file line number
Diff line number
Diff line change
@@ -116,13 +116,19 @@ Set [config vars on a Heroku app](https://devcenter.heroku.com/articles/config-v
116
116
heroku config:set REACT_APP_HELLO='I love sushi!'
117
117
```
118
118
119
-
♻️ The app must be re-deployed for this change to take effect, because the automatic restart after a config var change does not rebuild the JavaScript bundle.
119
+
#### Add-on config vars
120
+
121
+
To use the config vars directly from an add-on, create it with a custom `REACT_APP_` prefix.
Whenever a [dyno](https://devcenter.heroku.com/articles/dynos) starts-up, [`npm run build` is executed](.profile.d/create-react-app.sh) to create the production bundle with the current [environment variables](#environment-variables).
0 commit comments