opencode_offline/sst.config.ts

24 lines
563 B
TypeScript
Raw Normal View History

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