File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,9 @@ class Apigw {
327
327
// bind custom domains
328
328
async bindCustomDomain ( { serviceId, subDomain, inputs } ) {
329
329
const { customDomains, oldState = { } } = inputs
330
+ if ( ! customDomains ) {
331
+ return [ ]
332
+ }
330
333
// 1. unbind all custom domain
331
334
const customDomainDetail = await this . request ( {
332
335
Action : 'DescribeServiceSubDomains' ,
@@ -510,13 +513,14 @@ class Apigw {
510
513
)
511
514
}
512
515
513
- console . log ( `Deploying service with id ${ serviceId } . ` )
516
+ console . log ( `Releaseing service with id ${ serviceId } , environment: ${ inputs . environment } ` )
514
517
await this . request ( {
515
518
Action : 'ReleaseService' ,
516
519
serviceId : serviceId ,
517
520
environmentName : inputs . environment ,
518
521
releaseDesc : 'Serverless api-gateway component deploy'
519
522
} )
523
+ console . log ( `Deploy service with id ${ serviceId } successfully.` )
520
524
521
525
const outputs = {
522
526
created : serviceCreated ,
You can’t perform that action at this time.
0 commit comments