-1

The project uses vue3 + Vue Cli, only need to prerender home.vue to improve SEO, after searching a lot, still can't find a better solution.

It doesn't need SSG on whole website, so "Nuxt.js", "Vuepress" are not an option. The project don't use vite, so "vite-plugin-ssr", "vite-ssg" are not an option.

I tried "prerender-spa-plugin-next", but it's for Vue2 and there is a bug.

Dependencies:

"vue": "^3.1.5",
"vue-router": "^4.0.0-0",
"@vue/cli-plugin-router": "^5.0.8",
"@vue/cli-service": "^5.0.8",
"vue-loader": "^16.4.1",
"webpack": "^5.86.0"

Thank you.

Rob
  • 14,746
  • 28
  • 47
  • 65
GC_Alison
  • 1
  • 1
  • Have you checked out [Nuxt](https://nuxt.com)? It takes a little bit of time to learn the basics, but Nuxt as a Meta-Framework solves all custom renderings. – wittgenstein Aug 18 '23 at 09:23
  • @wittgenstein Thank you for reply, because my project is almost finished, using Nuxt will takes too much time at this moment. – GC_Alison Aug 20 '23 at 14:03

0 Answers0