cloudaxe-opencode/sst.config.ts

26 lines
615 B
TypeScript
Raw Normal View History

2025-05-23 18:17:45 +00:00
/// <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",
2025-08-08 17:22:54 +00:00
providers: {
stripe: {
apiKey: process.env.STRIPE_SECRET_KEY,
},
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-03 00:01:11 +00:00
const { api } = await import("./infra/app.js")
const { auth } = await import("./infra/cloud.js")
2025-05-23 18:17:45 +00:00
return {
api: api.url,
2025-08-08 17:22:54 +00:00
auth: auth.url,
2025-09-03 00:01:11 +00:00
}
2025-05-23 18:17:45 +00:00
},
2025-09-03 00:01:11 +00:00
})