chore: disable broken links check for i18n staging (#9375)

This commit is contained in:
Sébastien Lorber 2023-10-05 12:49:12 +02:00 committed by GitHub
parent 81d30a4712
commit 15647a3abd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,10 +184,11 @@ module.exports = async function createConfigAsync() {
},
},
onBrokenLinks:
// Do not fail the build if a localized site has a broken link
process.env.DOCUSAURUS_CURRENT_LOCALE === defaultLocale && !isBuildFast
? 'throw'
: 'warn',
isBuildFast ||
isVersioningDisabled ||
process.env.DOCUSAURUS_CURRENT_LOCALE !== defaultLocale
? 'warn'
: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/docusaurus.ico',
customFields: {