Skip to content

Commit

Permalink
docs: mention special case for trailing slash (#74839)
Browse files Browse the repository at this point in the history
### What

Clarify trailing slash special cases
[slack-ref](https://vercel.slack.com/archives/C04DUD7EB1B/p1718055917076779)
  • Loading branch information
huozhi authored Jan 13, 2025
1 parent d710482 commit 2b13d26
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ module.exports = {

With this option set, URLs like `/about` will redirect to `/about/`.

When using `trailingSlash: true`, certain URLs are exceptions and will not have a trailing slash appended:

- Static file URLs, such as files with extensions.
- Any paths under `.well-known/`.

For example, the following URLs will remain unchanged: `/file.txt`, `images/photos/picture.png`, and `.well-known/subfolder/config.json`.

When used with [`output: "export"`](/docs/app/building-your-application/deploying/static-exports) configuration, the `/about` page will output `/about/index.html` (instead of the default `/about.html`).

## Version History
Expand Down

0 comments on commit 2b13d26

Please sign in to comment.