/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/netlify.toml
34 строки
2 KB
Sébastien Lorber
fix(ci): fix Netlify parallel git backfill not propagating cmd exit code (#12259)
09 июл 2026, 17:36
Не верифицирован
09 июл 2026, 17:36
423dd4b
Код
Авторство
О чём код?
# Note: this file's config overrides the Netlify UI admin config # /!\ due to using a monorepo it can be a bit messy to configure Netlify # See also https://github.com/netlify/build/issues/2483 [build] command = "pnpm --dir .. build:packages && pnpm build" publish = "website/build" [build.environment] 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 # Only git backfill is backgrounded; build:packages runs in the foreground so # && catches its failure, and "wait $!" propagates the backfill's exit code # (bare "wait" always exits 0, which would swallow failures) [context.production] command = "(echo 'Git backfill start' && git backfill && echo 'Git backfill end') & (echo 'Build packages start' && pnpm --dir .. build:packages && echo 'Build packages end') && wait $! && pnpm netlify:build:production" [context.branch-deploy] command = "(echo 'Git backfill start' && git backfill && echo 'Git backfill end') & (echo 'Build packages start' && pnpm --dir .. build:packages && echo 'Build packages end') && wait $! && pnpm netlify:build:branchDeploy" [context.deploy-preview] command = "(echo 'Git backfill start' && git backfill && echo 'Git backfill end') & (echo 'Build packages start' && pnpm --dir .. build:packages && echo 'Build packages end') && wait $! && pnpm netlify:build:deployPreview" [[plugins]] package = "netlify-plugin-cache" [plugins.inputs] paths = ["node_modules/.cache"]