Sep 10, 2026·4 min readOne client, many tenants: doing multi-tenancy without a footgunHow to resolve the right tenant ID per request in a shared SSR client — and why ambient context beats passing tenantId through every function call.#typescript#api-client#multi-tenancy#nextjs