Skip to content

Commit

Permalink
custom domain qualifier need to string
Browse files Browse the repository at this point in the history
  • Loading branch information
wss-git committed Nov 15, 2022
1 parent 19f8709 commit 01bf4c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/entry-public-method/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ export default class EntryPublicMethod {
tipLayerArn(inputs.props?.region, inputs.props?.function?.layers, inputs.project?.access);
}

// Fix: https://github.com/devsapp/fc/issues/876
if (!_.isEmpty(inputs.props?.customDomains)) {
inputs.props.customDomains = _.map(inputs.props.customDomains, (item) => ({
...(item || {}),
routeConfigs: _.map(item.routeConfigs || [], i => ({
...(i || {}),
qualifier: _.isNumber(i?.qualifier) ? i.qualifier.toString() : i?.qualifier,
}))
}))
}

await InfraAsTemplate.modifyInputs(inputs); // 多环境处理

try {
Expand Down

0 comments on commit 01bf4c1

Please sign in to comment.