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(web): disable pnpm dependency checks during Docker build (#35686)

yyh44242d03b4fd
diff --git a/packages/dify-ui/src/toast/__tests__/index.spec.tsx b/packages/dify-ui/src/toast/__tests__/index.spec.tsx
index 1e302618c50..e02f6828ace 100644
--- a/packages/dify-ui/src/toast/__tests__/index.spec.tsx
+++ b/packages/dify-ui/src/toast/__tests__/index.spec.tsx
@@ -125,19 +125,9 @@ describe('@langgenius/dify-ui/toast', () => {
expect(onClose).toHaveBeenCalledTimes(1)
})
- it('should respect custom timeout values including zero', async () => {
+ it('should keep zero-timeout toasts persistent', async () => {
const screen = await render(<ToastHost />)
- toast('Custom timeout', {
- timeout: 1000,
- })
- await expect.element(screen.getByText('Custom timeout')).toBeInTheDocument()
-
- await vi.advanceTimersByTimeAsync(1000)
- await vi.waitFor(() => {
- expect(document.body).not.toHaveTextContent('Custom timeout')
- })
-
toast('Persistent', {
timeout: 0,
})
diff --git a/web/Dockerfile b/web/Dockerfile
index 8bf016c1bad..868a26b1cae 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -41,6 +41,7 @@ COPY . .
WORKDIR /app/web
ENV NODE_OPTIONS="--max-old-space-size=4096"
+ENV pnpm_config_verify_deps_before_run=false
RUN pnpm build && pnpm build:vinext