DEV Community

Discussion on: [Unresolved] Does anyone know how to make SPA work with SEO meta tags?

Collapse
 
pchauhan13 profile image
Prashant Singh Chauhan

Yes, if you need to show data on any social media posts from the link directly then you will have to either use the prerendering services or use Server Side rendering. Otherwise, the social sharing will not work.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

the prerendering services or use Server Side rendering

Can you please give an example on how do this in any backend, when the frontend is an SPA?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

prerendering services

I know that that is prerender-spa-plugin, but still, it is problematic for asyncData, especially for APIs. Nuxt.js solves this. But sometimes I want to use simply Vue CLI.

Collapse
 
pchauhan13 profile image
Prashant Singh Chauhan

Yes, Nuxt.js will solve it but other than using server side rendering in vue, vue cli won't be able to do much for you.