summaryrefslogtreecommitdiffhomepage
path: root/sst.config.ts
blob: 4c36fea5852d5ed3f93c83d0bd17bea41d4be919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// <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,
    }
  },
})