From bebf9e835202a77bd77e4efa420bb1ab9721804a Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Fri, 17 Nov 2023 05:46:19 -0500 Subject: [PATCH] Require Node LTS --- .nvmrc | 1 + netlify.toml | 2 -- package.json | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..b009dfb9d9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* diff --git a/netlify.toml b/netlify.toml index ba847a5731..c3311ff7f4 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,7 +1,5 @@ [build] publish = "public" - NODE_ENV = "production" - NODE_VERSION = "18" command = "npm run build:preview" [context.production] diff --git a/package.json b/package.json index 291bee1052..4fa7f4090d 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,10 @@ "hugo-extended": "^0.119.0", "postcss-cli": "^9.1.0" }, + "enginesComment": "Ensure that engines.node value stays consistent with the project's .nvmrc", + "engines": { + "node": "20.x" + }, "private": true, "spelling": "cSpell:ignore docsy postget -" }