-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsst.config.ts
More file actions
39 lines (37 loc) · 1.04 KB
/
sst.config.ts
File metadata and controls
39 lines (37 loc) · 1.04 KB
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
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {
return {
name: "agentbase",
removal: input?.stage === "prd" ? "retain" : "remove",
protect: input?.stage === "prd",
home: "aws",
providers: {
aws: {
profile: input?.stage === "prd" ? "agentbase-prd" : "staging",
region: "us-east-1",
},
"aws-native": {
region: "us-east-1",
},
},
};
},
async run() {
const { table } = await import("./infra/database");
const { vectorConfig } = await import("./infra/vectors");
const { api } = await import("./infra/api");
const { cdn } = await import("./infra/cdn");
const { site } = await import("./infra/website");
const { mcpFn, mcpCdn } = await import("./infra/mcp");
await import("./infra/dashboard");
return {
apiUrl: api.url,
cdnUrl: cdn.domainName,
siteUrl: site.url,
mcpUrl: mcpFn.url,
mcpCdnUrl: mcpCdn.domainName,
tableName: table.name,
};
},
});