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
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -118,7 +118,7 @@ Set [env vars on a Heroku app](https://devcenter.heroku.com/articles/config-vars
118
118
heroku config:set REACT_APP_HELLO='I love sushi!'
119
119
```
120
120
121
-
#### Compile-time vs runtime
121
+
#### Compile-time vs Runtime
122
122
123
123
Two versions of variables are supported. In addition to compile-time variables applied during [build](https://github.com/facebookincubator/create-react-app#npm-run-build), this buildpack supports runtime configuration as well.
124
124
@@ -171,11 +171,11 @@ class App extends Component {
171
171
}
172
172
```
173
173
174
-
These runtime values will be serialized as JSON, so their values must be compatible with JSON:
174
+
👓 These runtime values will be serialized as JSON, so their values must be compatible with JSON:
175
175
176
-
*Quote`"` will be auto-escaped
177
-
*Backslash`\` is a control character, so the standard [JSON string rules](http://json.org) apply
178
-
*All other UTF-8 characters may be used freely.
176
+
*quote`"` will be auto-escaped
177
+
*backslash`\` is a control character, so the standard [JSON string rules](http://json.org) apply
178
+
*all other UTF-8 characters may be used freely.
179
179
180
180
#### Add-on config vars
181
181
@@ -190,6 +190,7 @@ Use a custom [`.profile.d` script](https://devcenter.heroku.com/articles/buildpa
190
190
```bash
191
191
export REACT_APP_ADDON_CONFIG=${ADDON_CONFIG:-}
192
192
```
193
+
1. set-up & use [Runtime configuration](#runtime-configuration) to access the variables
193
194
194
195
For example, to use the API key for the [Filestack](https://elements.heroku.com/addons/filepicker) JS image uploader:
0 commit comments