vite-ssr
vite-ssr copied to clipboard
Use Vite for server side rendering in Node
when i use command "vite-ssr build --mode test", the mode in vite.config.js is still "development".
I wanted to ask about support for Vue’s [Teleport Component](https://vuejs.org/guide/built-ins/teleport.html). Currently, using teleport leads to a hydration error. Teleport SSR considerations have been documented [here](https://vuejs.org/guide/scaling-up/ssr.html#teleports). Teleport content is exposed in...
The readme and a handful of issues describe using `import { useContext } from 'vite-ssr'` to access the context, but doing that seems to throw `SyntaxError: import not found: useContext`....
Installation step: $ npm install ant-design-vue --save // vite.config.js import Components from 'unplugin-vue-components/vite'; import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'; export default { plugins: [ /* ... */ Components({ resolvers: [AntDesignVueResolver()],...
Hi, thanks for your great library to help me setup vite with ssr in my vite+vue@3 project. But when I review ui after setup, I found the `` with multiple...
"dependencies": { "@vueuse/head": "^0.7.6", "axios": "^0.26.1", "element-plus": "^2.1.9", "express": "^4.17.3", "pinia": "^2.0.13", "sass": "^1.50.0", "vite-ssr": "^0.16.0", "vue": "3", "vue-router": "4" }, "devDependencies": { "@types/node": "^17.0.24", "@vitejs/plugin-vue": "^2.3.1", "typescript": "^4.6.3", "vite":...
NaiveUI provide a good example of how to use it with ssr: https://github.com/07akioni/naive-ui-vite-ssr . The algorithm is as follows: first you need to collect all css from project and then...
Are there plans to implement support for [React version 18](https://reactjs.org/blog/2022/03/29/react-v18.html), released in March 2022? It'd be great to be able to use the latest version of React with vite-ssr.
How do we throw and catch errors with this plugin? For example, if I throw an error on a page: ``` // about.vue const { data } = await useFetch(`/contact`)...
Hi, Does anyone have an example how to run service worker [vite-plugin-pwa](https://github.com/antfu/vite-plugin-pwa) with vite-ssr? I tried [vitesse ssg example](https://github.com/antfu/vitesse/blob/main/src/modules/pwa.ts), but I got "Hydration completed but contains mismatches." :/ Thanks !