This is the last live domain here, and the ghaym.app address is off. Turn it on first.
last-domain-custom-only · 409
The domain is the last live one of an environment that answers on its custom domains only, so the API kept it rather than leave the service with no address.
All pages
hostname names the domain. A domain that isn't live takes no address away, so it always goes. A staged change to custom domains only doesn't block a removal; applying it checks again.
Besides the members every error carries, this type adds hostname.
- The environment answers on its custom domains only, set with
--reach custom-domain, and this is its only live domain. - Another removal took the environment's other live domain first.
- Turn the ghaym.app address back on with
ghaym cloud access set <service> --reach public --env <env>, apply it, then remove the domain. - Or make the service private first with
--reach private, if nothing outside the project should reach it. - Or add and verify the new domain before removing the old one.
json
{
"type": "last-domain-custom-only",
"title": "This is the last live domain here, and the ghaym.app address is off. Turn it on first.",
"detail": "shop.example.com is the last live domain of an environment open on its custom domains only; turn the ghaym.app address back on or make it private first",
"hostname": "shop.example.com",
"requestId": "req-1785231000000-4f7b2c9ae",
"timestamp": "2026-07-28T09:30:00.000Z",
"path": "/v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/domains/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad402",
"method": "DELETE",
"instance": "DELETE /v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/domains/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad402",
"status": 409,
"docs": "https://ghaym.me/docs/errors/last-domain-custom-only"
}