Skip to content

Commit

Permalink
fix: apigw custom domain update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun committed May 13, 2020
1 parent 6913650 commit 9f856b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/serverless.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ class ServerlessComopnent extends Component {
return {}
}
const apigw = new MultiApigw(credentials, regionList)
const oldState = this.state[regionList[0]] || {}
inputs.oldState = {
apiList: (this.state[regionList[0]] && this.state[regionList[0]].apiList) || []
apiList: oldState.apiList || [],
customDomains: oldState.customDomains || []
}
const apigwOutputs = await apigw.deploy(inputs)
const outputs = {}
Expand Down

0 comments on commit 9f856b5

Please sign in to comment.