Skip to content

Commit a3908d0

Browse files
authored
fix(scf): update web function handler (#235)
* fix(scf): update web function handler * chore: remove unused defininition
1 parent 76af890 commit a3908d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/scf/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export const formatInputs = (inputs: ScfCreateFunctionInputs) => {
2121
},
2222
L5Enable: inputs.l5Enable === true ? 'TRUE' : 'FALSE',
2323
InstallDependency: inputs.installDependency === true ? 'TRUE' : 'FALSE',
24-
Handler: inputs.type === 'web' ? 'scf_bootstrap' : inputs.handler,
2524
};
2625

2726
// 镜像方式部署
@@ -52,6 +51,8 @@ export const formatInputs = (inputs: ScfCreateFunctionInputs) => {
5251

5352
// 只有 Event 函数才支持
5453
if (inputs.type !== 'web') {
54+
functionInputs.Handler = inputs.handler;
55+
5556
if (inputs.asyncRunEnable !== undefined) {
5657
functionInputs.AsyncRunEnable = inputs.asyncRunEnable === true ? 'TRUE' : 'FALSE';
5758
}

0 commit comments

Comments
 (0)