-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
43 lines (43 loc) · 962 Bytes
/
serverless.yml
File metadata and controls
43 lines (43 loc) · 962 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
35
36
37
38
39
40
41
42
43
org: toycrane
service: codepot-backend
useDotenv: true
provider:
name: aws
runtime: nodejs12.x
region: ap-northeast-2
functions:
graphql:
name: ${sls:stage}-graphql-server
handler: src/index.graphqlHandler
events:
- http:
path: graphql
method: post
cors: true
- http:
path: graphql
method: get
cors: true
plugins:
- serverless-webpack
- serverless-offline
- serverless-domain-manager
- serverless-dotenv-plugin
custom:
# stage에 따른 domain 분리
stage: ${sls:stage}
domains:
prod: api.codepot.co
staging: staging-api.codepot.co
dev: dev-api.codepot.co
webpack:
webpackConfig: "webpack.config.js"
includeModules: true
serverless-offline:
httpPort: 4000
noPrependStageInUrl: true
customDomain:
basePath: ""
domainName: ${self:custom.domains.${sls:stage}}
stage: "${sls:stage}"
createRoute53Record: true