Skip to content

Commit 0e5fcdc

Browse files
author
Archie Lee
committed
Fix accessing wrong field
1 parent 7c948a3 commit 0e5fcdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var env = getClientEnvironment(publicUrl);
5454

5555
// Assert this just to be safe.
5656
// Development builds of React are slow and not intended for production.
57-
if (env['process.env'].NODE_ENV !== '"production"') {
57+
if (env.string['process.env'].NODE_ENV !== '"production"') {
5858
throw new Error('Production builds must have NODE_ENV=production.');
5959
}
6060

0 commit comments

Comments
 (0)