reactMaxHeadersLength
Source URL: https://nextjs.org/docs/app/api-reference/config/next-config-js/reactMaxHeadersLength
reactMaxHeadersLength
Section titled “reactMaxHeadersLength”During static rendering, React can emit headers that can be added to the response. These can be used to improve performance by allowing the browser to preload resources like fonts, scripts, and stylesheets. The default value is 6000, but you can override this value by configuring the reactMaxHeadersLength option in next.config.js:
module.exports = { reactMaxHeadersLength: 1000,}Good to know: This option is only available in App Router.