chore(infra): let the regional hostname be dropped without calling Cloudflare (#62284)

This commit is contained in:
Adam 2026-11-05 23:38:33 -06:00 • committed by GitHub
parent 1cfa183763
commit a74e2d32fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,11 +27,17 @@ if ($app.stage === "production") {
})
}
new cloudflare.RegionalHostname("RegionalHostname", {
hostname: domain,
regionKey: "us",
zoneId: zoneID,
})
// Removed from Cloudflare by hand on 2026-11-06 (dev and production): the deploy token can't delete regional
// hostnames. Retained on delete so dropping this resource next only forgets it instead of calling Cloudflare.
new cloudflare.RegionalHostname(
"RegionalHostname",
{
hostname: domain,
regionKey: "us",
zoneId: zoneID,
},
{ retainOnDelete: true },
)
export const shortDomain = (() => {
if ($app.stage === "production") return "opncd.ai"