mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-18 16:34:18 +01:00
24 lines
563 B
TypeScript
24 lines
563 B
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: {
|
|
stripe: {
|
|
apiKey: process.env.STRIPE_SECRET_KEY,
|
|
},
|
|
planetscale: "0.4.1",
|
|
},
|
|
}
|
|
},
|
|
async run() {
|
|
await import("./infra/app.js")
|
|
await import("./infra/console.js")
|
|
await import("./infra/desktop.js")
|
|
},
|
|
})
|