-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsst.config.ts
44 lines (39 loc) · 1.12 KB
/
sst.config.ts
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {
return {
name: "wallet",
removal: input?.stage === "prod" ? "retain" : "remove",
home: "aws",
provider: {
aws: {
region: "eu-west-1",
},
},
};
},
async run() {
// Some config
await import("./infra/config.ts");
// Build the sdk on dev env
if ($dev) {
new sst.x.DevCommand("sdk:build", {
dev: {
title: "Build SDK",
autostart: false,
command: "bun run build:sdk",
directory: "./",
},
});
}
// Deploy backend
await import("./infra/backend.ts");
// Add wallet + dashboard
await import("./infra/wallet.ts");
await import("./infra/dashboard.ts");
// Deploy example on non prod stacks
if ($app.stage !== "prod") {
await import("./infra/example.ts");
}
},
});