Skip to content

Commit 8d6de6f

Browse files
committed
fix: apigw custom domain update bug
1 parent d6d4c0f commit 8d6de6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/serverless.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ class ServerlessComponent extends Component {
105105
return {}
106106
}
107107
const apigw = new MultiApigw(credentials, regionList)
108+
const oldState = this.state[regionList[0]] || {}
108109
inputs.oldState = {
109-
apiList: (this.state[regionList[0]] && this.state[regionList[0]].apiList) || []
110+
apiList: oldState.apiList || [],
111+
customDomains: oldState.customDomains || []
110112
}
111113
const apigwOutputs = await apigw.deploy(inputs)
112114
const outputs = {}

0 commit comments

Comments
 (0)