mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 06:28:11 +00:00
Revert "Address comments"
This reverts commit 57d204c3cd80f005cc0c673efbaee438e2cab6e8.
This commit is contained in:
@@ -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.
|
// 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.
|
// 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).
|
// 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");
|
throw new Error("BDD Nock API can only be enabled in development or test mode");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user