Skip to content

fix(docs): prevent root-absolute assets on GitHub Pages#438

Merged
Gaubee merged 1 commit intomainfrom
fix/vitepress-base-fallback
Feb 11, 2026
Merged

fix(docs): prevent root-absolute assets on GitHub Pages#438
Gaubee merged 1 commit intomainfrom
fix/vitepress-base-fallback

Conversation

@Gaubee
Copy link
Contributor

@Gaubee Gaubee commented Feb 11, 2026

Summary

  • fix VitePress base fallback in production builds
  • default base now resolves to repo path (/KeyApp/) when VITEPRESS_BASE is not set
  • keeps dev default as / for local docs development

Verification

  • pnpm docs:build
  • verify docs/.vitepress/dist/download.html contains /KeyApp/assets/... instead of /assets/...

@Gaubee Gaubee merged commit 4c63371 into main Feb 11, 2026
5 checks passed
@Gaubee Gaubee deleted the fix/vitepress-base-fallback branch February 11, 2026 15:21
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.

1 participant