diff options
| author | David Hill <[email protected]> | 2025-12-11 10:47:24 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2025-12-11 10:47:24 +0000 |
| commit | e91d121ef8168ea76740fb45ae438f8e916adb4d (patch) | |
| tree | 4f3e8daad2e13674893dcc30ebd5bafef2f2dfd9 /infra | |
| parent | 1b4975ba54be6d7cf57c40071e461b9393b8d378 (diff) | |
| parent | 53d2edc0f2b2c764959229f7a7235fc2757a6b48 (diff) | |
| download | opencode-e91d121ef8168ea76740fb45ae438f8e916adb4d.tar.gz opencode-e91d121ef8168ea76740fb45ae438f8e916adb4d.zip | |
Merge branch 'dev' of https://github.com/sst/opencode into dev
Diffstat (limited to 'infra')
| -rw-r--r-- | infra/enterprise.ts | 6 | ||||
| -rw-r--r-- | infra/stage.ts | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/infra/enterprise.ts b/infra/enterprise.ts index 70693846a..22b4c6f44 100644 --- a/infra/enterprise.ts +++ b/infra/enterprise.ts @@ -1,10 +1,10 @@ import { SECRET } from "./secret" -import { domain } from "./stage" +import { domain, shortDomain } from "./stage" const storage = new sst.cloudflare.Bucket("EnterpriseStorage") -const enterprise = new sst.cloudflare.x.SolidStart("Enterprise", { - domain: "enterprise." + domain, +const teams = new sst.cloudflare.x.SolidStart("Teams", { + domain: shortDomain, path: "packages/enterprise", buildCommand: "bun run build:cloudflare", environment: { 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` +})() |
