mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
18 lines
600 B
TypeScript
18 lines
600 B
TypeScript
import { SECRET } from "./secret"
|
|
import { domain, shortDomain } from "./stage"
|
|
|
|
const storage = new sst.cloudflare.Bucket("EnterpriseStorage")
|
|
|
|
const teams = 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,
|
|
},
|
|
})
|