# Bug report ## Describe the bug Setting NODE_ENV to 'staging' causes `next build` to fail on a Webpack "unexpected token" error - presumably the first time it encounters JSX. ## To Reproduce 1. Create a Next.js app with JSX in it 2. `NODE_ENV=staging npm run build` 3. ????? 4. Failure ## Expected behavior Probably shouldn't fail. ## Screenshots <img width="835" alt="Screen Shot 2020-01-16 at 10 49 25 AM" src="https://user-images.githubusercontent.com/53156002/72553610-f1e25280-384d-11ea-84dc-b98b276d155e.png"> ## System information - OS: macOS, whatever Linux Heroku runs - Version of Next.js: 9.2.0 ## Additional context Add any other context about the problem here.