mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05:00
misc: finalized env schema handling of bool
This commit is contained in:
@@ -74,8 +74,8 @@ CAPTCHA_SECRET=
|
|||||||
|
|
||||||
NEXT_PUBLIC_CAPTCHA_SITE_KEY=
|
NEXT_PUBLIC_CAPTCHA_SITE_KEY=
|
||||||
|
|
||||||
OTEL_TELEMETRY_COLLECTION_ENABLED=
|
OTEL_TELEMETRY_COLLECTION_ENABLED=false
|
||||||
OTEL_EXPORT_TYPE=
|
OTEL_EXPORT_TYPE=prometheus
|
||||||
OTEL_EXPORT_OTLP_ENDPOINT=
|
OTEL_EXPORT_OTLP_ENDPOINT=
|
||||||
OTEL_OTLP_PUSH_INTERVAL=
|
OTEL_OTLP_PUSH_INTERVAL=
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export const GITLAB_URL = "https://gitlab.com";
|
|||||||
export const IS_PACKAGED = (process as any)?.pkg !== undefined;
|
export const IS_PACKAGED = (process as any)?.pkg !== undefined;
|
||||||
|
|
||||||
const zodStrBool = z
|
const zodStrBool = z
|
||||||
.enum(["true", "false"])
|
.string()
|
||||||
.optional()
|
.optional()
|
||||||
.transform((val) => val === "true");
|
.transform((val) => val === "true");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user