Skip to content

Commit de784af

Browse files
committed
Revert "Address comments"
This reverts commit 57d204c.
1 parent ecf6577 commit de784af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/server/routes/bdd/bdd-nock-router.dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { AuthMode } from "@app/services/auth/auth-type";
1010
// When running in production, we don't want to even import nock, because it's not needed and it increases memory usage a lots.
1111
// It once caused an outage in the production environment.
1212
// 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 (getConfig().NODE_ENV === "production") {
13+
if (process.env.NODE_ENV === "production") {
1414
throw new Error("BDD Nock API can only be enabled in development or test mode");
1515
}
1616

0 commit comments

Comments
 (0)