We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cae34c7 + 099d187 commit fdd54a4Copy full SHA for fdd54a4
src/util/cloud-function/cloud-functions.ts
@@ -71,9 +71,10 @@ export class CloudFunctions {
71
): Promise<void> {
72
await Promise.all(
73
cloudFunctionResources.map(async (cloudFunctionResource) => {
74
- const handler = await import(
75
- `${cloudFunctionResource.cloudFunctionFilePath}`
76
- );
+ // Import the cloud function dynamically using the import() syntax
+ const { default: handler } = await import(
+ `${cloudFunctionResource.cloudFunctionFilePath}`
77
+ );
78
app.use(express.json());
79
app.use(express.urlencoded({ extended: true }));
80
0 commit comments