Unverified Commit 83bd0f43 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

docs: improve prerender error message (#64154)

Based on customer feedback

---------
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 42f8ac16
...@@ -15,3 +15,4 @@ While prerendering a page an error occurred. This can occur for many reasons fro ...@@ -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 - 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 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) - 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`
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