We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c948a3 commit 0e5fcdcCopy full SHA for 0e5fcdc
packages/react-scripts/config/webpack.config.prod.js
@@ -54,7 +54,7 @@ var env = getClientEnvironment(publicUrl);
54
55
// Assert this just to be safe.
56
// Development builds of React are slow and not intended for production.
57
-if (env['process.env'].NODE_ENV !== '"production"') {
+if (env.string['process.env'].NODE_ENV !== '"production"') {
58
throw new Error('Production builds must have NODE_ENV=production.');
59
}
60
0 commit comments