Skip to content

Commit 15647a3

Browse files
authored
chore: disable broken links check for i18n staging (#9375)
1 parent 81d30a4 commit 15647a3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

website/docusaurus.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,11 @@ module.exports = async function createConfigAsync() {
184184
},
185185
},
186186
onBrokenLinks:
187-
// Do not fail the build if a localized site has a broken link
188-
process.env.DOCUSAURUS_CURRENT_LOCALE === defaultLocale && !isBuildFast
189-
? 'throw'
190-
: 'warn',
187+
isBuildFast ||
188+
isVersioningDisabled ||
189+
process.env.DOCUSAURUS_CURRENT_LOCALE !== defaultLocale
190+
? 'warn'
191+
: 'throw',
191192
onBrokenMarkdownLinks: 'warn',
192193
favicon: 'img/docusaurus.ico',
193194
customFields: {

0 commit comments

Comments
 (0)