forked from piyushgarg-dev/review-app-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
46 lines (41 loc) · 818 Bytes
/
serverless.yml
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
42
43
44
45
46
service: review-app
plugins:
- serverless-dotenv-plugin
- serverless-esbuild
- serverless-prune-plugin
- serverless-offline
package:
patterns:
- 'node_modules/.prisma/**'
custom:
esbuild:
bundle: true
minify: true
prune:
automatic: true
number: 2
serverless-offline:
httpPort: 8000
provider:
name: aws
stage: ${opt:stage}
runtime: nodejs18.x
timeout: 25
lambdaHashingVersion: 20201221
region: ap-south-1
profile: default
environment:
STAGE: ${self:provider.stage}
NODE_ENV: ${self:provider.stage}
functions:
graphql:
handler: functions/graphql/server.graphqlHandler
events:
- http:
path: /graphql
method: POST
cors: true
- http:
path: /graphql
method: GET
cors: true