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

Separate handling of page HTML base path and static assets base path in Vitepress #2144

Closed
hulk-yin opened this issue Mar 27, 2023 · 1 comment

Comments

@hulk-yin
Copy link

In Vitepress (vuejs/vitepress), the page HTML base path (site.base) and the static assets base path (vite config.base, equivalent to publicPath in webpack) are not handled separately. This causes issues when deploying the HTML and CDN separately (with the HTML being served from a dedicated domain and the CDN deployed on a general CDN service). The built pages cannot navigate correctly or the static assets fail to load properly.

The current code handling both site.base and vite.config.base consistently can be found at the following link:

base: config.site.base,

It would be beneficial to separate the handling of these two base paths to better support different deployment scenarios.

@brc-dd
Copy link
Member

brc-dd commented Mar 27, 2023

Duplicate of #736

@brc-dd brc-dd marked this as a duplicate of #736 Mar 27, 2023
@brc-dd brc-dd closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants