Skip to content

Commit

Permalink
Updates Large Page Data error message doc to use JSON.parse to make…
Browse files Browse the repository at this point in the history
… reading output easier (#56713)

Fixes vercel/feedback#26361
  • Loading branch information
manovotny committed Oct 11, 2023
1 parent daa865f commit f0dd49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors/large-page-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Reduce the amount of data returned from `getStaticProps`, `getServerSideProps`,
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
JSON.parse(document.getElementById("__NEXT_DATA__").textContent)
```

## Useful Links
Expand Down

0 comments on commit f0dd49e

Please sign in to comment.