vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
11.48k stars 1.86k forks source link

Build with Relative URLs #3673

Closed gerripeach closed 1 month ago

gerripeach commented 1 month ago

Is your feature request related to a problem? Please describe.

I can not build to use the site "offline", so open index.html directly in browser.

Describe the solution you'd like

I want to be able to use relative URLS

e.g. asset loading in index.html defaults to this

    <link rel="modulepreload" href="/assets/chunks/framework.efMJGC9V.js">
    <link rel="modulepreload" href="/assets/chunks/theme.DRnY8Jar.js">
    <link rel="modulepreload" href="/assets/index.md.BTLj63lk.lean.js">

these links starting with a slath won't work if I open index.html directly in the browser

Describe alternatives you've considered

No response

Additional context

No response

Validations

brc-dd commented 1 month ago

Won’t fix. Duplicate of many more such issues (search yourself).