Skip to content

Commit 23b80d9

Browse files
authored
Merge pull request #2783 from mrmartineau/fix/serverless-var
Fixes serverlessFilePath is not defined (2.0.0-beta.2) #2782
2 parents bde84b4 + 9f13b8e commit 23b80d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugins/ServerlessBundlerPlugin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class BundlerHelper {
168168
);
169169

170170
return async function EleventyServerlessMiddleware(req, res, next) {
171-
deleteRequireCache(serverlessFilePath);
171+
deleteRequireCache(serverlessFilepath);
172172

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

0 commit comments

Comments
 (0)