Skip to content

SSR support #533

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

Closed
raukaute opened this issue Sep 21, 2020 · 6 comments · Fixed by #937
Closed

SSR support #533

raukaute opened this issue Sep 21, 2020 · 6 comments · Fixed by #937

Comments

@raukaute
Copy link

Hey!

Kind of hard to to find any information on that, so I was wondering if there is any roadmap/schedule for Vue 3 SSR support. The current server-renderer only supports version 2. . I peeked into it, to see if I can somehow tweek it to make it work with Vue 3, but it raises too many issues. I'm using the composition API already, but would really love to migrate one of my SSR apps to Vue 3.

Thanks for clarification!

@skirtles-code
Copy link
Contributor

The documentation needs updating but there is already support for SSR in Vue 3.

See https://github.com/vuejs/vue-next/tree/master/packages/server-renderer

@glopezep
Copy link

glopezep commented Oct 8, 2020

@skirtles-code Hey, I think He is talking about that "The documentation needs updating" I don't know if there is something about that in the roadmap.

@raukaute
Copy link
Author

I wrote up a Vue 3 version of the Vue 2 hackernews clone. It seems to be working quit nicely.
Also pushed it up to git at https://github.com/raukaute/vue-hackernews-3.0

Maybe it can serve as a reference for others looking for how to migrate existing vue ssr apps.

@glopezep
Copy link

@raukaute for some reason the styles are not working in the SSR, They are injected but on the client-side

@raukaute
Copy link
Author

@glopezep

Thank you for your reply. Can you give a little more detail? I am not 100% sure I know what you mean.

Cheers

@glopezep
Copy link

@raukaute sure, the problem is that in SSR the styles can't be rendered using the link tag for example <link ref="example.css" ... />. it should be rendered in inline CSS using the style tag, this is because we need more information about this. because maybe vue has a webpack plugin or loader for that to avoid doing this manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants