<- All updates

Domains

Use your own domain

Point a domain at a live Flat deployment, or redirect it to another domain.

Released
Area
Domains

You can now serve a Flat deployment from your own domain. Point its DNS at cname.onflat.page, then attach it when you deploy:

npx @getflat/cli deploy --domain docs.example.com ./dist

Flat checks DNS before upload and again before publishing. If the record points somewhere else, the CLI shows what it found and what it expected.

You can also attach a domain to an existing live deployment:

getflat domains assign docs.example.com DEPLOYMENT_ID
getflat domains inspect docs.example.com

domains inspect shows the current target along with DNS and TLS status. Reassigning the domain moves it to another immutable deployment without changing the public address.

Domains can redirect too. Flat supports 301, 302, 307, and 308 responses, and keeps the request path and query string intact.

getflat domains redirect www.example.com example.com --status 308