-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsst.config.ts
41 lines (39 loc) · 1.03 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
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="./.sst/platform/config.d.ts" />
import { esbuildDecorators } from '@anatine/esbuild-decorators';
export default $config({
app(input) {
return {
name: 'nest-ion',
removal: input?.stage === 'production' ? 'retain' : 'remove',
home: 'aws',
};
},
async run() {
const api = new sst.aws.ApiGatewayV2('MyApi');
api.route('ANY /{proxy+}', {
handler: 'src/index.handler',
nodejs: {
install: [
'@nestjs/microservices',
'pg-native',
'nats',
'mqtt',
'kafkajs',
'grpc',
'apollo-server-express',
'apollo-server-fastify',
'class-transformer/storage',
'cache-manager',
'@nestjs/websockets/socket-module',
'class-transformer',
'class-validator',
],
// plugins: "plugins.mjs",
esbuild: {
plugins: [esbuildDecorators()],
},
},
});
},
});