Closed
Description
Bug report
Describe the bug
I use the experimental unstable_notFound
feature on SSG pages with enabled fallback. The custom 404-page gets incorrect props from getStaticProps
when notFound
occurs.
To Reproduce
Repository: next.js-bug-not-found-props
Steps to reproduce the behavior:
- Go to http://localhost:3000
- See
{
"statusCode": 404,
"url": {
"query": {},
"pathname": "/[[...slug]]",
"asPath": "/"
}
}
Expected behavior
Displaying
{
"is404": true
}
Screenshots
N/A
System information
- OS:macOS
- Browser (if applies): chrome
- Version of Next.js: 9.5.6-canary.14
- Version of Node.js: v10.22.1
Additional context
N/A
Metadata
Metadata
Assignees
Labels
No labels