vitepress
vitepress copied to clipboard
Redirect homepage route
Describe the bug
when i set srcDir: '../' in config.ts,All routes become '/docs/', but When I start the project,The link that opens is '/', it is 404,
The routing in the upper left corner of the page is also /
how can i Revise the Default homepage route '/' to '/docs'
Reproduction
in describe
Expected behavior
/ to /docs
System Info
windows
Additional context
No response
Validations
- [X] Check if you're on the latest VitePress version.
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
You can set logoLink: '/docs/
in themeConfig. It won't redirect your page to /docs/
by default though. Why do you need to set srcDir?
You can set
logoLink: '/docs/
in themeConfig. It won't redirect your page to/docs/
by default though. Why do you need to set srcDir?
I want to put the md file of the document in the directory of the component
Are those components also being served under /docs/
? Can you show your directory tree and at which route you want to serve which file?
Closing as stale/