-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathserverless.yml
40 lines (33 loc) · 998 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
service: web
provider:
name: aws
runtime: nodejs20.x
plugins:
- serverless-domain-manager # Load the community plugin for custom domains installed with npm
- ./scripts # Load our custom scripts plugin
build:
esbuild: true
package:
patterns:
- "!app/**"
- app/build/**
custom:
customDomain:
domainName: ${param:customDomainName}
certificateArn: ${param:customDomainCertificateARN}
stage: ""
endpointType: "regional"
apiType: http
autoDomain: true
enabled: ${param:customDomainNameEnabled}
# This property is expected by our custom scripts plugin.
scripts:
hooks:
# This hook builds the React App. It sets the environment variables for
# the Chat and Auth APIs and then runs the build script.
"before:esbuild-package:package": cd website/app && VITE_CHAT_API_URL='${param:chatApiUrl}' VITE_AUTH_API_URL='${param:authApiUrl}' npm run build
functions:
app:
handler: index.handler
events:
- httpApi: "*"