From d56ccdec8c5331dc5124032a93f89c95e07a7c33 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Tue, 10 Mar 2026 09:31:55 -0700 Subject: [PATCH] chore(web): quiet workspace build warnings --- docs/roadmaps/03_WEB_ROADMAP.md | 1 + web/next.config.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/roadmaps/03_WEB_ROADMAP.md b/docs/roadmaps/03_WEB_ROADMAP.md index 7c7c3a5..a4611f7 100644 --- a/docs/roadmaps/03_WEB_ROADMAP.md +++ b/docs/roadmaps/03_WEB_ROADMAP.md @@ -115,6 +115,7 @@ Stack: Next.js 16 + React 19 + TypeScript - `npm test` - `npm run typecheck` - `npm run build` + - Hardened Next.js build config by setting `outputFileTracingRoot`, removing the repeated workspace-root warning during `web` production builds # Open Questions diff --git a/web/next.config.ts b/web/next.config.ts index 7bd6dc8..d3d190a 100644 --- a/web/next.config.ts +++ b/web/next.config.ts @@ -1,3 +1,4 @@ +import path from "node:path"; import type { NextConfig } from "next"; const securityHeaders = [ @@ -20,6 +21,7 @@ const securityHeaders = [ ]; const nextConfig: NextConfig = { + outputFileTracingRoot: path.join(process.cwd(), ".."), async headers() { return [ {