opencode/sst.config.ts

24 lines
567 B
TypeScript
Raw Permalink Normal View History

2025-05-23 14:17:45 -04:00
/// <reference path="./.sst/platform/config.d.ts" />
2025-09-26 07:54:30 -04:00
2025-05-23 14:17:45 -04: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 13:22:54 -04:00
providers: {
stripe: {
2025-11-23 14:28:10 -05:00
apiKey: process.env.STRIPE_SECRET_KEY!,
2025-08-08 13:22:54 -04:00
},
2025-09-02 03:14:56 -04:00
planetscale: "0.4.1",
2025-08-08 13:22:54 -04:00
},
2025-09-02 20:01:11 -04:00
}
2025-05-23 14:17:45 -04:00
},
async run() {
2025-09-15 03:53:21 -04:00
await import("./infra/app.js")
2025-09-18 10:59:01 -04:00
await import("./infra/console.js")
2025-11-23 14:31:03 -05:00
await import("./infra/enterprise.js")
2025-05-23 14:17:45 -04:00
},
2025-09-02 20:01:11 -04:00
})