mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +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;
|
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',
|
onBrokenMarkdownLinks: 'warn',
|
||||||
favicon: 'img/docusaurus.ico',
|
favicon: 'img/docusaurus.ico',
|
||||||
customFields: {
|
customFields: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue