T
TanStack13mo ago
sensitive-blue

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
extended-salmon
extended-salmon13mo ago
what exactly does "multi tenant" mean here?
sensitive-blue
sensitive-blueOP13mo ago
Like this https://vercel.com/solutions/multi-tenant-saas to support all sub domains like. app1.example.com , app2.example.com etc
Vercel
Multi-tenant SaaS – Vercel
One codebase. Infinite domains.
extended-salmon
extended-salmon13mo ago
so Subdomains
sensitive-blue
sensitive-blueOP13mo ago
yes @Manuel Schiller Is it feasible to do in tanstack start Right now ? can you please comment on that ?
extended-salmon
extended-salmon13mo 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?
sensitive-blue
sensitive-blueOP13mo 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 ?

Did you find this page helpful?