T
TanStack10mo ago
wee-brown

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
sensitive-blue10mo ago
what exactly does "multi tenant" mean here?
wee-brown
wee-brownOP10mo 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.
sensitive-blue
sensitive-blue10mo ago
so Subdomains
wee-brown
wee-brownOP10mo ago
yes @Manuel Schiller Is it feasible to do in tanstack start Right now ? can you please comment on that ?
sensitive-blue
sensitive-blue10mo 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-brown
wee-brownOP10mo 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?