Skip to content

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

misc: finalized env schema handling of bool

Sheen Capadngan44a026446e7a
diff --git a/.env.example b/.env.example
index 402cb79cba..b54f09921f 100644
--- a/.env.example
+++ b/.env.example
@@ -74,8 +74,8 @@ CAPTCHA_SECRET=
NEXT_PUBLIC_CAPTCHA_SITE_KEY=
-OTEL_TELEMETRY_COLLECTION_ENABLED=
-OTEL_EXPORT_TYPE=
+OTEL_TELEMETRY_COLLECTION_ENABLED=false
+OTEL_EXPORT_TYPE=prometheus
OTEL_EXPORT_OTLP_ENDPOINT=
OTEL_OTLP_PUSH_INTERVAL=
diff --git a/backend/src/lib/config/env.ts b/backend/src/lib/config/env.ts
index 12ab331187..a9014a72b8 100644
--- a/backend/src/lib/config/env.ts
+++ b/backend/src/lib/config/env.ts
@@ -10,7 +10,7 @@ export const GITLAB_URL = "https://gitlab.com";
export const IS_PACKAGED = (process as any)?.pkg !== undefined;
const zodStrBool = z
- .enum(["true", "false"])
+ .string()
.optional()
.transform((val) => val === "true");