From 3bb006974c34c14b04004f744b7b785b7e39f885 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Thu, 16 Jan 2025 19:10:16 -0800 Subject: [PATCH] Add NODE_VERSION to Netlify config examples --- content/en/functions/css/Sass.md | 1 + content/en/functions/resources/ToCSS.md | 1 + content/en/hosting-and-deployment/hosting-on-netlify/index.md | 2 ++ content/en/hugo-pipes/transpile-sass-to-css.md | 1 + 4 files changed, 5 insertions(+) diff --git a/content/en/functions/css/Sass.md b/content/en/functions/css/Sass.md index 793c0c1ac..5f6d6f50c 100644 --- a/content/en/functions/css/Sass.md +++ b/content/en/functions/css/Sass.md @@ -180,6 +180,7 @@ To install Dart Sass for your builds on Netlify, the `netlify.toml` file should [build.environment] HUGO_VERSION = "0.137.1" DART_SASS_VERSION = "1.80.6" +NODE_VERSION = "22" TZ = "America/Los_Angeles" [build] diff --git a/content/en/functions/resources/ToCSS.md b/content/en/functions/resources/ToCSS.md index 5db634f93..70d740671 100644 --- a/content/en/functions/resources/ToCSS.md +++ b/content/en/functions/resources/ToCSS.md @@ -181,6 +181,7 @@ To install Dart Sass for your builds on Netlify, the `netlify.toml` file should [build.environment] HUGO_VERSION = "0.137.1" DART_SASS_VERSION = "1.80.6" +NODE_VERSION = "22" TZ = "America/Los_Angeles" [build] diff --git a/content/en/hosting-and-deployment/hosting-on-netlify/index.md b/content/en/hosting-and-deployment/hosting-on-netlify/index.md index 361a40e80..43af4e054 100644 --- a/content/en/hosting-and-deployment/hosting-on-netlify/index.md +++ b/content/en/hosting-and-deployment/hosting-on-netlify/index.md @@ -104,6 +104,7 @@ Create a new file named netlify.toml in the root of your project directory. In i {{< code file=netlify.toml >}} [build.environment] HUGO_VERSION = "0.137.1" +NODE_VERSION = "22" TZ = "America/Los_Angeles" [build] @@ -117,6 +118,7 @@ If your site requires Dart Sass to transpile Sass to CSS, the configuration file [build.environment] HUGO_VERSION = "0.137.1" DART_SASS_VERSION = "1.80.6" +NODE_VERSION = "22" TZ = "America/Los_Angeles" [build] diff --git a/content/en/hugo-pipes/transpile-sass-to-css.md b/content/en/hugo-pipes/transpile-sass-to-css.md index 886488ca6..cb2756a6f 100644 --- a/content/en/hugo-pipes/transpile-sass-to-css.md +++ b/content/en/hugo-pipes/transpile-sass-to-css.md @@ -172,6 +172,7 @@ To install Dart Sass for your builds on Netlify, the `netlify.toml` file should [build.environment] HUGO_VERSION = "0.137.1" DART_SASS_VERSION = "1.80.6" +NODE_VERSION = "22" TZ = "America/Los_Angeles" [build]