The open source coding agent.
TypeScript
domain
Dax Raad4309c078fb83
diff --git a/infra/enterprise.ts b/infra/enterprise.tsindex 316d6384d0e..e3b61c36dac 100644--- a/infra/enterprise.ts+++ b/infra/enterprise.ts@@ -1,14 +1,13 @@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,+ domain: shortDomain,path: "packages/enterprise",buildCommand: "bun run build:cloudflare",environment: {- OPENCODE_BASE_URL: "/t",OPENCODE_STORAGE_ADAPTER: "r2",OPENCODE_STORAGE_ACCOUNT_ID: sst.cloudflare.DEFAULT_ACCOUNT_ID,OPENCODE_STORAGE_ACCESS_KEY_ID: SECRET.R2AccessKey.value,diff --git a/infra/stage.ts b/infra/stage.tsindex 729422905d6..f9a6fd75529 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`+})()diff --git a/packages/enterprise/src/routes/index.tsx b/packages/enterprise/src/routes/index.tsxnew file mode 100644index 00000000000..5a743b03963--- /dev/null+++ b/packages/enterprise/src/routes/index.tsx@@ -0,0 +1,3 @@+export default function () {+ return <div>Hello World</div>+}