misc: finalized env schema handling of bool

This commit is contained in:
Sheen Capadngan
2024-11-27 04:06:05 +08:00
parent 539e5b1907
commit 44a026446e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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");