user3260392
user3260392

Reputation: 171

Vue.js SEO friendly

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

Answers (2)

Hans Felix Ramos
Hans Felix Ramos

Reputation: 4424

You can use vue-meta, for create custom meta tag (for SEO) on each componente that render in a page.

Upvotes: 0

Jesper
Jesper

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

Related Questions