stage.ts 741 B

12345678910111213141516171819202122
  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. // Dev owns the shared AWS lake/stats infra for all non-production stages.
  8. export const awsStage = $app.stage === "production" ? "production" : "dev"
  9. export const deployAws = $app.stage === awsStage
  10. new cloudflare.RegionalHostname("RegionalHostname", {
  11. hostname: domain,
  12. regionKey: "us",
  13. zoneId: zoneID,
  14. })
  15. export const shortDomain = (() => {
  16. if ($app.stage === "production") return "opncd.ai"
  17. if ($app.stage === "dev") return "dev.opncd.ai"
  18. return `${$app.stage}.dev.opncd.ai`
  19. })()