stage.ts 666 B

123456789101112131415161718192021
  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. export const awsStage = $app.stage === "production" ? "production" : "dev"
  8. export const deployAws = $app.stage === awsStage
  9. new cloudflare.RegionalHostname("RegionalHostname", {
  10. hostname: domain,
  11. regionKey: "us",
  12. zoneId: zoneID,
  13. })
  14. export const shortDomain = (() => {
  15. if ($app.stage === "production") return "opncd.ai"
  16. if ($app.stage === "dev") return "dev.opncd.ai"
  17. return `${$app.stage}.dev.opncd.ai`
  18. })()