chore: do not error on broken links when doing test build (#9363)

This commit is contained in:
Joshua Chen 2023-10-02 14:00:11 -04:00 committed by GitHub
parent 0624007271
commit 683fe37806
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -185,7 +185,7 @@ 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
process.env.DOCUSAURUS_CURRENT_LOCALE === defaultLocale && !isBuildFast
? 'throw'
: 'warn',
onBrokenMarkdownLinks: 'warn',