mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +02:00
chore: do not fail the build if a localized site has a broken link (#9339)
This commit is contained in:
parent
84b165c4f9
commit
46407ecc2d
1 changed files with 5 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue