From af40e15cb737a0823d7ae60a963d04a4b9fe4fb1 Mon Sep 17 00:00:00 2001 From: Fang-Pen Lin Date: Mon, 17 Nov 2025 17:33:33 -0800 Subject: [PATCH] Revert "Address comments" This reverts commit 57d204c3cd80f005cc0c673efbaee438e2cab6e8. --- backend/src/server/routes/bdd/bdd-nock-router.dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/server/routes/bdd/bdd-nock-router.dev.ts b/backend/src/server/routes/bdd/bdd-nock-router.dev.ts index a400873c7..c5f6001f5 100644 --- a/backend/src/server/routes/bdd/bdd-nock-router.dev.ts +++ b/backend/src/server/routes/bdd/bdd-nock-router.dev.ts @@ -10,7 +10,7 @@ import { AuthMode } from "@app/services/auth/auth-type"; // When running in production, we don't want to even import nock, because it's not needed and it increases memory usage a lots. // It once caused an outage in the production environment. // This is why we would rather to crash the app if it's not in development mode (in that case, Kubernetes should stop it from rolling out). -if (getConfig().NODE_ENV === "production") { +if (process.env.NODE_ENV === "production") { throw new Error("BDD Nock API can only be enabled in development or test mode"); }