From a6ac88a06f46a0d60cd0a190cff9b2e12acbf49a Mon Sep 17 00:00:00 2001 From: SJCoetz Date: Wed, 27 May 2026 15:07:09 +0200 Subject: [PATCH] Require Node >=20.9.0; add Nixpacks node var Add an engines field to package.json requiring Node >=20.9.0 and add nixpacks.toml with NIXPACKS_NODE_VERSION = "20" to ensure the build/runtime use Node 20. The lockfile was updated to reflect the engine requirement. --- nixpacks.toml | 2 ++ package-lock.json | 3 +++ package.json | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 nixpacks.toml diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..3109f41 --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,2 @@ +[variables] +NIXPACKS_NODE_VERSION = "20" diff --git a/package-lock.json b/package-lock.json index 4b33f0a..7338ca7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,6 +36,9 @@ "eslint-config-next": "16.2.6", "tailwindcss": "^4", "typescript": "^5" + }, + "engines": { + "node": ">=20.9.0" } }, "node_modules/@alloc/quick-lru": { diff --git a/package.json b/package.json index a24d07e..79327b9 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "wfdash", "version": "0.1.0", "private": true, + "engines": { + "node": ">=20.9.0" + }, "scripts": { "dev": "next dev --webpack", "build": "next build",