未验证 提交 beeeba09 编写于 作者: L Luis Alvarez D 提交者: GitHub

Rename exportTrailingSlash to trailingSlash in docs (#17268)

上级 c6ff9187
......@@ -27,7 +27,7 @@ And the AMP version of your page will include a link to the HTML page:
<link rel="canonical" href="/about" />
```
When [`exportTrailingSlash`](/docs/api-reference/next.config.js/exportPathMap.md#0cf7d6666b394c5d8d08a16a933e86ea) is enabled the exported pages for `pages/about.js` would be:
When [`trailingSlash`](/docs/api-reference/next.config.js/trailing-slash.md) is enabled the exported pages for `pages/about.js` would be:
- `out/about/index.html` - HTML page
- `out/about.amp/index.html` - AMP page
......@@ -59,7 +59,7 @@ The returned object is a map of pages where the `key` is the `pathname` and the
It is possible to configure Next.js to export pages as `index.html` files and require trailing slashes, `/about` becomes `/about/index.html` and is routable via `/about/`. This was the default behavior prior to Next.js 9.
To switch back and add a trailing slash, open `next.config.js` and enable the `exportTrailingSlash` config:
To switch back and add a trailing slash, open `next.config.js` and enable the `trailingSlash` config:
```js
module.exports = {
......
......@@ -146,7 +146,7 @@ You can revert to the previous behavior by creating a `next.config.js` with the
```js
// next.config.js
module.exports = {
exportTrailingSlash: true,
trailingSlash: true,
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册