From e9fd60e61991b8513cb491f6b5fb642088073147 Mon Sep 17 00:00:00 2001 From: Anthony Correa Date: Fri, 24 May 2024 13:40:42 -0500 Subject: [PATCH] 404 fix --- src/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index 46511c1..fa83504 100644 --- a/src/app.js +++ b/src/app.js @@ -63,6 +63,7 @@ app.locals.pluralize = require("pluralize"); if (process.env.NODE_ENV === "development") { var connectLiveReload = require("connect-livereload"); + app.use("/scss", express.static(path.join(__dirname, "scss"))); app.use(connectLiveReload()); } @@ -172,7 +173,8 @@ app.use(function (err, req, res, next) { // catch 404 and forward to error handler app.use(function (req, res, next) { - next(createError(404)); + // next(createError(404)); + res.status(404).send('not found') }); module.exports = {app}; \ No newline at end of file