From 285b4e349c67ce850179d0ccd19755e57c8e2df7 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Sat, 16 May 2026 16:35:06 +0200 Subject: [PATCH] fix: add outputFileTracingExcludes to optimize Turbopack memory tracing --- next.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/next.config.ts b/next.config.ts index cdb98b7a..eeef0a99 100644 --- a/next.config.ts +++ b/next.config.ts @@ -46,6 +46,12 @@ const nextConfig: NextConfig = { // it from node_modules at runtime instead of trying to bundle it. Used by // PLUGIN_DEV_DIR's on-the-fly bundler. serverExternalPackages: ["esbuild"], + // Sibling repos checked out under ./repos/ are unrelated source trees that + // Turbopack's NFT can otherwise rope into the trace when dynamic fs calls + // confuse it. Keeps the build from ballooning memory tracing dead code. + outputFileTracingExcludes: { + "*": ["./repos/**/*"], + }, turbopack: { root: import.meta.dirname, },