mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 09:43:38 +00:00
chore(infra): let the regional hostname be dropped without calling Cloudflare (#62284)
This commit is contained in:
parent
1cfa183763
commit
a74e2d32fe
1 changed files with 11 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue