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