From 47f712fbd1d031bcd28319a5ba47ee07f52c76df Mon Sep 17 00:00:00 2001 From: Mike Francis Date: Fri, 14 Oct 2016 10:54:24 +0100 Subject: [PATCH 1/2] Added note about env server restart As discussed in [#870](https://github.com/facebookincubator/create-react-app/issues/870) --- packages/react-scripts/template/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 13f63c2e23f..aea3d97f190 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -444,6 +444,8 @@ default you will have `NODE_ENV` defined for you, and any other environment vari variable named `REACT_APP_SECRET_CODE` will be exposed in your JS as `process.env.REACT_APP_SECRET_CODE`, in addition to `process.env.NODE_ENV`. +>Note: Changing any environment variables will require you to restart the dev server if it is running. + These environment variables can be useful for displaying information conditionally based on where the project is deployed or consuming sensitive data that lives outside of version control. From 3464de9ae5b2c4ee39e1642550227e0c439cdfca Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 14 Oct 2016 12:37:07 +0100 Subject: [PATCH 2/2] Style nit --- packages/react-scripts/template/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index aea3d97f190..268265bdb6d 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -444,7 +444,7 @@ default you will have `NODE_ENV` defined for you, and any other environment vari variable named `REACT_APP_SECRET_CODE` will be exposed in your JS as `process.env.REACT_APP_SECRET_CODE`, in addition to `process.env.NODE_ENV`. ->Note: Changing any environment variables will require you to restart the dev server if it is running. +>Note: Changing any environment variables will require you to restart the development server if it is running. These environment variables can be useful for displaying information conditionally based on where the project is deployed or consuming sensitive data that lives outside of version control.