Closed kylemod closed 2 years ago
You can just pass routes
to ViteSSR instead of router
. ViteSSR will create the correct router for you using the routes you provide. Example here (the layout stuff is a separate plugin but it's not necessary).
Thanks, it worked!
I tried to setup
vite-ssr
withvite-plugin-pages
but i get an error.I also tried this configuration from vite-ssr-vue3-example
Here is my sources
main.js
vite.config.js
router.js