summaryrefslogtreecommitdiffhomepage
path: root/infra/stage.ts
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2025-12-11 10:47:24 +0000
committerDavid Hill <[email protected]>2025-12-11 10:47:24 +0000
commite91d121ef8168ea76740fb45ae438f8e916adb4d (patch)
tree4f3e8daad2e13674893dcc30ebd5bafef2f2dfd9 /infra/stage.ts
parent1b4975ba54be6d7cf57c40071e461b9393b8d378 (diff)
parent53d2edc0f2b2c764959229f7a7235fc2757a6b48 (diff)
downloadopencode-e91d121ef8168ea76740fb45ae438f8e916adb4d.tar.gz
opencode-e91d121ef8168ea76740fb45ae438f8e916adb4d.zip
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'infra/stage.ts')
-rw-r--r--infra/stage.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/infra/stage.ts b/infra/stage.ts
index 729422905..f9a6fd755 100644
--- a/infra/stage.ts
+++ b/infra/stage.ts
@@ -11,3 +11,9 @@ new cloudflare.RegionalHostname("RegionalHostname", {
regionKey: "us",
zoneId: zoneID,
})
+
+export const shortDomain = (() => {
+ if ($app.stage === "production") return "opncd.ai"
+ if ($app.stage === "dev") return "dev.opncd.ai"
+ return `${$app.stage}.dev.opncd.ai`
+})()