Skip to content

Commit

Permalink
chore: do not fail the build if a localized site has a broken link (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Sep 22, 2023
1 parent 84b165c commit 46407ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ module.exports = async function createConfigAsync() {
return result;
},
},
onBrokenLinks: 'throw',
onBrokenLinks:
// Do not fail the build if a localized site has a broken link
process.env.DOCUSAURUS_CURRENT_LOCALE === defaultLocale
? 'throw'
: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/docusaurus.ico',
customFields: {
Expand Down

0 comments on commit 46407ec

Please sign in to comment.