-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless-local.yml
More file actions
56 lines (50 loc) · 1000 Bytes
/
serverless-local.yml
File metadata and controls
56 lines (50 loc) · 1000 Bytes
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
47
48
49
50
51
52
53
54
55
56
app: backend-api
service: backend-api
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs18.x
stage: dev
functions:
pools:
handler: src/handler.pools
events:
- http:
path: pools
method: get
cors: true
timeout: 10 # in seconds
getAddress:
handler: src/handler.getPoolByAddress
events:
- http:
path: pools/{poolAddress}
method: GET
cors: true
timeout: 10 # in seconds
search:
handler: src/handler.search
events:
- http:
path: search
method: POST
cors: true
health:
handler: src/handler.health
events:
- http:
path: health
method: get
cors: true
sync:
handler: src/handler.sync
events:
- schedule: rate(30 minutes)
timeout: 10 # in seconds
plugins:
- serverless-esbuild
- serverless-offline
- serverless-dotenv-plugin
custom:
serverless-offline:
httpPort: 4000