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
Enable rewrites function got 404 when running in preview and build mode. #3062
Comments
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. |
@brc-dd I encounter the same issue and paths are not arbitrary. |
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: 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
The text was updated successfully, but these errors were encountered: