The open source coding agent.
TypeScript
ci: ignore
Dax Raadde4660ac1296
diff --git a/bun.lock b/bun.lockindex 2038ac83025..6bb1b73d4ae 100644--- a/bun.lock+++ b/bun.lock@@ -177,6 +177,7 @@"zod": "catalog:",},"devDependencies": {+ "@cloudflare/workers-types": "catalog:","@tailwindcss/vite": "catalog:","@types/luxon": "catalog:","@typescript/native-preview": "catalog:",diff --git a/infra/enterprise.ts b/infra/enterprise.tsnew file mode 100644index 00000000000..677c8e41269--- /dev/null+++ b/infra/enterprise.ts@@ -0,0 +1,30 @@+import { domain } from "./stage"++const storage = new sst.cloudflare.Bucket("EnterpriseStorage")+const token = new cloudflare.ApiToken("EnterpriseStorageToken", {+ name: `${$app.name}-${$app.stage}-enterprise-storage`,+ policies: [+ {+ effect: "allow",+ resources: {+ "com.cloudflare.api.account.*": "*",+ },+ permissionGroups: [+ {+ id: "c8d07a38f1654800b34e33e59b4e8f41",+ },+ ],+ },+ ],+})++const enterprise = new sst.cloudflare.x.SolidStart("Enterprise", {+ domain: "enterprise." + domain,+ environment: {+ OPENCODE_STORAGE_ADAPTER: "r2",+ OPENCODE_STORAGE_ACCOUNT_ID: sst.cloudflare.DEFAULT_ACCOUNT_ID,+ OPENCODE_STORAGE_ACCESS_KEY_ID: "---",+ OPENCODE_STORAGE_SECRET_ACCESS_KEY: "---",+ OPENCODE_STORAGE_BUCKET: storage.name,+ },+})diff --git a/packages/enterprise/package.json b/packages/enterprise/package.jsonindex 985ed203b08..78d61aeee33 100644--- a/packages/enterprise/package.json+++ b/packages/enterprise/package.json@@ -24,6 +24,7 @@"zod": "catalog:"},"devDependencies": {+ "@cloudflare/workers-types": "catalog:","@tailwindcss/vite": "catalog:","@typescript/native-preview": "catalog:","@types/luxon": "catalog:",diff --git a/packages/enterprise/tsconfig.json b/packages/enterprise/tsconfig.jsonindex 6bdc0f9ee9c..af4ce16490f 100644--- a/packages/enterprise/tsconfig.json+++ b/packages/enterprise/tsconfig.json@@ -11,7 +11,7 @@"allowJs": true,"noEmit": true,"strict": true,- "types": ["vite/client"],+ "types": ["@cloudflare/workers-types", "vite/client"],"isolatedModules": true,"paths": {"~/*": ["./src/*"]diff --git a/sst.config.ts b/sst.config.tsindex a1878739120..1698721ce51 100644--- a/sst.config.ts+++ b/sst.config.ts@@ -9,7 +9,7 @@ export default $config({home: "cloudflare",providers: {stripe: {- apiKey: process.env.STRIPE_SECRET_KEY,+ apiKey: process.env.STRIPE_SECRET_KEY!,},planetscale: "0.4.1",},