Rewrite the title as: How to pass data from Node.js using SSR in Vue 3
P粉078945182
2023-08-25 18:42:30
<p>I'm building a website using vue.js 3 and I want to use server-side rendering. I also want to be able to pass data from my fastify (or express) server to vue.js 3. Is there a way I can do this (I saw something called express-vue: github link, but it's for vue 2 and not official, so I don't know if it's any good)? And can you include the hydration of the client, because I saw some examples like https://github.com/moduslabs/vue3-example-ssr but it does not include the hydration of the client, if this is not possible I would use ejs, but I prefer vue 3. Can you give me an example or template? Thank you in advance! </p>
You can translate the above content into Chinese: