File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import { z } from "zod";
22import fs from "fs/promises" ;
33import merge from "deepmerge" ;
44import { isServer } from "solid-js/web" ;
5- import x from "../../dist/public/assets/user-bdc93350" ;
65
76const 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 } ) ,
You can’t perform that action at this time.
0 commit comments