# 压缩
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
Introduction to next.config.jsLearn more about the configuration file used by Next.js.
← 自定义 Webpack 配置 运行时配置 →