-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsst.config.ts
50 lines (47 loc) · 1.1 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
/* eslint-disable */
/// <reference path="./.sst/platform/config.d.ts" />
// https://github.com/taylorfsteele/TSS/blob/main/sst.config.ts
export default $config({
app(input) {
return {
name: 'lhowsamdotcom',
removal: input?.stage === 'production' ? 'retain' : 'remove',
protect: ['production'].includes(input?.stage),
home: 'aws',
providers: {
cloudflare: {
apiToken: process.env.CF_API_TOKEN,
},
aws: {},
},
};
},
async run() {
new sst.aws.Nextjs('lhowsam', {
warm: 4,
domain: {
name: 'staging.lhowsam.com',
dns: sst.cloudflare.dns({
override: true,
zone: process.env.CLOUDFLARE_ZONE_ID,
proxy: true,
transform: {
record: {
name: 'staging',
allowOverwrite: true,
comment: 'SST',
},
},
}),
},
server: {
runtime: 'nodejs22.x',
memory: '2048 MB',
},
imageOptimization: {
memory: '2048 MB',
staticEtag: true,
},
});
},
});