Skip to content

Setting NODE_ENV to 'staging' causes builds to fail #10129

@pjaws

Description

@pjaws

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

Screen Shot 2020-01-16 at 10 49 25 AM

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions