Multi Tenant Setup in TSS
I am currently exploring TanStack Start and would like to implement a multi-tenant architecture. While I assume this should be feasible using Nitro proxies, I haven't been able to figure out the correct approach or configuration.
Would it be possible to provide an official guide, example, or even documentation on how to set up a multi-tenant system with TanStack Start?
This addition would greatly benefit developers looking to adopt TanStack Start for SaaS applications or projects requiring multi-tenancy.
Thank you for considering this!
6 Replies
sensitive-blue•10mo ago
what exactly does "multi tenant" mean here?
wee-brownOP•10mo ago
Like this https://vercel.com/solutions/multi-tenant-saas
to support all sub domains like.
app1.example.com
, app2.example.com
etcsensitive-blue•10mo ago
so Subdomains
wee-brownOP•10mo ago
yes
@Manuel Schiller Is it feasible to do in tanstack start Right now ? can you please comment on that ?
sensitive-blue•10mo ago
can't really comment on that, no experience
so would you want to deploy this app once and then route multiple subdomains against it?
wee-brownOP•10mo ago
yes, can we achieve this using this ?
https:// nitro.build/guide/routing#route-rules
or, does TSS supports common middleware for all routes, similar to nextjs ? where proxy /redirect logic can be written ?