Skip to content

Commit 8a9e01c

Browse files
MostafaNawaraiansu
andcommitted
Add note to restart the dev server after changing .env file (#6979)
* Add note to restart the dev server after change .env file * Update copy Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
1 parent 4397d06 commit 8a9e01c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docusaurus/docs/adding-custom-environment-variables.md

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ REACT_APP_NOT_SECRET_CODE=abcdef
117117

118118
> 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/facebook/create-react-app/issues/865#issuecomment-252199527). Changing any environment variables will require you to restart the development server if it is running.
119119
120+
> Note: You need to restart the development server after changing `.env` files.
121+
120122
`.env` files **should be** checked into source control (with the exclusion of `.env*.local`).
121123

122124
### What other `.env` files can be used?

0 commit comments

Comments
 (0)