-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
SSR in dev for more consistent output in dev and prod #4045
Comments
|
production
Thank you @brc-dd . |
I'm fine with keeping this open though. There should be consistency for better DX. SSR in dev is possible - Nuxt is doing that. Someone with better insights might be able to introduce that here too. |
I don't have a solution, but I have some ideas for you. Probably time will tell that in the future, a better approach for SSR in VitePress is going to be a closer integration with Vite. Already released in Vite 5.3 and coming up in a greater form in Vite 6 is the Environment API, that enables every plugin or app that builds on top of Vite to work together in Vite's SSR pipeline, it is very good. |
Describe the bug
Usage:
Check the feature icon type
I refer to the render logic, use
v-html
render the icon.Display well in
dev
environment, but shows errors inprod
environment.Reproduction
https://stackblitz.com/github/zyyv/vitepress-unocss-issue
pnpm dev
pnpm build && pnpm preview
Expected behavior
Dev and build behave the same
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: