-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathserverless.yml
More file actions
62 lines (55 loc) · 1.46 KB
/
Copy pathserverless.yml
File metadata and controls
62 lines (55 loc) · 1.46 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
55
56
57
58
59
60
61
62
service: nodejs-backend-api
useDotenv: true
stages:
default:
params:
region: ap-south-1
provider:
name: aws
runtime: nodejs22.x
region: ${param:region}
memorySize: 512
timeout: 29
deploymentBucket:
name: nodejs-backend-api-deployments-920191147366
httpApi:
cors: true
environment:
NODE_ENV: ${env:NODE_ENV, 'production'}
DATABASE_URL: ${env:DATABASE_URL}
JWT_SECRET_KEY: ${env:JWT_SECRET_KEY}
CORS_URL: ${env:CORS_URL, '*'}
LOG_DIR: /tmp/logs
THUNDERMAIL_API_KEY: ${env:THUNDERMAIL_API_KEY}
THUNDERMAIL_API_URL: ${env:THUNDERMAIL_API_URL}
THUNDERMAIL_FROM: ${env:THUNDERMAIL_FROM, 'onboarding@thundermail.io'}
AWS_S3_LOG_BUCKET_NAME: ${env:AWS_S3_LOG_BUCKET_NAME, ''}
GOOGLE_CLIENT_ID: ${env:GOOGLE_CLIENT_ID, ''}
GOOGLE_CLIENT_SECRET: ${env:GOOGLE_CLIENT_SECRET, ''}
GOOGLE_REDIRECT_URI: ${env:GOOGLE_REDIRECT_URI, ''}
GOOGLE_OAUTH_SCOPE: ${env:GOOGLE_OAUTH_SCOPE, 'openid email profile'}
APP_DEEP_LINK_SCHEME: ${env:APP_DEEP_LINK_SCHEME, 'taskew://auth/google-callback'}
build:
esbuild:
bundle: true
minify: false
sourcemap: true
target: node22
exclude:
- '@aws-sdk/*'
functions:
api:
handler: src/lambda.handler
events:
- httpApi:
path: /
method: ANY
- httpApi:
path: /{proxy+}
method: ANY
plugins:
- serverless-offline
custom:
serverless-offline:
httpPort: 3001
noPrependStageInUrl: true