Admin API / Types
CustomDomainSetup
ObjectThe DNS setup of one custom domain.
type CustomDomainSetupFields
| Field | Type | Description |
|---|---|---|
dnsSetup | CustomDomainDnsSetup! | The setup that the owner chose. |
dnsSetupComplete | Boolean! | False while District moves the domain to dnsSetup. When true, the records of the earlier setup that records no longer lists can be removed. |
dnsUpdateRequired | Boolean! | True when the storefront of the domain is on its earlier hosting. The owner then changes the storefront records at the DNS provider to the records values, in one step. District moves the storefront when it finds the new records. False when the domain serves no storefront. |
domain | String! | The custom domain, such as example.com. |
records | [CustomDomainDnsRecord!]! | The records to publish, in a stable order. A record that District can name only after it starts to set up the surface, such as a CERTIFICATE record, shows when it is known. |
registeredDomain | String! | The registered domain of domain on the public suffix list, its private section included: example.co.uk for shop.example.co.uk, and domain itself for a root domain. DNS providers name a record relative to it. |
rootRedirect | CustomDomainRootRedirect | Always null. District no longer checks a redirect from the domain to the storefront host.Deprecated. Always null. |
servesStorefront | Boolean! | False when the store's storefront is on the store's own site. The domain then serves only its other surfaces, stores no storefront label, and surfaces and records list no storefront. |
storefrontHost | String | The host of the storefront, such as shop.example.com for the storefront label shop, or the domain itself with no label. Null when the domain serves no storefront. |
surfaces | [CustomDomainSurfaceState!]! | The storefront, when the domain serves it, then each other surface that is turned on or that District set up on the domain. |