diff --git a/src/lib/deploy/plan-function.ts b/src/lib/deploy/plan-function.ts index 990b30e..f3cd9d4 100644 --- a/src/lib/deploy/plan-function.ts +++ b/src/lib/deploy/plan-function.ts @@ -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)) {