Skip to content

Commit

Permalink
Updates "Prerender Error" page for App Router (#56044)
Browse files Browse the repository at this point in the history
I am open to alternative ideas on how to solve this.

Fixes vercel/feedback#40502
  • Loading branch information
manovotny committed Sep 26, 2023
1 parent 5cd8e87 commit 22380df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions errors/prerender-error.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ While prerendering a page an error occurred. This can occur for many reasons fro

## 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
- 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)
Expand Down

0 comments on commit 22380df

Please sign in to comment.