diff --git a/packages/docusaurus/src/server/configValidation.ts b/packages/docusaurus/src/server/configValidation.ts index 1295e99357e6..0288d80695cc 100644 --- a/packages/docusaurus/src/server/configValidation.ts +++ b/packages/docusaurus/src/server/configValidation.ts @@ -40,6 +40,7 @@ export const DEFAULT_CONFIG: Pick< const PluginSchema = Joi.alternatives().try( Joi.string(), Joi.array().items(Joi.string().required(), Joi.object().required()).length(2), + Joi.bool().equal(false), // In case of conditional adding of plugins. ); const ThemeSchema = Joi.alternatives().try(