diff --git a/packages-serverless/serverless-app/src/start.ts b/packages-serverless/serverless-app/src/start.ts index 28936ed05b5f..f13ca0fcaf3b 100644 --- a/packages-serverless/serverless-app/src/start.ts +++ b/packages-serverless/serverless-app/src/start.ts @@ -49,8 +49,8 @@ export const start2 = async options => { return analysisDecorator(appDir); }, invoke: async (handlerName: string, trigger: any[]) => { - return runtime.asyncEvent(async ctx => { - return starterInstance.handleInvokeWrapper(handlerName)(ctx); + return runtime.asyncEvent(async (...args) => { + return starterInstance.handleInvokeWrapper(handlerName)(...args); })(...trigger); }, };