-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsst.config.ts
37 lines (33 loc) · 961 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
35
36
37
import { SSTConfig } from "sst";
import { NextjsSite, Config, Bucket } from "sst/constructs";
export default {
config(_input) {
return {
name: "concisify",
region: "us-east-1",
profile: "concisify"
};
},
stacks(app) {
app.stack(function Site({ stack }) {
// secrets:
const LD_SDK_KEY = new Config.Secret(stack, "LD_SDK_KEY");
const OPENAI_API_KEY = new Config.Secret(stack, "OPENAI_API_KEY");
// storage buckets:
const uploadedVideosBucket = new Bucket(stack, "UploadedVideos", {
blockPublicACLs: false
});
const site = new NextjsSite(stack, "site", {
bind: [LD_SDK_KEY, OPENAI_API_KEY, uploadedVideosBucket],
dev: {
url: "http://localhost:3000"
},
permissions: ["bedrock:InvokeModel"],
memorySize: "1 GB",
});
stack.addOutputs({
SiteUrl: site.url,
});
});
},
} satisfies SSTConfig;