Skip to content

Commit a74e2d3

Browse files
authored
chore(infra): let the regional hostname be dropped without calling Cloudflare (#62284)
1 parent 1cfa183 commit a74e2d3

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

‎infra/stage.ts‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,17 @@ if ($app.stage === "production") {
2727
})
2828
}
2929

30-
new cloudflare.RegionalHostname("RegionalHostname", {
31-
hostname: domain,
32-
regionKey: "us",
33-
zoneId: zoneID,
34-
})
30+
// Removed from Cloudflare by hand on 2026-11-06 (dev and production): the deploy token can't delete regional
31+
// hostnames. Retained on delete so dropping this resource next only forgets it instead of calling Cloudflare.
32+
new cloudflare.RegionalHostname(
33+
"RegionalHostname",
34+
{
35+
hostname: domain,
36+
regionKey: "us",
37+
zoneId: zoneID,
38+
},
39+
{ retainOnDelete: true },
40+
)
3541

3642
export const shortDomain = (() => {
3743
if ($app.stage === "production") return "opncd.ai"

0 commit comments

Comments
 (0)