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 [ {