mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-01 20:29:03 +02:00
Aligned outputFileTracingRoot and turbopack.root to the monorepo root in next.config.mjs to satisfy the Next.js build requirement.
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
co-authored by
Copilot
parent
4370a80ae7
commit
ae60c50415
@@ -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é)
|
||||
|
||||
Reference in New Issue
Block a user