diff options
| author | Dax Raad <[email protected]> | 2025-05-30 20:47:56 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-30 20:48:36 -0400 |
| commit | f3da73553c45f17e04b1e77cb13eb0fca714d1bd (patch) | |
| tree | a24317a19e1ab2a89da50db669dc6894f15d00d1 /sst.config.ts | |
| parent | 9a26b3058ffc1023e5c7e54b6d571c903d15888e (diff) | |
| download | opencode-f3da73553c45f17e04b1e77cb13eb0fca714d1bd.tar.gz opencode-f3da73553c45f17e04b1e77cb13eb0fca714d1bd.zip | |
sync
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, + } + }, +}) |
