This repository was archived by the owner on Nov 29, 2023. It is now read-only.
File tree 1 file changed +25
-15
lines changed
1 file changed +25
-15
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,14 @@ provider:
9
9
name : aws
10
10
runtime : nodejs12.x
11
11
profile : serverless
12
- stage : test
12
+ stage : dev
13
13
region : us-east-1
14
14
15
15
custom :
16
16
stage : ${opt:stage, self:provider.stage}
17
17
domainName : ${self:custom.domainNameStage.${self:custom.stage}}
18
18
domainNameStage :
19
+ dev : dev-api.${self:custom.baseDomainName}
19
20
test : test-api.${self:custom.baseDomainName}
20
21
prod : api.${self:custom.baseDomainName}
21
22
baseDomainName : codesaplings.com
@@ -25,6 +26,15 @@ custom:
25
26
basePath : todo
26
27
stage : ${self:custom.stage}
27
28
createRoute53Record : true
29
+ environmentValues : ${self:custom.environmentValuesStage.${self:custom.stage}}
30
+ environmentValuesStage :
31
+ dev :
32
+ NODE_ENV : development
33
+ test :
34
+ NODE_ENV : test
35
+ prod :
36
+ NODE_ENV : production
37
+
28
38
documentation :
29
39
info :
30
40
title : node-aws-lambda-graphql-example-todo
@@ -35,18 +45,18 @@ functions:
35
45
graphql :
36
46
handler : dist/events/apollo.handler
37
47
events :
38
- - http :
39
- path : graphql
40
- method : get
41
- cors : true
42
- documentation :
43
- summary : GraphQL Server
44
- description : GraphQL Server
48
+ - http :
49
+ path : graphql
50
+ method : get
51
+ cors : true
52
+ documentation :
53
+ summary : GraphQL Server
54
+ description : GraphQL Server
45
55
46
- - http :
47
- path : graphql
48
- method : post
49
- cors : true
50
- documentation :
51
- summary : GraphQL Server
52
- description : GraphQL Server
56
+ - http :
57
+ path : graphql
58
+ method : post
59
+ cors : true
60
+ documentation :
61
+ summary : GraphQL Server
62
+ description : GraphQL Server
You can’t perform that action at this time.
0 commit comments