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.

build: require node 24.13.0 (#30945)

Stephen Zhou328897f81c8f
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index 462ece303e9..6c5d6f41350 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -90,7 +90,7 @@ jobs:
uses: actions/setup-node@v6
if: steps.changed-files.outputs.any_changed == 'true'
with:
- node-version: 22
+ node-version: 24
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 0259ef22326..ec392cb3b2e 100644
--- a/.github/workflows/tool-test-sdks.yaml
+++ b/.github/workflows/tool-test-sdks.yaml
@@ -16,10 +16,6 @@ jobs:
name: unit test for Node.js SDK
runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [16, 18, 20, 22]
-
defaults:
run:
working-directory: sdks/nodejs-client
@@ -29,10 +25,10 @@ jobs:
with:
persist-credentials: false
- - name: Use Node.js ${{ matrix.node-version }}
+ - name: Use Node.js
uses: actions/setup-node@v6
with:
- node-version: ${{ matrix.node-version }}
+ node-version: 24
cache: ''
cache-dependency-path: 'pnpm-lock.yaml'
diff --git a/.github/workflows/translate-i18n-claude.yml b/.github/workflows/translate-i18n-claude.yml
index 003e7ffc6e6..8344af98909 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: 'lts/*'
+ node-version: 24
cache: pnpm
cache-dependency-path: ./web/pnpm-lock.yaml
diff --git a/.github/workflows/web-tests.yml b/.github/workflows/web-tests.yml
index 0fd1d5d22b8..65c958a4531 100644
--- a/.github/workflows/web-tests.yml
+++ b/.github/workflows/web-tests.yml
@@ -31,7 +31,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
- node-version: 22
+ node-version: 24
cache: pnpm
cache-dependency-path: ./web/pnpm-lock.yaml
diff --git a/web/.nvmrc b/web/.nvmrc
index 5767036af0e..a45fd52cc58 100644
--- a/web/.nvmrc
+++ b/web/.nvmrc
@@ -1 +1 @@
-22.21.1
+24
diff --git a/web/Dockerfile b/web/Dockerfile
index 9e08910a779..d71b1b6ba61 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -1,5 +1,5 @@
# base image
-FROM node:22.21.1-alpine3.23 AS base
+FROM node:24-alpine AS base
LABEL maintainer="[email protected]"
# if you located in China, you can use aliyun mirror to speed up
diff --git a/web/README.md b/web/README.md
index ae4338d7bee..13780eec6c9 100644
--- a/web/README.md
+++ b/web/README.md
@@ -8,8 +8,8 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next
Before starting the web frontend service, please make sure the following environment is ready.
-- [Node.js](https://nodejs.org) >= v22.11.x
-- [pnpm](https://pnpm.io) v10.x
+- [Node.js](https://nodejs.org)
+- [pnpm](https://pnpm.io)
> [!TIP]
> It is recommended to install and enable Corepack to manage package manager versions automatically:
diff --git a/web/package.json b/web/package.json
index fab33f7608b..bdbac2af836 100644
--- a/web/package.json
+++ b/web/package.json
@@ -10,9 +10,6 @@
"default": "./i18n-config/lib.client.ts"
}
},
- "engines": {
- "node": ">=22.12.0"
- },
"browserslist": [
"last 1 Chrome version",
"last 1 Firefox version",