Create React App Build for Multiple Environments (Override NODE_ENV)
If you are using Create React App (CRA), the npm run build command that calls react-scripts build (specified in package.json) makes a “production build” with NODE_ENV always set to 'production'. If you look at the build source here, you’ll find the following: This is done to prevent developers from accidentally deploying a build meant for […]