opencode_offline/sst.config.ts

27 lines
623 B
TypeScript
Raw Normal View History

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