From 1651b95886c38916807de3a3d89c7cc90fe7c521 Mon Sep 17 00:00:00 2001 From: kumarabhirup Date: Wed, 4 Mar 2026 11:07:58 -0800 Subject: [PATCH] chore(web): document client fallback rationale in webpack config Clarify why browser bundles stub Node-only html-to-docx dependencies in Next.js. --- apps/web/next.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index 1657b7212db..bf08a619cc0 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -21,6 +21,7 @@ const nextConfig: NextConfig = { webpack: (config, { dev, isServer }) => { if (!isServer) { + // html-to-docx references Node-only modules that should not be resolved in browser bundles. config.resolve.fallback = { ...config.resolve.fallback, fs: false,