小编k K*_*k K的帖子

如何修改Next.js中的largePageDataBytes?

我想更改 largePageDataBytes 我知道这会降低性能。我在 next.config.js 中尝试了以下操作

/**
 * @type {import('next').NextConfig}
 */
const nextConfig = {
  /* config options here */
  //largePageDataBytes: 128 * 1000, // 128KB by default
  largePageDataBytes: 128 * 100000,
};

module.exports = nextConfig;
Run Code Online (Sandbox Code Playgroud)

并得到了

warn - Invalid next.config.js options detected:
Run Code Online (Sandbox Code Playgroud)

在哪里以及如何更改largePageDataBytes?

javascript next.js

8
推荐指数
1
解决办法
5476
查看次数

标签 统计

javascript ×1

next.js ×1