From 963159b3c1c4c1dd84a89834cfa3d359311aa6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Mon, 17 Nov 2025 09:50:11 +0100 Subject: [PATCH 1/2] chore(ci): upgrade Netlify to Node 24 (LTS) + add `git backfill` command (#11553) --- website/netlify.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/netlify.toml b/website/netlify.toml index c2e4762e9661..1267649aa67e 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -11,17 +11,17 @@ [build.environment] NETLIFY_USE_YARN = "true" YARN_VERSION = "1.22.19" - NODE_VERSION = "22" + NODE_VERSION = "24" NODE_OPTIONS = "--max_old_space_size=8192" [context.production] - command = "yarn --cwd .. build:packages && yarn netlify:build:production" + command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:production" [context.branch-deploy] - command = "yarn --cwd .. build:packages && yarn netlify:build:branchDeploy" + command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:branchDeploy" [context.deploy-preview] - command = "yarn --cwd .. build:packages && yarn netlify:build:deployPreview" + command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:deployPreview" [[plugins]] package = "netlify-plugin-cache" From 05acc90c01cb40d6c98a36828a517f9d51c674ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Mon, 17 Nov 2025 11:46:23 +0100 Subject: [PATCH 2/2] chore(ci): Improve Netlify cache + Run `git backfill` in parallel (#11554) --- website/netlify.toml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/website/netlify.toml b/website/netlify.toml index 1267649aa67e..2e2e8fec7d52 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -14,18 +14,23 @@ NODE_VERSION = "24" NODE_OPTIONS = "--max_old_space_size=8192" + +# Note, we run build:packages and git backfill in parallel to speed up builds +# We run "git backfill" here to ensure the full Git history is available fast +# See https://github.com/facebook/docusaurus/pull/11553 + [context.production] - command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:production" + command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:production" [context.branch-deploy] - command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:branchDeploy" + command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:branchDeploy" [context.deploy-preview] - command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:deployPreview" + command = "(echo 'Build packages start' && yarn --cwd .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && yarn netlify:build:deployPreview" [[plugins]] package = "netlify-plugin-cache" [plugins.inputs] paths = [ - "node_modules/.cache/webpack", + "node_modules/.cache", ]