docs: improve prerender error message (#64154)

Based on customer feedback

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
This commit is contained in:
Lee Robinson 2024-04-07 09:46:13 -05:00 committed by GitHub
parent 42f8ac16c6
commit 83bd0f43e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,3 +15,4 @@ While prerendering a page an error occurred. This can occur for many reasons fro
- Check for any out of date modules that you might be relying on
- Make sure your component handles `fallback` if it is enabled in `getStaticPaths`. [Fallback docs](/docs/pages/api-reference/functions/get-static-paths#fallback-false)
- Make sure you are not trying to export (`output: 'export'` or `next export`) pages that have server-side rendering enabled [`getServerSideProps`](/docs/pages/building-your-application/data-fetching/get-server-side-props)
- If necessary, you can [disable server-side rendering](/docs/pages/building-your-application/optimizing/lazy-loading#with-no-ssr) for a specific component that may be attempting to use browser APIs like `window`