Skip to content

Commit

Permalink
docs(trailingSlashes): add note for SSG generation (#57628)
Browse files Browse the repository at this point in the history
When trying to generate my SSG docs site I couldn't figure out why the
navigation links (`href="/about`) were not mapping to the generated
files (e.g. `/out/about.html)`.

`trailingSlash` was key to converting the files to
`/out/about/index.html` to make the SSG links work properly.

I've updated the trailingSlash docs to be clear how they affect SSG
mode.

It might also make sense to add this to the SSG guide as well.

Co-authored-by: Steven <steven@ceriously.com>
  • Loading branch information
redonkulus and styfle authored Jan 4, 2024
1 parent 3fd3d5d commit b03381c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ module.exports = {

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

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 | Changes |
Expand Down

0 comments on commit b03381c

Please sign in to comment.