2025-08-09 01:22:54 +08:00
|
|
|
export const domain = (() => {
|
|
|
|
|
if ($app.stage === "production") return "opencode.ai"
|
|
|
|
|
if ($app.stage === "dev") return "dev.opencode.ai"
|
|
|
|
|
return `${$app.stage}.dev.opencode.ai`
|
|
|
|
|
})()
|
2025-09-27 13:28:11 +08:00
|
|
|
|
|
|
|
|
export const zoneID = "430ba34c138cfb5360826c4909f99be8"
|
2026-05-26 07:14:39 +08:00
|
|
|
export const awsStage = $app.stage === "production" ? "production" : "dev"
|
2026-05-27 19:17:16 +08:00
|
|
|
export const deployAws = $app.stage === awsStage
|
2026-05-26 06:34:04 +08:00
|
|
|
|
2025-10-04 07:05:32 +08:00
|
|
|
new cloudflare.RegionalHostname("RegionalHostname", {
|
|
|
|
|
hostname: domain,
|
|
|
|
|
regionKey: "us",
|
|
|
|
|
zoneId: zoneID,
|
|
|
|
|
})
|
2025-12-11 13:11:40 +08:00
|
|
|
|
|
|
|
|
export const shortDomain = (() => {
|
|
|
|
|
if ($app.stage === "production") return "opncd.ai"
|
|
|
|
|
if ($app.stage === "dev") return "dev.opncd.ai"
|
|
|
|
|
return `${$app.stage}.dev.opncd.ai`
|
|
|
|
|
})()
|