-
Notifications
You must be signed in to change notification settings - Fork 0
/
sst.config.ts
28 lines (27 loc) · 924 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
/// <reference path="./.sst/platform/config.d.ts" />
export default $config({
app(input) {
return {
name: "ev-tracker",
removal: input?.stage === "production" ? "retain" : "remove",
home: "aws",
providers: {
aws: {
profile: input?.stage === "production" ? "prod" : "dev",
},
},
};
},
async run() {
new sst.aws.SvelteKit("PokemonEVTracker", {
environment: {
PRIVATE_BACKEND_URL: process.env.PRIVATE_BACKEND_URL || "WHERE_IS_ENV_VAR",
PRIVATE_API_KEY: process.env.PRIVATE_API_KEY || "API_KEY_999",
AUTH_SECRET: process.env.AUTH_SECRET || "AUTH_SECRET123",
AUTH_GITHUB_ID: process.env.AUTH_GITHUB_ID || "AUTH_GITHUB_ID123",
AUTH_GITHUB_SECRET: process.env.AUTH_GITHUB_SECRET || "AUTH_GITHUB_SECRET123",
AUTH_TRUST_HOST: process.env.AUTH_TRUST_HOST || "AUTH_TRUST_HOST123",
}
});
},
});