-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless-prod.yml
More file actions
54 lines (48 loc) · 1.17 KB
/
serverless-prod.yml
File metadata and controls
54 lines (48 loc) · 1.17 KB
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
app: backend-api-prod
service: backend-api
frameworkVersion: '3'
provider:
name: aws
runtime: nodejs18.x
stage: prod
environment:
MONGODB_URI: ${env:MONGODB_URI}
NITRO_ENDPOINT: ${env:NITRO_ENDPOINT}
MIRROR_ENDPOINT: ${env:MIRROR_ENDPOINT}
TOKENS_DATA_ENDPOINT: ${env:TOKENS_DATA_ENDPOINT}
TOKENS_PRICE_ENDPOINT: ${env:TOKENS_PRICE_ENDPOINT}
GRAPHQL_TOKEN_ENDPOINT: ${env:GRAPHQL_TOKEN_ENDPOINT}
RPC_ENDPOINT: ${env:RPC_ENDPOINT}
DISCORD_WEBHOOK: ${env:DISCORD_WEBHOOK}
ENVIRONMENT: ${env:ENVIRONMENT}
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
sync:
handler: src/handler.sync
events:
- schedule: rate(30 minutes)
timeout: 120 # in seconds
plugins:
- serverless-esbuild