mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
20 lines
441 B
TypeScript
20 lines
441 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, gateway } = await import("./infra/app.js")
|
|
return {
|
|
api: api.url,
|
|
gateway: gateway.url,
|
|
}
|
|
},
|
|
})
|