@@ -594,7 +594,7 @@ class Apigw {
594
594
}
595
595
596
596
async deploy ( inputs ) {
597
- const { environment, oldState = { } } = inputs ;
597
+ const { environment = 'release' , oldState = { } } = inputs ;
598
598
inputs . protocols = this . getProtocolString ( inputs . protocols ) ;
599
599
600
600
const { serviceId, serviceName, subDomain, serviceCreated } = await this . createOrUpdateService (
@@ -680,11 +680,11 @@ class Apigw {
680
680
) ;
681
681
}
682
682
683
- console . log ( `Releaseing service with id ${ serviceId } , environment: ${ inputs . environment } ` ) ;
683
+ console . log ( `Releaseing service with id ${ serviceId } , environment: ${ environment } ` ) ;
684
684
await this . request ( {
685
685
Action : 'ReleaseService' ,
686
686
serviceId : serviceId ,
687
- environmentName : inputs . environment ,
687
+ environmentName : environment ,
688
688
releaseDesc : 'Serverless api-gateway component deploy' ,
689
689
} ) ;
690
690
console . log ( `Deploy service with id ${ serviceId } successfully.` ) ;
@@ -695,7 +695,7 @@ class Apigw {
695
695
serviceName,
696
696
subDomain,
697
697
protocols : inputs . protocols ,
698
- environment : inputs . environment ,
698
+ environment : environment ,
699
699
apiList,
700
700
} ;
701
701
0 commit comments