Unverified Commit 2b13d268 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

docs: mention special case for trailing slash (#74839)

### What

Clarify trailing slash special cases
[slack-ref](https://vercel.slack.com/archives/C04DUD7EB1B/p1718055917076779)
parent d710482c
...@@ -17,6 +17,13 @@ module.exports = { ...@@ -17,6 +17,13 @@ module.exports = {
With this option set, URLs like `/about` will redirect to `/about/`. 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`). 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 ## Version History
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment