Skip to content

Commit

Permalink
Add res to lazyReloadMiddleware (#2266)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhw-1 committed Apr 6, 2023
1 parent e41122d commit bee3473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/util/serveUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const removeHandler = (site, onePagePath) => (filePath) => {
});
};

const lazyReloadMiddleware = (site, rootFolder, config) => (req, next) => {
const lazyReloadMiddleware = (site, rootFolder, config) => (req, res, next) => {
const urlExtension = path.posix.extname(req.url);

const hasEndingSlash = req.url.endsWith('/');
Expand Down

0 comments on commit bee3473

Please sign in to comment.