Skip to content

Domain file

A Domain file states what one Domain hosts, where it redirects and which mailboxes it has; registrar and certificate state are observed, never written.

PropertyValue
Pathdomains/[host].mdx
HoldsDomain
Kindfile
Leadersdb-first, git-first
TeamEngineering Team
Written byDomain.connect, Change.merge
Compiled bySiteBuilder

Example

domains/closewise.com.mdx in a Startup repository.

domains/closewise.com.mdx
---
role: primary
hosts: sites/www
email: { mailboxes: [hello, billing] }
redirects: { www.closewise.com: closewise.com }
---

Props

The frontmatter keys the file takes. The body is its prose.

PropTypeRequiredDescription
rolestringrequiredWhat the Domain is for: primary, redirect or email.
hostsstringThe Site it serves, by path: sites/www.
emailjsonThe mailboxes at the Domain.
redirectsjsonHosts that redirect to it.

Generates

SiteBuilder compiles it into these records, Verbs and routes.

KindWhat
RecordsDomain
VerbsDomain.connect
RoutesNone.