What’s the easiest way to make an already developed Vue app SEO friendly (with all the header meta-tags readable by search engines).
I’ve looked into NUXT, I’ll have to re-build the whole thing again, plus i didn’t really like the way NUXT works except for the SSR (Server Side Rendering) part.
2
Answers
Since you’re using the
vue-router
, you’re able to utilize themeta
property on the route: https://router.vuejs.org/guide/advanced/meta.htmlFrom here on, you can define a title, description and whatmore, and then use them in your layout with the following syntax
this.$router.currentRoute.meta.title
You can use vue-meta, for create custom meta tag (for SEO) on each componente that render in a page.