Closed hyunicode closed 2 weeks ago
Please share a reproducible example in form of a github repo or using https://vitepress.new
https://github.com/hyunicode/vitepress_demo
and you can see the '404'
It's expected behavior. You need to reference using final URLs. Make it { text: 'click here', link: '/examples/' }
.
It's expected behavior. You need to reference using final URLs. Make it
{ text: 'click here', link: '/examples/' }
.
In my opinion, the behavior in dev mode should be consistent with that in prod mode. Maybe all 404 can remind developers to modify their rewrite rules
Describe the bug
my rewrite rules are as follow, it works fine on dev mode, but url is not automatically converted on build mode. I can change the url manually and it does work, I am looking for a more efficient way.
rewrites: { 'src/components/:pkg/docs/(.*)': ':pkg/index.md', },
Reproduction
rewrites: { 'src/components/:pkg/docs/(.*)': ':pkg/index.md', },
npm run docs:build ans see if the target url automatically converted.
Expected behavior
url behaviour should be the same between build mode and dev mode
System Info
Additional context
Some related discussions... but I didn't find a solution https://github.com/vuejs/vitepress/pull/1798 https://github.com/vuejs/vitepress/issues/2276 https://github.com/vuejs/vitepress/pull/2301 https://github.com/vuejs/vitepress/issues/3062 https://github.com/vuejs/vitepress/discussions/3198
Validations