chore: validate schema moved from loadConfig to init

This commit is contained in:
Dan Ribbens
2024-03-04 14:30:38 -05:00
parent b14560c07d
commit c0a07a6144
4 changed files with 16 additions and 23 deletions

View File

@@ -73,6 +73,12 @@ export default joi.object({
}),
user: joi.string(),
}),
bin: joi.array().items(
joi.object().keys({
key: joi.string(),
scriptPath: joi.string(),
}),
),
collections: joi.array(),
cookiePrefix: joi.string(),
cors: [joi.string().valid('*'), joi.array().items(joi.string())],
@@ -148,6 +154,7 @@ export default joi.object({
graphQL: joi.string(),
graphQLPlayground: joi.string(),
}),
secret: joi.string(),
serverURL: joi
.string()
.uri()