Unverified Commit 22380dfe authored by Michael Novotny's avatar Michael Novotny Committed by GitHub

Updates "Prerender Error" page for App Router (#56044)

I am open to alternative ideas on how to solve this.

Fixes https://github.com/vercel/feedback/issues/40502
parent 5cd8e878
...@@ -8,6 +8,7 @@ While prerendering a page an error occurred. This can occur for many reasons fro ...@@ -8,6 +8,7 @@ While prerendering a page an error occurred. This can occur for many reasons fro
## Possible Ways to Fix It ## Possible Ways to Fix It
- Use Next.js 13 (or higher) and the [App Router](/docs#app-router-vs-pages-router), which allows [colocation](/docs/app/building-your-application/routing#colocation) of pages and other files (e.g. components, styles, tests, etc)
- Make sure to move any non-pages out of the `pages` folder - Make sure to move any non-pages out of the `pages` folder
- Check for any code that assumes a prop is available, even when it might not be - Check for any code that assumes a prop is available, even when it might not be
- Set default values for all dynamic pages' props (avoid `undefined`, use `null` instead so it can be serialized) - Set default values for all dynamic pages' props (avoid `undefined`, use `null` instead so it can be serialized)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment