Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: downgrade node version to 22 (#32897)

Stephen Zhou5e79d3588190
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index cbd6edf94b5..eb13c3d0965 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -89,7 +89,7 @@ jobs:
uses: actions/setup-node@v6
if: steps.changed-files.outputs.any_changed == 'true'
with:
- node-version: 24
+ node-version: 22
cache: pnpm
cache-dependency-path: ./web/pnpm-lock.yaml
diff --git a/.github/workflows/tool-test-sdks.yaml b/.github/workflows/tool-test-sdks.yaml
index ec392cb3b2e..d9a1168636d 100644
--- a/.github/workflows/tool-test-sdks.yaml
+++ b/.github/workflows/tool-test-sdks.yaml
@@ -28,7 +28,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v6
with:
- node-version: 24
+ node-version: 22
cache: ''
cache-dependency-path: 'pnpm-lock.yaml'
diff --git a/.github/workflows/translate-i18n-claude.yml b/.github/workflows/translate-i18n-claude.yml
index 5d9440ff354..b431c36a8be 100644
--- a/.github/workflows/translate-i18n-claude.yml
+++ b/.github/workflows/translate-i18n-claude.yml
@@ -57,7 +57,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v6
with:
- node-version: 24
+ node-version: 22
cache: pnpm
cache-dependency-path: ./web/pnpm-lock.yaml
diff --git a/.github/workflows/web-tests.yml b/.github/workflows/web-tests.yml
index f50689636b8..659620b2a9f 100644
--- a/.github/workflows/web-tests.yml
+++ b/.github/workflows/web-tests.yml
@@ -39,7 +39,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
- node-version: 24
+ node-version: 22
cache: pnpm
cache-dependency-path: ./web/pnpm-lock.yaml
@@ -83,7 +83,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
- node-version: 24
+ node-version: 22
cache: pnpm
cache-dependency-path: ./web/pnpm-lock.yaml
@@ -457,7 +457,7 @@ jobs:
uses: actions/setup-node@v6
if: steps.changed-files.outputs.any_changed == 'true'
with:
- node-version: 24
+ node-version: 22
cache: pnpm
cache-dependency-path: ./web/pnpm-lock.yaml
diff --git a/web/.nvmrc b/web/.nvmrc
index a45fd52cc58..2bd5a0a98a3 100644
--- a/web/.nvmrc
+++ b/web/.nvmrc
@@ -1 +1 @@
-24
+22
diff --git a/web/Dockerfile b/web/Dockerfile
index fe4ea1a579d..9b24f9ea0a8 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -1,5 +1,5 @@
# base image
-FROM node:24-alpine AS base
+FROM node:22-alpine AS base
LABEL maintainer="[email protected]"
# if you located in China, you can use aliyun mirror to speed up
diff --git a/web/package.json b/web/package.json
index a1f1c5966ae..2291d78998d 100644
--- a/web/package.json
+++ b/web/package.json
@@ -23,7 +23,7 @@
"and_qq >= 14.9"
],
"engines": {
- "node": ">=24"
+ "node": "^22"
},
"scripts": {
"dev": "next dev",