summaryrefslogtreecommitdiffhomepage
path: root/infra/stage.ts
blob: 729422905d68d2c298425e6c705e70a62c4fefcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"

new cloudflare.RegionalHostname("RegionalHostname", {
  hostname: domain,
  regionKey: "us",
  zoneId: zoneID,
})