getUniqueDomainName

Function

Ensure a unique domain name by checking for and incrementing a subdomain

  • getUniqueDomainName(subdomain: string, baseHostname: string, hubRequestOptions: IHubRequestOptions, step: number) : Promise<string>

Parameters

Parameter Type Default Notes
subdomain Required string

Subdomain to ensure is unique

baseHostname Required string

base hostname

hubRequestOptions Required IHubRequestOptions
step Optional number 0

Step number

Returns

Promise<string>

Function defined in common/src/sites/domains/get-unique-domain-name.ts:12