N
Nuxt2y ago
Nathan

What would be a better choice for SPA in 2023? Nuxt over Vue?

Hi Folks, We're planning to build a SPA but just got a little confused over choosing the framework. Now with Nuxt 3 we can have hybrid rendering unleashing the power of all rendering options out there, but are there any other reasons we should go for Vue 3 + Vite powered instead of Nuxt? The product will have a website and studio app, so our initial thoughts were, Website - Nuxt 3 (SSG) Studio app - Vue 3 + Vite and other toolings After knowing the hybrid option to render things, I'm still reluctant to have everything under one roof 👀 Let me know what others think! P.S. we're in the process of moving from React --> Vue 3
5 Replies
Nathan
Nathan2y ago
Also I don't find any relevant docs for building multi-tenant apps with custom domains using Nuxt 3 🤔
dmarr
dmarr2y ago
I am also having a hard time with multitenacy. I’m going to put together a repro case, but I don’t know how to get host header on server rendered pages. It’s always localhost. Also the default for the useFetch call appears to be null so providing a client only solution is a bit hacky as well using useRequestURL in your plugin/etc should help to setup multitenancy
Nathan
Nathan2y ago
@dmarr thanks for hopping in, so just to understand better, do you think having a separate vue and nuxt project makes more sense?
dmarr
dmarr2y ago
you certainly could, but another option is to disable ssr for specific parts of your app using route rules. You could add something like this to your config:
routeRules: {
'/studio': { ssr: false }
}
routeRules: {
'/studio': { ssr: false }
}
if you wanted to keep everthing in one place
Nathan
Nathan2y ago
Yes recently I came to know this, but now I'm more interested in why I shouldn't go for Nuxt instead of Vue + Vite?
Want results from more Discord servers?
Add your server