-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for npm run build #4111
Comments
The documentation is here: This is part of the User Guide in create-react-app / react-scripts: https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md |
@ashutoshrishi im not quite finding where it it's saying |
You don't specify the env file manually. The settings in If you are looking to build for multiple environments (like qa, staging, production, etc.) then the instructions in this PR might help: #4117 |
PR #4117 has been merged. |
Googling around I find articles like these talking about using
.env
file whennpm run build
. However, I don't see any official documentation for that on this repo.https://medium.com/@tacomanator/environments-with-create-react-app-7b645312c09d
https://serverless-stack.com/chapters/environments-in-create-react-app.html
So if I have 3 .env files:
.env
,.env.test
,.env.production
, what is the proper/official way to specify a .env file whennpm run build
?The text was updated successfully, but these errors were encountered: