You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found a weird issue that happens for me (and I think others) when building and serving Vitepress. I am on version 1.6.3.
When using serve -s .vitepress/dist -l 8080 after building, the page fails to render correctly and I also get the following issue in the console. This only seems to happen when navigating directly to pages by URL.
Hydration completed but contains mismatches.
HOWEVER, I seem to have found a workaround when using http-server instead? It seems to work fine with:
Can you share a sample repo where this is happening? One possible reason might be you’ve clean urls enabled and in serve you need to pass some flag to make it work.
Describe the bug
Hello Everyone,
I just found a weird issue that happens for me (and I think others) when building and serving Vitepress. I am on version 1.6.3.
When using
serve -s .vitepress/dist -l 8080
after building, the page fails to render correctly and I also get the following issue in the console. This only seems to happen when navigating directly to pages by URL.Hydration completed but contains mismatches.
HOWEVER, I seem to have found a workaround when using http-server instead? It seems to work fine with:
npx http-server .vitepress/dist -p 8080 --push-state
Do we think this might be an issue related to vitepress or with serve?
Reproduction
Use vitepress 1.6.3, and npm install -g serve, then run
serve -s .vitepress/dist -l 8080
Expected behavior
The site should be statically served without issues.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: