Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(frontend): configure pnpm v11 build approvals in workspace file

wizardchen86f11d98e8bf
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index f990858e0..2d93f2488 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -9,11 +9,12 @@ ENV VITE_IS_DOCKER=true
# 复制依赖文件
COPY package*.json ./
+COPY pnpm-workspace.yaml ./
COPY packages/xlsx-0.20.2.tgz ./packages/xlsx-0.20.2.tgz
# 安装依赖
RUN corepack enable
-RUN pnpm install --allow-build=@vue-office/pptx --allow-build=esbuild --allow-build=vue-demi
+RUN pnpm install
# 复制项目文件
COPY . .
diff --git a/frontend/package.json b/frontend/package.json
index e532a5c64..a7bd9af3e 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -60,12 +60,5 @@
"lightningcss": "none",
"esbuild": "^0.25.0",
"serialize-javascript": "^7.0.3"
- },
- "pnpm": {
- "onlyBuiltDependencies": [
- "@vue-office/pptx",
- "esbuild",
- "vue-demi"
- ]
}
}
diff --git a/frontend/pnpm-workspace.yaml b/frontend/pnpm-workspace.yaml
new file mode 100644
index 000000000..fa6cdc767
--- /dev/null
+++ b/frontend/pnpm-workspace.yaml
@@ -0,0 +1,4 @@
+allowBuilds:
+ "@vue-office/pptx": true
+ esbuild: true
+ vue-demi: true