chore(deps): pin Node 22.22+ for frontend builds

CodeRabbit on PR #49: the Docker build stages still used node:20-alpine,
which vite 7 (>=20.19/22.12) and react-router 8 (>=22.22) no longer
support. Bump NODE_VERSION to 22 in both Dockerfiles and declare
engines.node >=22.22.0 in both app manifests so local installs on an
old Node fail loudly instead of at build time.
This commit is contained in:
Alexa
2026-08-02 01:05:49 +03:00
parent 1d7801b3c0
commit e6e5c9990f
6 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
# context.
ARG DOTNET_VERSION=9.0
ARG NODE_VERSION=20
ARG NODE_VERSION=22
# ── admin SPA build stage ──────────────────────────────────────────
# The Vite + React admin UI under DorkNet.Server/admin-ui builds in a
+1 -1
View File
@@ -1,5 +1,5 @@
ARG DOTNET_VERSION=9.0
ARG NODE_VERSION=20
ARG NODE_VERSION=22
FROM node:${NODE_VERSION}-alpine AS admin-ui
WORKDIR /ui
+3
View File
@@ -23,6 +23,9 @@
"tailwindcss": "^3.4.15",
"typescript": "^5.6.3",
"vite": "^7.3.6"
},
"engines": {
"node": ">=22.22.0"
}
},
"node_modules/@alloc/quick-lru": {
+3
View File
@@ -3,6 +3,9 @@
"private": true,
"version": "0.1.0",
"type": "module",
"engines": {
"node": ">=22.22.0"
},
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
+3
View File
@@ -22,6 +22,9 @@
"tailwindcss": "^3.4.15",
"typescript": "^5.6.3",
"vite": "^7.3.6"
},
"engines": {
"node": ">=22.22.0"
}
},
"node_modules/@alloc/quick-lru": {
+3
View File
@@ -3,6 +3,9 @@
"private": true,
"version": "0.1.0",
"type": "module",
"engines": {
"node": ">=22.22.0"
},
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",