Skip to content

Route root docs index through catch-all - #111

Closed
sansynx wants to merge 1 commit into
cloudflare:mainfrom
sansynx:fix/root-docs-index-route
Closed

Route root docs index through catch-all#111
sansynx wants to merge 1 commit into
cloudflare:mainfrom
sansynx:fix/root-docs-index-route

Conversation

@sansynx

@sansynx sansynx commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

getDocsStaticPaths returned the root docs entry as slug: "index", while the rest of Nimbus treats that entry as /. The main site carried a local mapping, but the starter used the helper directly.

This normalizes the root entry in the shared helper, removes the duplicate main-site workaround, and adds a route contract test.

Closes #102

Checks

  • node --import tsx --test test/docs-root-route-contract.test.ts
  • pnpm --filter nimbus-docs typecheck
  • pnpm --filter nimbus-docs build
  • pnpm --filter nimbus-starter-source build

Copilot AI lite review requested due to automatic review settings September 4, 2026 04:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@MohamedH1998

Copy link
Copy Markdown
Collaborator

This has been resolved on main as part of the broader server-side rendering and API-reference work in #114. Closing as superseded, along with the linked issue.

@sansynx

sansynx commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Makes sense, thanks for the heads up. I'll leave this closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getDocsStaticPaths should use the same root index route convention as entryRouteUrl

3 participants