Skip to main content

Type Alias: DomainConfig

DomainConfig = object

Defined in: net/server/server.ts:50

Properties

PropertyTypeDescriptionDefined in
resolveDomain(domain) => stringGiven a domain name, this function is responsible for extracting the organization id. This is the reverse operation of resolveDomain - it takes a fully qualified domain and returns the organization id that would have generated that domain.net/server/server.ts:72
resolveOrg(orgId) => stringGiven an organization id, this function is responsible for resolving it to the correct URL. It enables a single server instance to serve multiple organizations in a multi-tenant deployment. A typical easy implementation is to place each organization under its own sub-path or sub-domain of the main service.net/server/server.ts:62