Skip to content

Commit

Permalink
Fix accessing wrong field
Browse files Browse the repository at this point in the history
  • Loading branch information
Archie Lee committed Feb 9, 2017
1 parent 7c948a3 commit 0e5fcdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var env = getClientEnvironment(publicUrl);

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

Expand Down

0 comments on commit 0e5fcdc

Please sign in to comment.