Closed
Description
Googling around I find articles like these talking about using.env
file when npm 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 when npm run build
?