Skip to content

Commit

Permalink
rename handler into userModule
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed May 25, 2023
1 parent db50f0c commit e909dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/node/src/edge-functions/edge-handler.mts
Expand Up @@ -89,7 +89,7 @@ async function compileUserCode(
// user code
${compiledFile.text};
const handler = module.exports;
const userModule = module.exports;
// request metadata
const isMiddleware = ${isMiddleware};
Expand All @@ -99,7 +99,7 @@ async function compileUserCode(
${edgeHandlerTemplate};
const dependencies = { Request, Response };
const options = { isMiddleware, entrypointLabel };
registerFetchListener(handler, options, dependencies);
registerFetchListener(userModule, options, dependencies);
`;

return {
Expand Down

0 comments on commit e909dbd

Please sign in to comment.