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.vue
component then.
and SPA mostly comes with MPA Challenges such as SEO, SSR concerns. The routing roughly the same to Vue/Nuxt.
Source:stackexchange.com