mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-29 11:14:23 +00:00
Some checks are pending
deploy / deploy (push) Waiting to run
generate / generate (push) Waiting to run
nix-eval / nix-eval (push) Waiting to run
nix-hashes / compute-hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
nix-hashes / compute-hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
nix-hashes / compute-hash (macos-15-intel, x86_64-darwin) (push) Waiting to run
nix-hashes / compute-hash (macos-latest, aarch64-darwin) (push) Waiting to run
nix-hashes / update-hashes (push) Blocked by required conditions
publish / version (push) Waiting to run
publish / build-cli (push) Blocked by required conditions
publish / sign-cli-windows (push) Blocked by required conditions
publish / build-electron (map[bun_install_flags:--os=darwin --cpu=arm64 host:macos-26 platform_flag:--mac --arm64 target:aarch64-apple-darwin]) (push) Blocked by required conditions
publish / build-electron (map[bun_install_flags:--os=darwin --cpu=x64 host:macos-26-intel platform_flag:--mac --x64 target:x86_64-apple-darwin]) (push) Blocked by required conditions
publish / build-electron (map[host:blacksmith-4vcpu-ubuntu-2404 platform_flag:--linux target:x86_64-unknown-linux-gnu]) (push) Blocked by required conditions
publish / build-electron (map[host:blacksmith-4vcpu-ubuntu-2404-arm platform_flag:--linux --arm64 target:aarch64-unknown-linux-gnu]) (push) Blocked by required conditions
publish / build-electron (map[host:blacksmith-4vcpu-windows-2025 platform_flag:--win target:x86_64-pc-windows-msvc]) (push) Blocked by required conditions
publish / build-electron (map[host:windows-2025 platform_flag:--win --arm64 target:aarch64-pc-windows-msvc]) (push) Blocked by required conditions
publish / publish (push) Blocked by required conditions
storybook / storybook build (push) Waiting to run
test / unit (linux) (push) Waiting to run
test / unit (windows) (push) Waiting to run
test / e2e (linux) (push) Waiting to run
test / e2e (windows) (push) Waiting to run
typecheck / typecheck (push) Waiting to run
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
/// <reference path="./.sst/platform/config.d.ts" />
|
|
|
|
export default $config({
|
|
app(input) {
|
|
return {
|
|
name: "opencode",
|
|
removal: input?.stage === "production" ? "retain" : "remove",
|
|
protect: ["production"].includes(input?.stage),
|
|
home: "cloudflare",
|
|
providers: {
|
|
aws: {
|
|
version: "7.30.0",
|
|
region: "us-east-1",
|
|
profile: process.env.GITHUB_ACTIONS
|
|
? undefined
|
|
: input.stage === "production"
|
|
? "opencode-production"
|
|
: "opencode-dev",
|
|
},
|
|
stripe: {
|
|
version: "0.0.28",
|
|
apiKey: process.env.STRIPE_SECRET_KEY!,
|
|
},
|
|
random: "4.19.2",
|
|
planetscale: "0.4.1",
|
|
honeycomb: "0.49.0",
|
|
},
|
|
}
|
|
},
|
|
async run() {
|
|
const stage = await import("./infra/stage.js")
|
|
await import("./infra/app.js")
|
|
if (stage.deployAws) {
|
|
await import("./infra/lake.js")
|
|
await import("./infra/stats.js")
|
|
}
|
|
const { stat } = await import("./infra/console.js")
|
|
await import("./infra/enterprise.js")
|
|
if ($app.stage === "production" || $app.stage === "vimtor") {
|
|
await import("./infra/monitoring.js")
|
|
}
|
|
|
|
return {
|
|
StatWorkerUrl: stat.url,
|
|
// StatsUrl: stats.app.url,
|
|
AwsStage: stage.awsStage,
|
|
}
|
|
},
|
|
})
|