GHHG10/CodeServer / opencode /infra /enterprise.ts
GHHG10's picture
download
raw
578 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",
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,
},
})

Xet Storage Details

Size:
578 Bytes
·
Xet hash:
56094215389fe4a655aa9636710c19e76dae32045a0527e537f52d02f82eb10d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.