Skip to content

Commit 206c648

Browse files
mehdiraizedclaude
andcommitted
fix: remove outputFileTracingRoot — conflicts with turbopack.root in Next.js 16
Next.js 16 requires outputFileTracingRoot and turbopack.root to have the same value. Setting outputFileTracingRoot to web/ overrode turbopack.root (desktop/) and broke pnpm symlink resolution during the production build. The nested standalone layout (web/server.js) is already handled by the updated prepare-web.js and electron/main.js, so outputFileTracingRoot is not needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f1de423 commit 206c648

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

overlay/next.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ const nextConfig: NextConfig = {
99
// Safe: this only applies in development; has no effect in production builds.
1010
allowedDevOrigins: ["127.0.0.1"],
1111
serverExternalPackages: ["just-bash", "bash-tool", "node-liblzma", "@mongodb-js/zstd", "@secure-exec/node", "@secure-exec/core", "isolated-vm", "esbuild"],
12-
// Set the standalone output file tracing root to web/ itself.
13-
// Without this, Next.js uses the pnpm workspace root (desktop/) as the tracing root,
14-
// which causes server.js to be nested at web/server.js inside the standalone output
15-
// instead of at the root — breaking the Electron production launcher.
16-
outputFileTracingRoot: path.resolve(__dirname),
1712
// Set the Turbopack workspace root to desktop/ (one level above web/).
1813
// With pnpm workspaces, all node_modules live in desktop/node_modules/ and
1914
// web/node_modules/ contains symlinks pointing up to desktop/node_modules/.pnpm/.

0 commit comments

Comments
 (0)