-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathsst.config.ts
56 lines (55 loc) · 1.45 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
45
46
47
48
49
50
51
52
53
54
55
56
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {
return {
name: "console",
removal: input?.stage === "production" ? "retain" : "remove",
home: "aws",
providers: {
aws: {
region: "us-east-1",
profile: input.stage === "production" ? "sst-production" : "sst-dev",
},
planetscale: "0.2.2",
},
};
},
console: {
autodeploy: {
target(input) {
if (input.type === "branch") {
return {
stage: input.branch,
runner: {
engine: "codebuild",
compute: "large",
},
};
}
},
},
},
async run() {
const { vpc } = await import("./infra/network");
$transform(sst.aws.Function, (args) => {
args.vpc = vpc;
});
await import("./infra/dns");
await import("./infra/cluster");
await import("./infra/planetscale");
await import("./infra/websocket");
await import("./infra/postgres");
await import("./infra/bus");
await import("./infra/event");
await import("./infra/email");
await import("./infra/alerts");
await import("./infra/storage");
await import("./infra/auth");
await import("./infra/api");
await import("./infra/web");
await import("./infra/issues");
await import("./infra/autodeploy");
await import("./infra/billing");
await import("./infra/cluster");
},
});