-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
serverless.yml
34 lines (30 loc) · 798 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
service: serverless-side-rendering-vue-nuxt
provider:
name: aws
runtime: nodejs12.x
stage: ${self:custom.secrets.NODE_ENV}
region: us-east-1
environment:
NODE_ENV: ${self:custom.secrets.NODE_ENV}
functions:
nuxt:
handler: index.nuxt
events:
- http: ANY /
- http: ANY /{proxy+}
plugins:
- serverless-apigw-binary
# - serverless-domain-manager
- serverless-offline
custom:
secrets: ${file(secrets.json)}
apigwBinary:
types:
- '*/*'
# customDomain:
# domainName: ${self:custom.secrets.DOMAIN}
# basePath: ''
# stage: ${self:custom.secrets.NODE_ENV}
# createRoute53Record: true
## endpointType: 'regional'
## if the ACM certificate is created in a region except for `'us-east-1'` you need `endpointType: 'regional'`