mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
fix: use an enum and defaults for sandbox value
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
version="3.11.0"
|
version="3.11.0"
|
||||||
extraOrigins="https://google.com,https://test.com"
|
extraOrigins="https://google.com,https://test.com"
|
||||||
[local]
|
[local]
|
||||||
sandbox=""
|
sandbox="no"
|
||||||
[remote]
|
[remote]
|
||||||
wanaccess="yes"
|
wanaccess="yes"
|
||||||
wanport="8443"
|
wanport="8443"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
version="3.11.0"
|
version="3.11.0"
|
||||||
extraOrigins="https://google.com,https://test.com"
|
extraOrigins="https://google.com,https://test.com"
|
||||||
[local]
|
[local]
|
||||||
sandbox=""
|
sandbox="no"
|
||||||
[remote]
|
[remote]
|
||||||
wanaccess="yes"
|
wanaccess="yes"
|
||||||
wanport="8443"
|
wanport="8443"
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ const RemoteConfigSchema = z.object({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const LocalConfigSchema = z.object({
|
const LocalConfigSchema = z.object({
|
||||||
sandbox: z.string()
|
sandbox: z.enum(['yes', 'no']).default('no'),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Base config schema
|
// Base config schema
|
||||||
|
|||||||
Reference in New Issue
Block a user