diff --git a/src/modules/scf/utils.ts b/src/modules/scf/utils.ts index e4f79d2..be44a60 100644 --- a/src/modules/scf/utils.ts +++ b/src/modules/scf/utils.ts @@ -55,7 +55,7 @@ export const formatInputs = (inputs: ScfCreateFunctionInputs) => { if (imageConfig?.containerImageAccelerate !== undefined) { functionInputs.Code!.ImageConfig!.ContainerImageAccelerate = - imageConfig.containerImageAccelerate; + imageConfig?.containerImageAccelerate; } } else { // 基于 COS 代码部署