-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsst.config.ts
34 lines (31 loc) · 887 Bytes
/
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
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {
return {
name: "ShopifyPayment",
removal: input?.stage === "production" ? "retain" : "remove",
home: "aws",
};
},
async run() {
// this should only be deployed once per aws account
if ($app.stage === "production-static") {
const { githubDeployRole } = await import(
"./infrastructure/static-stack"
);
return {
githubDeployRole: githubDeployRole.arn,
};
}
//Set default props for all the functions
$transform(sst.aws.Function, (args) => {
args.runtime = "nodejs20.x";
args.architecture = "arm64";
});
const infra = await import("./infrastructure/application-stack");
return {
appUrl: infra.remix.url,
appUrlParameterName: infra.appUrlParameter.name,
};
},
});