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

Commit b56139c

Browse files
authored
📚 dotenv usage & create-react-app 0.7 compatibility
1 parent dc5dd78 commit b56139c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ 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+
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+
121123
#### Compile-time vs Runtime
122124

123125
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
146148

147149
#### Runtime configuration
148150

151+
*Requires at least create-react-app 0.7.*
152+
149153
Install the [runtime env npm package](https://www.npmjs.com/package/@mars/heroku-js-runtime-env):
150154

151155
```bash

0 commit comments

Comments
 (0)