Skip to content

Commit 15ea046

Browse files
evangauerclaude
andcommitted
Set outputFileTracingRoot to monorepo root in apps/www Next config
Without this, Next.js's file-trace output references pnpm virtual-store paths that only exist under the workspace root. Deploying the prebuilt output from apps/www alone then fails with ENOENT on files like /node_modules/.pnpm/styled-jsx@…/index.js. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 61fa57e commit 15ea046

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/www/next.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
const path = require("path");
2+
13
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
4+
const nextConfig = {
5+
outputFileTracingRoot: path.join(__dirname, "../.."),
6+
};
37

48
module.exports = nextConfig;

0 commit comments

Comments
 (0)