mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
18 lines
404 B
TypeScript
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,
|
|
}
|
|
},
|
|
})
|