Repository navigation
Docs 1.x: serve under /v1 for the main docs site - #227
Merged
Merged
Conversation
basePath is /v1, so this deployment answers at /v1/* and the main docs site proxies docs.once-ui.com/v1 to it. Old links on v1.docs.once-ui.com redirect to the same page under /v1. The navigation fetch and local next/image sources add the base path, which Next does not do for them. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01MEFHekCq3RB4HoZkbR81vP
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This was referenced Oct 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Lorant (chose "Move it" on the 1.x move)
Before: the 1.x docs answer at the root of v1.docs.once-ui.com.
After: they answer under /v1. Old links redirect to the same page there, for example
/components/button→/v1/components/button. That lets docs.once-ui.com/v1 proxy to this deployment (core#225,mounted: truefor 1.x once this is live).How:
basePath: "/v1"innext.config.mjs.basePath: falseredirects (307, so they can be repointed at docs.once-ui.com/v1 once that's mounted).srcwithbasePath.Checked:
next buildon this branch. Locally,/and/components/buttonreturn 307 to/v1…,/v1/components/buttonand/v1/api/navigationreturn 200, the sidebar links are/v1/…, and pages load through a proxy standing in for the main site's rewrite. Plain<img>tags with root paths (/trademarks/…) are served by the main site's public folder once this is mounted.Generated by Claude Code