From 48455641031e1e7e7eb32ee075128413516e2717 Mon Sep 17 00:00:00 2001 From: i-trytoohard Date: Sat, 25 Apr 2026 20:36:19 +0530 Subject: [PATCH] fix(web): pin outputFileTracingRoot to repo root (#1497) Set outputFileTracingRoot in next.config.js to the monorepo root via path.join(__dirname, '../..'). This prevents Next.js from inferring the workspace root when lockfiles exist above the checkout, eliminating the noisy startup warning in foreground dashboard logs. Closes #1492 Co-authored-by: AO Bot --- packages/web/next.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/web/next.config.js b/packages/web/next.config.js index 5930d90d8..37fb31206 100644 --- a/packages/web/next.config.js +++ b/packages/web/next.config.js @@ -1,5 +1,11 @@ +import path from "path"; +import { fileURLToPath } from "url"; + +const __dirname = path.dirname(fileURLToPath(import.meta.url)); + /** @type {import('next').NextConfig} */ const nextConfig = { + outputFileTracingRoot: path.join(__dirname, "../.."), transpilePackages: [ "@aoagents/ao-core", "@aoagents/ao-plugin-agent-claude-code",