Share: sync

This commit is contained in:
Frank
2025-05-23 14:17:45 -04:00
committed by Dax Raad
parent 59d43fa5da
commit 83974e0c95
26 changed files with 2695 additions and 0 deletions

26
app/sst.config.ts Normal file
View File

@@ -0,0 +1,26 @@
/// <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",
providers: {
cloudflare: {
apiToken:
input?.stage === "production"
? process.env.PRODUCTION_CLOUDFLARE_API_TOKEN
: process.env.DEV_CLOUDFLARE_API_TOKEN,
},
},
}
},
async run() {
const { api } = await import("./infra/app.js")
return {
api: api.url,
}
},
})