Type Alias: DomainConfig
DomainConfig =
object
Defined in: net/server/server.ts:50
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
resolveDomain | (domain) => string | Given 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) => string | Given 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 |