fix: 升级构建环境至 Node 22 以兼容 Vite 6
This commit is contained in:
1 parent
df7beb2189
commit
4d5a9942c2
1 file changed
+1
-1
@@ -36,7 +36,7 @@ rm -rf frontend/dist
|
||||
|
||||
# 使用临时容器构建
|
||||
echo " Running npm install & build in docker..."
|
||||
docker run --rm -v $(pwd)/frontend:/app -w /app node:18-alpine sh -c "npm install && npm run build"
|
||||
docker run --rm -v $(pwd)/frontend:/app -w /app node:22-alpine sh -c "npm install && npm run build"
|
||||
|
||||
if [ ! -d "frontend/dist" ]; then
|
||||
echo "❌ 前端构建失败: frontend/dist 目录未生成"
|
||||
|
||||
Reference in new issue
Block a user