From ae60c50415b62e30c8520317b8b2f308f0040a79 Mon Sep 17 00:00:00 2001 From: Puechberty Arthur Date: Mon, 27 Apr 2026 22:24:52 +0200 Subject: [PATCH] Aligned outputFileTracingRoot and turbopack.root to the monorepo root in next.config.mjs to satisfy the Next.js build requirement. Co-authored-by: Copilot --- apps/web/next.config.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index eb124aa..0c72911 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -4,6 +4,7 @@ import { fileURLToPath } from "node:url"; import createNextIntlPlugin from "next-intl/plugin"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); +const monorepoRoot = path.join(__dirname, "..", ".."); const withNextIntl = createNextIntlPlugin("./i18n/request.ts"); @@ -15,10 +16,10 @@ const nextConfig = { output: "standalone", // IMPORTANT pour éviter les problèmes de paths en monorepo - outputFileTracingRoot: process.cwd(), + outputFileTracingRoot: monorepoRoot, turbopack: { - root: path.join(__dirname, "..", ".."), + root: monorepoRoot, }, // optimise build (optionnel mais recommandé)