canastro
canastro
TTCTheo's Typesafe Cult
Created by canastro on 5/6/2024 in #questions
T3 - pass current tenant slug into TRPC context
I'm trying to create a Saas product with T3 and I need to have the tenant slug in the TRPC context so that I can try to do the operations in the correct tenant. I was able to use headers from the react client to pass in the slug, but I don't know a good way to solve this for server components. Does anyone have a good example or can provide some guidance for this?
14 replies