From 9e3e18601c9bd2dfef01f654403be12ea0b317a1 Mon Sep 17 00:00:00 2001 From: Waleed Date: Fri, 12 Dec 2025 20:14:53 -0800 Subject: [PATCH] fix(next): externalize playwright and ws (#2352) --- apps/sim/next.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/sim/next.config.ts b/apps/sim/next.config.ts index 20e8063871..3e3e22bc89 100644 --- a/apps/sim/next.config.ts +++ b/apps/sim/next.config.ts @@ -79,7 +79,11 @@ const nextConfig: NextConfig = { 'pino', 'pino-pretty', 'thread-stream', + 'ws', ], + outputFileTracingIncludes: { + '/api/tools/stagehand/*': ['./node_modules/ws/**/*'], + }, experimental: { optimizeCss: true, turbopackSourceMaps: false,