opencode/sst.config.ts
2025-05-30 20:48:36 -04:00

18 lines
404 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",
}
},
async run() {
const { api } = await import("./infra/app.js")
return {
api: api.url,
}
},
})