diff --git a/src/serverless.js b/src/serverless.js index 889c780..fb4de65 100644 --- a/src/serverless.js +++ b/src/serverless.js @@ -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 = {}