diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index 82ace251dad..f38081fbf4a 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -19,7 +19,13 @@ const nextConfig: NextConfig = { // Transpile ESM-only packages so webpack can bundle them transpilePackages: ["react-markdown", "remark-gfm"], - webpack: (config, { dev }) => { + webpack: (config, { dev, isServer }) => { + if (!isServer) { + config.resolve.fallback = { + ...config.resolve.fallback, + fs: false, + }; + } if (dev) { config.watchOptions = { ...config.watchOptions,