diff --git a/docs/advanced-features/amp-support/amp-in-static-html-export.md b/docs/advanced-features/amp-support/amp-in-static-html-export.md index dfa3afbc41f309c15154227b131e97a507a3f6d2..67351a27d9bf564f3874133935fc25f1d6ea3c13 100644 --- a/docs/advanced-features/amp-support/amp-in-static-html-export.md +++ b/docs/advanced-features/amp-support/amp-in-static-html-export.md @@ -27,7 +27,7 @@ And the AMP version of your page will include a link to the HTML page: ``` -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 diff --git a/docs/api-reference/next.config.js/exportPathMap.md b/docs/api-reference/next.config.js/exportPathMap.md index e5bc850070f154d7c9a15acc7d7bebb4df28de40..bd6a7c28c090a564c4c3987c102162e1f629a9ec 100644 --- a/docs/api-reference/next.config.js/exportPathMap.md +++ b/docs/api-reference/next.config.js/exportPathMap.md @@ -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 = { diff --git a/docs/upgrading.md b/docs/upgrading.md index 3bab07d9052483f4d549c97f3d310ba94353a3ca..94303db0c56d522e517e1b3e7e4ddb67992d57fe 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -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, } ```