Skip to content

Commit f0dd49e

Browse files
authored
Updates Large Page Data error message doc to use JSON.parse to make reading output easier (#56713)
Fixes vercel/feedback#26361
1 parent daa865f commit f0dd49e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errors/large-page-data.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Reduce the amount of data returned from `getStaticProps`, `getServerSideProps`,
1313
To inspect the props passed to your page, you can inspect the below element's content in your browser devtools:
1414

1515
```bash filename="Terminal"
16-
document.getElementById("__NEXT_DATA__").text
16+
JSON.parse(document.getElementById("__NEXT_DATA__").textContent)
1717
```
1818

1919
## Useful Links

0 commit comments

Comments
 (0)