mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-27 00:31:00 +00:00
22 lines
741 B
TypeScript
22 lines
741 B
TypeScript
export const domain = (() => {
|
|
if ($app.stage === "production") return "opencode.ai"
|
|
if ($app.stage === "dev") return "dev.opencode.ai"
|
|
return `${$app.stage}.dev.opencode.ai`
|
|
})()
|
|
|
|
export const zoneID = "430ba34c138cfb5360826c4909f99be8"
|
|
// Dev owns the shared AWS lake/stats infra for all non-production stages.
|
|
export const awsStage = $app.stage === "production" ? "production" : "dev"
|
|
export const deployAws = $app.stage === awsStage
|
|
|
|
new cloudflare.RegionalHostname("RegionalHostname", {
|
|
hostname: domain,
|
|
regionKey: "us",
|
|
zoneId: zoneID,
|
|
})
|
|
|
|
export const shortDomain = (() => {
|
|
if ($app.stage === "production") return "opncd.ai"
|
|
if ($app.stage === "dev") return "dev.opncd.ai"
|
|
return `${$app.stage}.dev.opncd.ai`
|
|
})()
|