Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(trailingSlashes): add note for SSG generation #57628

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

redonkulus
Copy link
Contributor

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.

@redonkulus redonkulus requested review from a team as code owners October 27, 2023 19:50
@redonkulus redonkulus requested review from ismaelrumzan and leerob and removed request for a team October 27, 2023 19:50
@styfle styfle added the CI approved Approve running CI for fork label Jan 4, 2024
@styfle styfle enabled auto-merge (squash) January 4, 2024 14:55
@styfle styfle merged commit b03381c into vercel:canary Jan 4, 2024
31 checks passed
agustints pushed a commit to agustints/next.js that referenced this pull request Jan 6, 2024
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>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI approved Approve running CI for fork locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants