[Vuejs]-Vue: How to enable multi page in an existing SPA project?

0👍

From SPA View, i would likely go like this

Inside /views folder

- HomePage.vue (no auth)
- Login.vue 
  - /users/ subfolder (auth needed)
    - DashBoard.vue
    - About.vue
    etc

Then define the routes (paths,components,etc.) with requiresAuth as auth-check, redirects back to the route with HomePage.vuecomponent then.

and SPA mostly comes with MPA Challenges such as SEO, SSR concerns. The routing roughly the same to Vue/Nuxt.

Leave a comment