@@ -27,7 +27,7 @@ And the AMP version of your page will include a link to the HTML page:
...
@@ -27,7 +27,7 @@ And the AMP version of your page will include a link to the HTML page:
<linkrel="canonical"href="/about"/>
<linkrel="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:
@@ -59,7 +59,7 @@ The returned object is a map of pages where the `key` is the `pathname` and the
...
@@ -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.
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: