diff --git a/packages/cli/lib/build.js b/packages/cli/lib/build.js index e15e67c..fd894c8 100644 --- a/packages/cli/lib/build.js +++ b/packages/cli/lib/build.js @@ -149,7 +149,7 @@ module.exports = function (src, opts) { log.warn(msg); } - let fn, onNoMatch = (req, res) => fn(Object.assign(req, { path:'/' }), res, r => (r.statusCode=404,r.end())); + let fn, onNoMatch = (req, res) => fn(Object.assign(req, { path:'/' }), res, () => (res.statusCode=404,res.end())); let server = createServer(fn=sirv(dest, { onNoMatch })).listen(); // Disable sandboxing (on command) for dead-simple CI/CD/Docker integrations