We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4592db commit 57d204cCopy full SHA for 57d204c
backend/src/server/routes/bdd/bdd-nock-router.dev.ts
@@ -10,7 +10,7 @@ import { AuthMode } from "@app/services/auth/auth-type";
10
// When running in production, we don't want to even import nock, because it's not needed and it increases memory usage a lots.
11
// It once caused an outage in the production environment.
12
// 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).
13
-if (process.env.NODE_ENV === "production") {
+if (getConfig().NODE_ENV === "production") {
14
throw new Error("BDD Nock API can only be enabled in development or test mode");
15
}
16
0 commit comments