Skip to content

Commit 3becd8f

Browse files
authored
fix(scf): web function handler config (#234)
1 parent 16fa58a commit 3becd8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/modules/scf/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ 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,
2425
};
2526

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

5253
// 只有 Event 函数才支持
5354
if (inputs.type !== 'web') {
54-
functionInputs.Handler = inputs.handler;
55-
5655
if (inputs.asyncRunEnable !== undefined) {
5756
functionInputs.AsyncRunEnable = inputs.asyncRunEnable === true ? 'TRUE' : 'FALSE';
5857
}

0 commit comments

Comments
 (0)