mirror of
https://github.com/sst/opencode.git
synced 2025-08-21 21:44:08 +00:00
26 lines
623 B
TypeScript
26 lines
623 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,
|
|
},
|
|
},
|
|
}
|
|
},
|
|
async run() {
|
|
const { api } = await import("./infra/app.js")
|
|
const { auth, gateway } = await import("./infra/cloud.js")
|
|
return {
|
|
api: api.url,
|
|
gateway: gateway.url,
|
|
auth: auth.url,
|
|
}
|
|
},
|
|
})
|