mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 12:10:45 +03:00
chore(infra): let the regional hostname be dropped without calling Cloudflare (#62284)
This commit is contained in:
+11
-5
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user