Skip to content

Commit

Permalink
Merge pull request #5 from devsapp/support/custom-config
Browse files Browse the repository at this point in the history
feat: support custom config
  • Loading branch information
wss-git authored Jan 6, 2022
2 parents 4bf2038 + a230947 commit bc2cf22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/deploy/plan-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ export default class PlanFunction extends PlanDeployBase {
delete remote.customContainerConfig?.accelerationInfo;
delete remote.customContainerConfig?.instanceID;
}
if (remote.runtime === 'custom') {
if (_.has(remote, 'customRuntimeConfig.args') && _.isEmpty(remote?.customRuntimeConfig?.args)) {
delete remote.customRuntimeConfig.args;
}
}

const remoteAsyncConfiguration = await this.getFunctionAsyncConfig();
if (!_.isNil(remoteAsyncConfiguration)) {
Expand Down

0 comments on commit bc2cf22

Please sign in to comment.