Skip to content

Commit dc5dd78

Browse files
authored
📚 refine Compile-time vs Runtime
1 parent 2500869 commit dc5dd78

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Set [env vars on a Heroku app](https://devcenter.heroku.com/articles/config-vars
118118
heroku config:set REACT_APP_HELLO='I love sushi!'
119119
```
120120

121-
#### Compile-time vs runtime
121+
#### Compile-time vs Runtime
122122

123123
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.
124124

@@ -171,11 +171,11 @@ class App extends Component {
171171
}
172172
```
173173

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:
175175

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.
179179

180180
#### Add-on config vars
181181

@@ -190,6 +190,7 @@ Use a custom [`.profile.d` script](https://devcenter.heroku.com/articles/buildpa
190190
```bash
191191
export REACT_APP_ADDON_CONFIG=${ADDON_CONFIG:-}
192192
```
193+
1. set-up & use [Runtime configuration](#runtime-configuration) to access the variables
193194

194195
For example, to use the API key for the [Filestack](https://elements.heroku.com/addons/filepicker) JS image uploader:
195196

0 commit comments

Comments
 (0)