forked from sst/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsst.config.ts
45 lines (44 loc) · 1.17 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
import { SSTConfig } from "sst";
import { DNS } from "./stacks/dns";
import { API } from "./stacks/api";
import { Web } from "./stacks/web";
import { Auth } from "./stacks/auth";
import { Email } from "./stacks/email";
import { Events } from "./stacks/events";
import { Issues } from "./stacks/issues";
import { Billing } from "./stacks/billing";
import { Secrets } from "./stacks/secrets";
import { Connect } from "./stacks/connect";
import { Realtime } from "./stacks/realtime";
import { Storage } from "./stacks/storage";
export default {
config(input) {
return {
name: "console",
region: "us-east-1",
profile: input.stage === "production" ? "sst-production" : "sst-dev",
};
},
stacks(app) {
if (app.stage !== "production") {
app.setDefaultRemovalPolicy("destroy");
}
app.setDefaultFunctionProps({
tracing: "disabled",
architecture: "arm_64",
});
app
.stack(DNS)
.stack(Email)
.stack(Storage)
.stack(Secrets)
.stack(Auth)
.stack(Events)
.stack(Issues)
.stack(API)
.stack(Realtime)
.stack(Connect)
.stack(Web)
.stack(Billing);
},
} satisfies SSTConfig;