diff --git a/src/v1/cloud-functions.ts b/src/v1/cloud-functions.ts index 75921ab6f..d66539fb7 100644 --- a/src/v1/cloud-functions.ts +++ b/src/v1/cloud-functions.ts @@ -367,7 +367,7 @@ export function makeCloudFunction({ service, triggerResource, }: MakeCloudFunctionArgs): CloudFunction { - handler = withInit(handler); + handler = withInit(handler ?? contextOnlyHandler); const cloudFunction: any = (data: any, context: any) => { if (legacyEventType && context.eventType === legacyEventType) { /*