stage.ts 879 B

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