Reputation: 171
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.
Upvotes: 1
Views: 1767
Reputation: 4424
You can use vue-meta, for create custom meta tag (for SEO) on each componente that render in a page.
Upvotes: 0
Reputation: 3834
Since you're using the vue-router
, you're able to utilize the meta
property on the route: https://router.vuejs.org/guide/advanced/meta.html
From 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
Upvotes: 0