stage.ts 794 B

1234567891011121314151617181920212223
  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. // Temporarily omit AWS infra so SST removes the lake/stats resources.
  10. export const deployAws = false
  11. new cloudflare.RegionalHostname("RegionalHostname", {
  12. hostname: domain,
  13. regionKey: "us",
  14. zoneId: zoneID,
  15. })
  16. export const shortDomain = (() => {
  17. if ($app.stage === "production") return "opncd.ai"
  18. if ($app.stage === "dev") return "dev.opncd.ai"
  19. return `${$app.stage}.dev.opncd.ai`
  20. })()