Resolves the tenant id from the first subdomain label of request.url.
request.url
const resolver = new SubdomainResolver({ baseDomain: 'example.com' });const result = await resolver.resolve(request); // url: https://acme.example.com// => some({ id: 'acme' }) Copy
const resolver = new SubdomainResolver({ baseDomain: 'example.com' });const result = await resolver.resolve(request); // url: https://acme.example.com// => some({ id: 'acme' })
Optional
Resolve the tenant id from the request's subdomain.
The incoming request
Some with the tenant, or None when the host carries no tenant
Some
None
Resolves the tenant id from the first subdomain label of
request.url.Example