Open HelloYu opened 1 year ago
That rule is not valid. It would be trickier to map arbitrarily nested files. I'll share a pattern once I get some time.
That rule is not valid. It would be trickier to map arbitrarily nested files. I'll share a pattern once I get some time.
Oh, please help to share a pattern, many thanks.
That rule is not valid. It would be trickier to map arbitrarily nested files. I'll share a pattern once I get some time.
@brc-dd I encounter the same issue and paths are not arbitrary.Rewrites
works just fine in dev mode, but got 404 in preview and build mode.
Repo: https://github.com/tracy2zhang/test-vitepress
That rule is not valid. It would be trickier to map arbitrarily nested files. I'll share a pattern once I get some time.
@brc-dd I encounter the same issue and paths are not arbitrary.
Rewrites
works just fine in dev mode, but got 404 in preview and build mode. Repo: https://github.com/tracy2zhang/test-vitepress
this is must fix bug I think, if you want to migration from other blog system, maybe has different url routes, it's the same issue as #3063 this one that I posted, they said it fixed in some merge, but reverted, I hope VitePress teammate could fix this, so I could deploy VitePress blog online.
I have the same issue: Discuss https://github.com/vuejs/vitepress/discussions/3198
At least development mode and production mode should have the same behaviour so that they both show as 404.
Describe the bug
Below is my rule:
it works in dev mode, but got 404 when running in Preview mode or build mode, the url created from
createContentLoader
still hasposts
prefix butroute.path
was removed.Reproduction
enable rewrites by below rule:
Expected behavior
mapping to correct url path.
System Info
Additional context
No response
Validations