cloudaxe-opencode/sst.config.ts

24 lines
567 B
TypeScript
Raw Normal View History

2025-05-23 18:17:45 +00:00
/// <reference path="./.sst/platform/config.d.ts" />
2025-09-26 11:54:30 +00:00
2025-05-23 18:17:45 +00:00
export default $config({
app(input) {
return {
name: "opencode",
removal: input?.stage === "production" ? "retain" : "remove",
protect: ["production"].includes(input?.stage),
home: "cloudflare",
2025-08-08 17:22:54 +00:00
providers: {
stripe: {
2025-11-23 19:28:10 +00:00
apiKey: process.env.STRIPE_SECRET_KEY!,
2025-08-08 17:22:54 +00:00
},
2025-09-02 07:14:56 +00:00
planetscale: "0.4.1",
2025-08-08 17:22:54 +00:00
},
2025-09-03 00:01:11 +00:00
}
2025-05-23 18:17:45 +00:00
},
async run() {
2025-09-15 07:53:21 +00:00
await import("./infra/app.js")
2025-09-18 14:59:01 +00:00
await import("./infra/console.js")
2025-11-23 19:31:03 +00:00
await import("./infra/enterprise.js")
2025-05-23 18:17:45 +00:00
},
2025-09-03 00:01:11 +00:00
})