Files
docusaurus/website/netlify.toml
2026-06-04 19:29:20 +02:00

33 lines
1.4 KiB
TOML

# 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
[context.production]
command = "(echo 'Build packages start' && pnpm --dir .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && pnpm netlify:build:production"
[context.branch-deploy]
command = "(echo 'Build packages start' && pnpm --dir .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && pnpm netlify:build:branchDeploy"
[context.deploy-preview]
command = "(echo 'Build packages start' && pnpm --dir .. build:packages && echo 'Build packages end') & (echo 'Git backfill start' && git backfill && echo 'Git backfill end' ) & wait && pnpm netlify:build:deployPreview"
[[plugins]]
package = "netlify-plugin-cache"
[plugins.inputs]
paths = ["node_modules/.cache"]