From 46407ecc2d6eab74b78d08180d22930797e0f8cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Fri, 22 Sep 2023 17:50:50 +0200 Subject: [PATCH] chore: do not fail the build if a localized site has a broken link (#9339) --- website/docusaurus.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 087e9716cd3c..0cbbaeae23c3 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -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: {