rsnext/test/e2e/prerender/pages
Seth Falco adefdd2aaa
chore: show large data warning once per page on prod (#46323)
<!--
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).
2023-02-25 12:29:59 -08:00
..
another BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
api Remove unstable_revalidate (#43119) 2022-11-19 15:54:19 -08:00
api-docs Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00
blocking-fallback BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
blocking-fallback-once BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
blocking-fallback-some BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
blog BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
catchall Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00
catchall-explicit BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
catchall-optional BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
dynamic BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
fallback-only BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
index Add handling for testing against deployments (#36285) 2022-04-20 12:23:09 +00:00
lang/[lang] Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00
non-json Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00
non-json-blocking Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00
user/[user] BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
bad-gssp.js Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00
bad-ssr.js Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00
default-revalidate.js BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
index.js BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
large-page-data-ssr.js chore: show large data warning once per page on prod (#46323) 2023-02-25 12:29:59 -08:00
large-page-data.js BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
normal.js Migrate prerender tests to new set-up (#29245) 2021-09-21 16:21:05 +02:00
preview.js Ensure On-Demand revalidate does not consider preview cookie (#39313) 2022-08-04 08:23:54 -05:00
something.js BREAKING CHANGE: Enable newNextLinkBehavior (#41459) 2022-10-17 21:20:28 -04:00
ssr.js Fix missing hasHeader mock during revalidate (#45681) 2023-02-07 17:51:26 -08:00