-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
48 lines (43 loc) · 1.05 KB
/
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
41
42
43
44
45
46
47
48
service: nuxt-portfolio
provider:
name: aws
runtime: nodejs12.x
stage: ${opt:stage, 'dev'}
region: us-west-2
apiGateway:
binaryMediaTypes:
- '*/*'
environment:
DEBUG: PORTFOLIO*
NODE_ENV: ${self:provider.stage}
NUXT_TELEMETRY_DISABLED: 1
# DOMAIN_NAME: ${self:custom.domainName.${self:provider.stage}}
# iamRoleStatements:
# - Effect: Allow
# Action:
# - dynamodb:GetItem
# - dynamodb:Scan
# Resource: "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/AboutCardTable"
# - Effect: Allow
# Action:
# - dynamodb:GetItem
# - dynamodb:Scan
# Resource: "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/WorkCardTable"
functions:
nuxt:
timeout: 30
handler: app.handler
events:
- http: ANY /
- http: ANY /{proxy+}
package:
include:
- .nuxt/**
- node_modules/tslib/**
custom:
domainName:
dev: beta.jacobanavisca.com
production: jacobanavisca.com
plugins:
# - serverless-dotenv-plugin
- serverless-offline