diff options
Diffstat (limited to 'sst.config.ts')
| -rw-r--r-- | sst.config.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sst.config.ts b/sst.config.ts new file mode 100644 index 000000000..4c36fea58 --- /dev/null +++ b/sst.config.ts @@ -0,0 +1,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, + } + }, +}) |
