fix: add outputFileTracingExcludes to optimize Turbopack memory tracing

This commit is contained in:
Linus Rath
2026-05-16 16:35:06 +02:00
parent 2b4ebb1fbb
commit 285b4e349c
+6
View File
@@ -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,
},