From 6c55b98eeed65c50bb78172f30cc2528ffba76b4 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 31 May 2025 18:18:37 +0000 Subject: [PATCH] chore: use prod error handlers in dev --- backend/src/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 4668d59c..fbebfb29 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -172,10 +172,8 @@ function errorHandler(err) { // tslint:enable:no-console } -if (process.env.NODE_ENV === "production") { - process.on("uncaughtException", errorHandler); - process.on("unhandledRejection", errorHandler); -} +process.on("uncaughtException", errorHandler); +process.on("unhandledRejection", errorHandler); // Verify required Node.js version const REQUIRED_NODE_VERSION = "16.9.0";