Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add comment

Fang-Pen Lin2bd904b8af64
diff --git a/backend/src/server/routes/bdd/bdd-nock-router.ts b/backend/src/server/routes/bdd/bdd-nock-router.ts
index a8e466b9fa..90f2ed00c6 100644
--- a/backend/src/server/routes/bdd/bdd-nock-router.ts
+++ b/backend/src/server/routes/bdd/bdd-nock-router.ts
@@ -1,3 +1,6 @@
export const registerBddNockRouter = async () => {
+ // This route is only available in development or test mode.
+ // The actual implementation is in the dev.ts file and will be aliased to that file in development or test mode.
+ // And if somehow we try to enable it in production, we will throw an error.
throw new Error("BDD Nock should not be enabled in production");
};