44d1a1cb15
This PR is part of a larger effort to migrate error messages to MDX and use App Router: https://github.com/vercel/front/pull/23459
21 lines
858 B
Text
21 lines
858 B
Text
---
|
|
title: Large Page Data
|
|
---
|
|
|
|
## Why This Error Occurred
|
|
|
|
One of your pages includes a large amount of page data (>= 128kB). This can negatively impact performance since page data must be parsed by the client before the page is hydrated.
|
|
|
|
## Possible Ways to Fix It
|
|
|
|
Reduce the amount of data returned from `getStaticProps`, `getServerSideProps`, or `getInitialProps` to only the essential data to render the page. The default threshold of 128kB can be configured in `largePageDataBytes` if absolutely necessary and the performance implications are understood.
|
|
|
|
To inspect the props passed to your page, you can inspect the below element's content in your browser devtools:
|
|
|
|
```bash filename="Terminal"
|
|
document.getElementById("__NEXT_DATA__").text
|
|
```
|
|
|
|
## Useful Links
|
|
|
|
- [Data Fetching Documentation](/docs/pages/building-your-application/data-fetching)
|