compress
Source URL: https://nextjs.org/docs/app/api-reference/config/next-config-js/compress
compress
Section titled “compress”By default, Next.js uses gzip to compress rendered content and static files when using next start or a custom server. This is an optimization for applications that do not have compression configured. If compression is already configured in your application via a custom server, Next.js will not add compression.
You can check if compression is enabled and which algorithm is used by looking at the Accept-Encoding (browser accepted options) and Content-Encoding (currently used) headers in the response.
Disabling compression
Section titled “Disabling compression”To disable compression, set the compress config option to false:
module.exports = { compress: false,}