Closed Kythuen closed 2 weeks ago
I'm facing this issue as well. Exactly the same situation.
I am facing same error
you can solve with nginx. but I think vitepress need to solve this error
nginx resolve
...
location / {
# for example.com/ so unpath requests
if ($http_:path: = "/") {
rewrite ^(.*)/$ $1 permanent;
}
try_files $uri $uri.html $uri/ =404;
error_page 404 /404.html;
error_page 403 /404.html;
}
you're using ClientOnly and Suspense in your layout which will disable SSR for whole app. This is not supported. Use plain vite app if you don't want SSR.
you're using ClientOnly and Suspense in your layout which will disable SSR for whole app. This is not supported. Use plain vite app if you don't want SSR.
thank you, it worked.
Describe the bug
Reproduction
/
to guide page
, then route to page/guide
, now is ok./guide
, the content area not render.Expected behavior
As for a document website, we often hope others come in through a detail page url.
System Info
Additional context
Validations