Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: data for page "/blog/....") is 569 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance

What is the best way to handle "Warning: data for page "/blog/....") is 569 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance" in nextjs for mdx file without using largePageDataBytes in next.config.js. I'm using mdx-bundler for mdx files.

like image 884
faisal-akbar Avatar asked Oct 22 '25 11:10

faisal-akbar


1 Answers

The warning is there for a reason and i would recommend to find a solution to decrease page data.

For the record, threshold "can" be increased via next.config.js

const nextConfig = {
  ...
  experimental: {
  //largePageDataBytes: 128 * 1000, // 128KB by default
    largePageDataBytes: 128 * 100000,
  },
  ...
}
like image 130
bernardodestefano Avatar answered Oct 27 '25 03:10

bernardodestefano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!