提交 ad77a550 编写于 作者: K knight-of-zero 提交者: Luis Fernando Alvarez D

Fixed the docs. The real option is compress, not compression (#8409)

上级 ab95c6d9
......@@ -333,7 +333,7 @@ Similarly, the route `/post/abc?foo=bar` will have the `query` object: `{ foo: '
> Note: Multiple dynamic route segments work the same way.
>
> For example, `pages/post/[pid]/[comment].js` would match `/post/1/a-comment`.
> For example, `pages/post/[pid]/[comment].js` would match `/post/1/a-comment`.
> Its `query` object would be: `{ pid: '1', comment: 'a-comment' }`.
A `<Link>` for `/post/abc` looks like so:
......@@ -2158,12 +2158,12 @@ Note: we recommend putting `.next`, or your [custom dist folder](https://github.
### Compression
Next.js provides [gzip](https://tools.ietf.org/html/rfc6713#section-3) compression to compress rendered content and static files. Compression only works with the `server` target. In general you will want to enable compression on a HTTP proxy like [nginx](https://www.nginx.com/), to offload load from the `Node.js` process.
To disable **compression** in Next.js, set `compression` to `false` in `next.config.js`:
To disable **compression** in Next.js, set `compress` to `false` in `next.config.js`:
```js
// next.config.js
module.exports = {
compression: false,
compress: false,
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册