fix: handle React v18.3 warnings (#10079)

This commit is contained in:
Sébastien Lorber 2024-04-29 21:56:47 +02:00 committed by GitHub
parent f1cb4ed560
commit ca33858ca0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
69 changed files with 85 additions and 48 deletions

View file

@ -89,7 +89,7 @@ export default function preset(
),
);
}
if (isProd && sitemap !== false) {
if (sitemap !== false && (isProd || debug)) {
plugins.push(makePluginConfig('@docusaurus/plugin-sitemap', sitemap));
}
if (Object.keys(rest).length > 0) {