File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ class TencentExpress extends Component {
24
24
inputs . region = ensureString ( inputs . region , { default : 'ap-guangzhou' } )
25
25
inputs . include = ensureIterable ( inputs . include , { default : [ ] , ensureItem : ensureString } )
26
26
inputs . exclude = ensureIterable ( inputs . exclude , { default : [ ] , ensureItem : ensureString } )
27
+ inputs . apigatewayConf = ensureIterable ( inputs . apigatewayConf , {
28
+ default : { } ,
29
+ ensureItem : ensurePlainObject
30
+ } )
27
31
28
32
const appFile = path . resolve ( inputs . codeUri , 'app.js' )
29
33
if ( ! ( await utils . fileExists ( appFile ) ) ) {
@@ -58,6 +62,7 @@ class TencentExpress extends Component {
58
62
functionName : inputs . name
59
63
}
60
64
65
+ // only user set apigatewayConf.isDisabled to `true`, do not create api
61
66
if ( ! inputs . apigatewayConf . isDisabled ) {
62
67
const tencentApiGateway = await this . load ( '@serverless/tencent-apigateway' )
63
68
const apigwParam = {
You can’t perform that action at this time.
0 commit comments