forked from OpenListTeam/OpenList-Worker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
34 lines (30 loc) · 757 Bytes
/
Copy pathserverless.yml
File metadata and controls
34 lines (30 loc) · 757 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
service: openlist
frameworkVersion: "4"
provider:
name: aws
runtime: nodejs20.x
region: us-east-1
stage: dev
memorySize: 1024
timeout: 29 # API Gateway has a max 30s timeout
environment:
ADMIN_USERNAME: ${env:ADMIN_USERNAME, 'admin'}
# FIX(F-11): no 'admin' fallback — leave empty so the app generates a
# random initial password instead of a world-known one.
ADMIN_PASS: ${env:ADMIN_PASS, ''}
AWS_NODEJS_CONNECTION_REUSE_ENABLED: "1" # Performance optimization for keep-alive
build:
esbuild:
bundle: true
minify: true
sourcemap: true
target: node20
platform: node
format: esm
exclude:
- "@aws-sdk/*"
functions:
api:
handler: handler.handler
events:
- httpApi: "*"