Closed yinanfang closed 7 years ago
https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#user-content-adding-custom-environment-variables
Your project can consume variables declared in your environment as if they were declared locally in your JS files. By default you will have NODE_ENV defined for you, and any other environment variables starting with REACTAPP
46099cc6f5e035983a95295586db31f1171c4f17 fixed #51
https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#user-content-adding-custom-environment-variables
Your project can consume variables declared in your environment as if they were declared locally in your JS files. By default you will have NODE_ENV defined for you, and any other environment variables starting with REACTAPP