I can't access the page through typing the url directly in browser address bar, but after building and hosting the dist file, I can access all pages
Description
I use Vuepress-next as a static site generator to build my blog, in my project I add extra homepage and some navigation pages refer to the documentation method, so I don't use the default theme navbar and homepage. Then I cannot access any markdown pages but just show the extra homepage and navigation pages in dev environment.
If I build the project it work fine, or change the bundler to webpack, I can access all pages in dev environment.
I think if I don't refer to the Markdown file in navbar or homepage, then I can't access it through typing the corresponding url directly in browser address bar. Should I set any parameter in Vite to get it work in dev environment?
Bug report
I can't access the page through typing the url directly in browser address bar, but after building and hosting the
dist
file, I can access all pagesDescription
I use Vuepress-next as a static site generator to build my blog, in my project I add extra homepage and some navigation pages refer to the documentation method, so I don't use the default theme navbar and homepage. Then I cannot access any markdown pages but just show the extra homepage and navigation pages in dev environment.
If I build the project it work fine, or change the bundler to webpack, I can access all pages in dev environment.
I think if I don't refer to the Markdown file in navbar or homepage, then I can't access it through typing the corresponding url directly in browser address bar. Should I set any parameter in Vite to get it work in dev environment?
Steps to reproduce
Screenshots
use Vite as bundler in dev:
use Webpack as bundler in dev:
Environment info