Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 827 Bytes

compression.md

File metadata and controls

24 lines (18 loc) · 827 Bytes
description
Next.js provides gzip compression to compress rendered content and static files, it only works with the server target. Learn more about it here.

Compression

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:

module.exports = {
  compress: false,
}

Related