# 压缩

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.jsprocess.

To disable compression, open next.config.jsand disable the compressconfig:

module.exports = {
  compress: false,
}

Introduction to next.config.jsLearn more about the configuration file used by Next.js.

Last Updated: 5/13/2023, 8:55:38 PM