Skip to content

Commit 1a53027

Browse files
committed
fix: apigw custom domain update bug
1 parent 6cd8990 commit 1a53027

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
@@ -124,8 +124,10 @@ class ServerlessComponent extends Component {
124124
return {}
125125
}
126126
const apigw = new MultiApigw(credentials, regionList)
127+
const oldState = this.state[regionList[0]] || {}
127128
inputs.oldState = {
128-
apiList: (this.state[regionList[0]] && this.state[regionList[0]].apiList) || []
129+
apiList: oldState.apiList || [],
130+
customDomains: oldState.customDomains || []
129131
}
130132
const apigwOutputs = await apigw.deploy(inputs)
131133
const outputs = {}

0 commit comments

Comments
 (0)