Skip to content

Commit 3563c11

Browse files
committed
Debug config
1 parent 6fc28af commit 3563c11

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/lib/config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { z } from "zod";
22
import fs from "fs/promises";
33
import merge from "deepmerge";
44
import { isServer } from "solid-js/web";
5-
import x from "../../dist/public/assets/user-bdc93350";
65

76
const configPath = process.cwd?.() && `${process.cwd()}/config.json`;
87

@@ -14,7 +13,10 @@ const schemaConfig = z.object({
1413
.object({
1514
base64: z.string().optional(),
1615
path: z.string().optional(),
17-
fromcluster: z.boolean().optional(),
16+
fromcluster: z
17+
.enum(["true", "false"])
18+
.transform((value) => value === "true")
19+
.optional(),
1820
})
1921
.optional(),
2022
prometheus: z.object({
@@ -29,7 +31,9 @@ const schemaConfig = z.object({
2931
.optional(),
3032
credentials: z
3133
.object({
32-
enable: z.boolean(),
34+
enable: z
35+
.enum(["true", "false"])
36+
.transform((value) => value === "true"),
3337
})
3438
.optional(),
3539
}),

0 commit comments

Comments
 (0)