Skip to content

Commit

Permalink
Fixes serverlessFilePath is not defined (2.0.0-beta.2) #2782
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmartineau committed Jan 30, 2023
1 parent bde84b4 commit 9f13b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugins/ServerlessBundlerPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class BundlerHelper {
);

return async function EleventyServerlessMiddleware(req, res, next) {
deleteRequireCache(serverlessFilePath);
deleteRequireCache(serverlessFilepath);

let serverlessFunction = EleventyRequire(serverlessFilepath);
let url = new URL(req.url, "http://localhost/"); // any domain will do here, we just want the searchParams
Expand Down

0 comments on commit 9f13b8e

Please sign in to comment.