I built a news website using vuejs and for SEO and performance reasons i would like to utilize SSR(Server side rendering) using nuxt, I could find many resources in writing a new nuxt app but nothing on converting an existing vuejs app to nuxt. Has anyone tried this or have recommendations on how to do it?
2
Answers
I suggest you that you need to create new project as parallel. And convert
Vue
projects toNuxt.js
project step by step.Please watch
Why Use Nuxt.js?
video on https://nuxtjs.org/ home page.Pretty straight forward. Since Nuxt used Vue, all of your components would work the same.
I would create a new blank Nuxt app, then manually migrate each of the pages and components into the new Nuxt app.
Then with Nuxt, you can choose:
npm run build
npm run generate
EDIT: You can also supercharge your nuxt site with the nuxt seo package.