fix(docs): upload clean URL aliases to TOS#2055
Merged
MaojiaSheng merged 1 commit intoMay 15, 2026
Merged
Conversation
PR Reviewer Guide 🔍(Review updated until commit 515ca35)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
|
Persistent review updated to latest commit 515ca35 |
PR Code Suggestions ✨No code suggestions found for the PR. |
MaojiaSheng
approved these changes
May 15, 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.
Description
Fix clean URL routes on the TOS-hosted docs site by uploading extensionless HTML aliases for VitePress pages. This makes URLs such as
/zh/getting-started/02-quickstartresolve ondocs.openviking.net, matching the GitHub Pages behavior ondocs.openviking.ai.Related Issue
N/A
Type of Change
Changes Made
.htmldocs files to TOS.text/html; charset=utf-8and the existing HTML revalidation cache policy for clean URL aliases.index.html,404.html, and long-lived static asset handling unchanged.Testing
Validation commands:
env PATH=/Users/bytedance/.nvm/versions/node/v22.22.2/bin:/usr/bin:/bin:/usr/sbin:/sbin npm run docs:buildruby -e 'require "yaml"; YAML.load_file(".github/workflows/docs-tos.yml"); puts "yaml ok"'git diff --checkzh/getting-started/02-quickstart.htmltozh/getting-started/02-quickstart.Checklist
Screenshots (if applicable)
N/A
Additional Notes
Root cause: VitePress is configured with
cleanUrls: true, so site links omit.html. GitHub Pages resolves those clean URLs automatically, but TOS currently performs exact object key lookup and returnsNoSuchKeyfor extensionless page paths unless those aliases are uploaded.