File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class Apigw {
41
41
const {
42
42
serviceId,
43
43
protocols,
44
+ netTypes = [ 'OUTER' ] ,
44
45
serviceName = 'Serverless_Framework' ,
45
46
serviceDesc = 'Created By Serverless Framework' ,
46
47
} = serviceConf ;
@@ -67,6 +68,7 @@ class Apigw {
67
68
serviceDesc : serviceDesc || detail . serviceDesc ,
68
69
serviceName : serviceName || detail . serviceName ,
69
70
protocol : protocols ,
71
+ netTypes : netTypes ,
70
72
} ) ;
71
73
}
72
74
}
@@ -77,14 +79,18 @@ class Apigw {
77
79
serviceName : serviceName || 'Serverless_Framework' ,
78
80
serviceDesc : serviceDesc || 'Created By Serverless Framework' ,
79
81
protocol : protocols ,
82
+ netTypes : netTypes ,
80
83
} ) ;
81
84
serviceCreated = true ;
82
85
}
83
86
84
87
return {
85
88
serviceName,
86
89
serviceId : detail . ServiceId ,
87
- subDomain : detail . OuterSubDomain || detail . InnerSubDomain ,
90
+ subDomain :
91
+ detail . OuterSubDomain && detail . InnerSubDomain
92
+ ? [ detail . OuterSubDomain , detail . InnerSubDomain ]
93
+ : detail . OuterSubDomain || detail . InnerSubDomain ,
88
94
serviceCreated,
89
95
} ;
90
96
}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ async function runTest() {
12
12
protocols : [ 'http' , 'https' ] ,
13
13
serviceName : 'serverless' ,
14
14
environment : 'release' ,
15
+ netTypes : [ 'OUTER' ] ,
15
16
customDomains : [
16
17
{
17
18
domain : 'test.yugasun.com' ,
You can’t perform that action at this time.
0 commit comments