mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-24 03:08:46 +02:00
Fix optional() type errors
This commit is contained in:
@@ -816,25 +816,20 @@ export const ConfigSchema = z
|
||||
.object({
|
||||
"proxy-resources": z
|
||||
.record(z.string(), PublicResourceSchema)
|
||||
.optional()
|
||||
.prefault({}),
|
||||
"public-resources": z
|
||||
.record(z.string(), PublicResourceSchema)
|
||||
.optional()
|
||||
.prefault({}),
|
||||
"client-resources": z
|
||||
.record(z.string(), PrivateResourceSchema)
|
||||
.optional()
|
||||
.prefault({}),
|
||||
"private-resources": z
|
||||
.record(z.string(), PrivateResourceSchema)
|
||||
.optional()
|
||||
.prefault({}),
|
||||
"public-policies": z
|
||||
.record(z.string(), ResourcePolicySchema)
|
||||
.optional()
|
||||
.prefault({}),
|
||||
sites: z.record(z.string(), SiteSchema).optional().prefault({})
|
||||
sites: z.record(z.string(), SiteSchema).prefault({})
|
||||
})
|
||||
.transform((data) => {
|
||||
// Merge public-resources into proxy-resources
|
||||
|
||||
@@ -174,7 +174,6 @@ export const configSchema = z
|
||||
maxmind_db_path: z.string().optional(),
|
||||
maxmind_asn_path: z.string().optional()
|
||||
})
|
||||
.optional()
|
||||
.prefault({}),
|
||||
postgres: z
|
||||
.object({
|
||||
|
||||
Reference in New Issue
Block a user