Download infra/enterprise.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 610 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/infra/enterprise.ts
- Command line
-
hf download hf://SaylorTwift/opencode/infra/enterprise.ts
-
curl -L -o enterprise.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/infra/enterprise.ts
610 Bytes
| import { SECRET } from "./secret" | |
| import { shortDomain } from "./stage" | |
| const storage = new sst.cloudflare.Bucket("EnterpriseStorage") | |
| new sst.cloudflare.x.SolidStart("Teams", { | |
| domain: shortDomain, | |
| path: "packages/enterprise", | |
| buildCommand: "bun run build:cloudflare", | |
| link: [SECRET.SupportApiKey], | |
| environment: { | |
| OPENCODE_STORAGE_ADAPTER: "r2", | |
| OPENCODE_STORAGE_ACCOUNT_ID: sst.cloudflare.DEFAULT_ACCOUNT_ID, | |
| OPENCODE_STORAGE_ACCESS_KEY_ID: SECRET.R2AccessKey.value, | |
| OPENCODE_STORAGE_SECRET_ACCESS_KEY: SECRET.R2SecretKey.value, | |
| OPENCODE_STORAGE_BUCKET: storage.name, | |
| }, | |
| }) | |