Skip to content

[9.5.6-canary.13][notFound] custom 404-page rendering crashes in prod mode #18196

@rokinsky

Description

@rokinsky

Bug report

Describe the bug

I use the experimental unstable_notFound feature on SSG/ISG pages and it fails in production mode when the custom-404 page uses getStaticProps.

To Reproduce

Repository: next.js-bug-not-found
Steps to reproduce the behavior:

  1. yarn build && yarn start
  2. Go to http://localhost:3000
  3. See Internal Server Error

Expected behavior

Displaying "not-found" with 404 status code.

Screenshots

Screenshot 2020-10-24 at 17 20 22

System information

  • OS:macOS
  • Browser (if applies): chrome
  • Version of Next.js: 9.5.6-canary.13
  • Version of Node.js: v10.22.1

Additional context

Works fine in dev mode.

Metadata

Metadata

Assignees

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