Closed
Description
Bug report
Describe the bug
I use the notFound
feature on SSG pages with enabled blocking fallback. The custom 404-page gets incorrect props from getStaticProps
when notFound
occurs. This happens only when an app is deployed to Vercel.
To Reproduce
Repository: next.js-bug-not-found-props
Steps to reproduce the behavior:
- Deploy the app to Vercel
- Go to the website, e.g. https://next-js-bug-not-found-props.vercel.app
- See
{
"url": {
"query": {},
"pathname": "/404",
"asPath": "/[[...slug]]"
}
}
first and see
{
"url": {
"query": {},
"pathname": "/404",
"asPath": "/"
}
}
after hydration
Expected behavior
Displaying
{
"is404": true
}
Screenshots
N/A
System information
- OS:macOS
- Browser (if applies): chrome
- Version of Next.js: 9.5.6-canary.17
- Version of Node.js: v10.22.1
Additional context
Works great locally in dev and prod modes.
Metadata
Metadata
Assignees
Labels
No labels