adefdd2aaa
<!-- Thanks for opening a PR! Your contribution is much appreciated. To make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. Choose the right checklist for the change(s) that you're making: --> ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Related * Closes https://github.com/vercel/next.js/pull/39146 - PR abandoned. ## Details I was having the same issue at work, as a workaround, we've changed the `largePageDataBytes` setting as advised but we'd like to keep the warning ideally. It's something we need to address, but just don't want to spam our log aggregators while the large data issue isn't resolved. I believe I've more or less copied what was in the original PR, some small differences: * I use `Set` instead of `Map`, please let me know if there is an advantage to using Map! * Just to keep code a bit tidier (subjective) put an early return instead of nesting all the code in an if. * Added a test to verify only one log appears even when the page is accessed twice [as requested here](https://github.com/vercel/next.js/pull/39146#pullrequestreview-1064486985). |
||
---|---|---|
.. | ||
another | ||
api | ||
api-docs | ||
blocking-fallback | ||
blocking-fallback-once | ||
blocking-fallback-some | ||
blog | ||
catchall | ||
catchall-explicit | ||
catchall-optional | ||
dynamic | ||
fallback-only | ||
index | ||
lang/[lang] | ||
non-json | ||
non-json-blocking | ||
user/[user] | ||
bad-gssp.js | ||
bad-ssr.js | ||
default-revalidate.js | ||
index.js | ||
large-page-data-ssr.js | ||
large-page-data.js | ||
normal.js | ||
preview.js | ||
something.js | ||
ssr.js |