This page is also available as Markdown: request this page's URL with an
Accept: text/markdown header. For an index of Next.js 13 documentation, see /docs/13/llms.txt.You are currently viewing documentation for version 13 of Next.js.
compress
Last updated June 28, 2023
Next.js provides gzip compression to compress rendered content and static files. In general you will want to enable compression on a HTTP proxy like nginx, to offload load from the Node.js process.
To disable compression, open next.config.js and disable the compress config:
next.config.js
module.exports = {
compress: false,
}Was this helpful?