stage.ts 542 B

12345678910111213141516171819
  1. export const domain = (() => {
  2. if ($app.stage === "production") return "opencode.ai"
  3. if ($app.stage === "dev") return "dev.opencode.ai"
  4. return `${$app.stage}.dev.opencode.ai`
  5. })()
  6. export const zoneID = "430ba34c138cfb5360826c4909f99be8"
  7. new cloudflare.RegionalHostname("RegionalHostname", {
  8. hostname: domain,
  9. regionKey: "us",
  10. zoneId: zoneID,
  11. })
  12. export const shortDomain = (() => {
  13. if ($app.stage === "production") return "opncd.ai"
  14. if ($app.stage === "dev") return "dev.opncd.ai"
  15. return `${$app.stage}.dev.opncd.ai`
  16. })()