Commit 5e2c0515 authored by Mae Capozzi's avatar Mae Capozzi Committed by Dan Abramov
Browse files

Update README.md (#3717)

* Update README.md with a note that reminds users to prepend REACT_APP_ to their environment variables. 
* Based on #865, where Dan Abramov suggests the person who filed the issue create a PR with these changes.
* Took the language from [Adding Custom Environment Variables](https://github.com/facebookincubator/create-react-app/tree/master/packages/react-scripts/template#adding-custom-environment-variables)
parent ce07e98b
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 1 addition and 0 deletions
+1 -0
...@@ -944,6 +944,7 @@ To define permanent environment variables, create a file called `.env` in the ro ...@@ -944,6 +944,7 @@ To define permanent environment variables, create a file called `.env` in the ro
``` ```
REACT_APP_SECRET_CODE=abcdef REACT_APP_SECRET_CODE=abcdef
``` ```
>Note: You must create custom environment variables beginning with `REACT_APP_`. Any other variables except `NODE_ENV` will be ignored to avoid [accidentally exposing a private key on the machine that could have the same name](https://github.com/facebookincubator/create-react-app/issues/865#issuecomment-252199527). Changing any environment variables will require you to restart the development server if it is running.
`.env` files **should be** checked into source control (with the exclusion of `.env*.local`). `.env` files **should be** checked into source control (with the exclusion of `.env*.local`).
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment