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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,8 @@ 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
+
For local development, use [dotenv](https://www.npmjs.com/package/dotenv) to load variables from a `.env` file. *Requires at least create-react-app 0.7.*
122
+
121
123
#### Compile-time vs Runtime
122
124
123
125
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.
@@ -146,6 +148,8 @@ git push heroku master
146
148
147
149
#### Runtime configuration
148
150
151
+
*Requires at least create-react-app 0.7.*
152
+
149
153
Install the [runtime env npm package](https://www.npmjs.com/package/@mars/heroku-js-runtime-env):
0 commit comments