Public Routes Domain + Auth Routes Subdomain
As the SPA mode is rolling out soon this came to mind. Can this be achieved in one single TSR app?
Public routes on company.com/* (ie marketing page and blog… SSR)
Auth routes on tenantName.company.com/* (SPA)
Or would this need to be deployed as two separate TSR apps in say a monorepo?
Ignore that spa mode doesn’t exist more wondering about the routing here but I’m sure this is a common routing use case
1 Reply
harsh-harlequin•7mo ago
I can think of a hacky way where you point the domain and subdomains to the same location. You can pull the hostname from the window and parse what subdomain you're at and use that on TSR to route you appropriately