DEV Community

Discussion on: Managing .env variables for provisional builds with Create React App

Collapse
 
1970smthin profile image
j6000 • Edited

Seems so based on create-react-app.dev/docs:

Variables in .env.production will be used as fallback because NODE_ENV will always be set to production for a build.

Assuming true, what's the value in adding NODE_ENV=staging to .env.staging?