Skip to content

Commit 05acc90

Browse files
authored
chore(ci): Improve Netlify cache + Run git backfill in parallel (#11554)
1 parent 963159b commit 05acc90

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

website/netlify.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,23 @@
1414
NODE_VERSION = "24"
1515
NODE_OPTIONS = "--max_old_space_size=8192"
1616

17+
18+
# Note, we run build:packages and git backfill in parallel to speed up builds
19+
# We run "git backfill" here to ensure the full Git history is available fast
20+
# See https://github.com/facebook/docusaurus/pull/11553
21+
1722
[context.production]
18-
command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:production"
23+
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"
1924

2025
[context.branch-deploy]
21-
command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:branchDeploy"
26+
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"
2227

2328
[context.deploy-preview]
24-
command = "yarn --cwd .. build:packages && git backfill && yarn netlify:build:deployPreview"
29+
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"
2530

2631
[[plugins]]
2732
package = "netlify-plugin-cache"
2833
[plugins.inputs]
2934
paths = [
30-
"node_modules/.cache/webpack",
35+
"node_modules/.cache",
3136
]

0 commit comments

Comments
 (0)