Skip to content

Commit 16fcaa7

Browse files
Peter Bengtssonrachmari
andauthored
next@12.2.4 (#29731)
* next@12.2.4 * suppress 'Large Page Data' * Update next.config.js Co-authored-by: Rachael Sewell <rachmari@github.com> Co-authored-by: Rachael Sewell <rachmari@github.com>
1 parent 2c7ab86 commit 16fcaa7

File tree

3 files changed

+363
-76
lines changed

3 files changed

+363
-76
lines changed

next.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,13 @@ export default {
4545
// This causes problems with serving stale content, since upon revalidating
4646
// the CDN marks the cached content as "fresh".
4747
generateEtags: false,
48+
49+
experimental: {
50+
// The output of our getServerSideProps() return large chunks of
51+
// data because it contains our rendered Markdown.
52+
// The default, for a "Large Page Data" warning is 128KB
53+
// but many of our pages are much larger.
54+
// The warning is: https://nextjs.org/docs/messages/large-page-data
55+
largePageDataBytes: 1024 * 1024, // 1 MB
56+
},
4857
}

0 commit comments

Comments
 (0)