DEV Community


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

1970smthin profile image
j6000 • Edited

Seems so based on

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?