mirror of
https://github.com/detleph/server.git
synced 2026-09-04 00:26:03 +02:00
HOTFIX: next() only called when in development mode
+ Push fix, now the server should be working again
This commit is contained in:
@@ -5,6 +5,7 @@ export default function debugLogger(req: Request, res: Response, next: NextFunct
|
||||
// Only log when in development mode
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
logger.debug(`Request to: ${req.url}`);
|
||||
next();
|
||||
}
|
||||
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user