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.