blob: f9ffa579bdb21b45d26c3b836ef2658598e21a61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/// <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: {
stripe: {
apiKey: process.env.STRIPE_SECRET_KEY,
},
planetscale: "0.4.1",
},
}
},
async run() {
const { api } = await import("./infra/app.js")
const { auth } = await import("./infra/cloud.js")
return {
api: api.url,
auth: auth.url,
}
},
})
|