Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy