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.
This commit is contained in:
parent
54644c7ce8
commit
a6ac88a06f
3 changed files with 8 additions and 0 deletions
2
nixpacks.toml
Normal file
2
nixpacks.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[variables]
|
||||
NIXPACKS_NODE_VERSION = "20"
|
||||
3
package-lock.json
generated
3
package-lock.json
generated
|
|
@ -36,6 +36,9 @@
|
|||
"eslint-config-next": "16.2.6",
|
||||
"tailwindcss": "^4",
|
||||
"typescript": "^5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@alloc/quick-lru": {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue