From 23c06fa94dc93271560a92549fc16c3f9bcb59da Mon Sep 17 00:00:00 2001 From: Charlie Egan Date: Mon, 12 May 2025 11:53:15 +0100 Subject: [PATCH] docs: Use Node 22 for all contexts (#7570) This had been set only for previews before. This is needed to use docusaurus. 10.x as used before is eol too and was only needed for live block injection (which has been removed as we transition to the new site). Signed-off-by: Charlie Egan --- netlify.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index fe8d641ac1..1d0b84a227 100644 --- a/netlify.toml +++ b/netlify.toml @@ -20,9 +20,10 @@ function = "version-redirect" # with the Hugo version used. # see: https://github.com/open-policy-agent/opa/pull/7034 HUGO_VERSION = "0.113.0" +# A modern node version is required to build the docusaurus site. +NODE_VERSION = "22.15.0" [context.deploy-preview] -environment = { NODE_VERSION = "22.15.0" } command = "make netlify-preview WASM_ENABLED=0 CGO_ENABLED=0" [context.branch-deploy]