From 1f7e02dc53127cdf30e478263ae917c1d9d4cc8b Mon Sep 17 00:00:00 2001 From: sysops Date: Mon, 11 May 2026 20:46:46 +0200 Subject: [PATCH] fix(build): turbopack.root explizit setzen, verhindert Warning bei multiplen lockfiles Next.js/Turbopack kann sich den Workspace-Root falsch ableiten wenn im Parent-Verzeichnis des Build-Dirs eine package-lock.json liegt (z.B. durch alten Deploy-Stand). __dirname als expliziter Root behebt die Warnung dauerhaft. Co-Authored-By: Claude Sonnet 4.6 --- next.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next.config.ts b/next.config.ts index 027338d..dd8d28b 100644 --- a/next.config.ts +++ b/next.config.ts @@ -2,6 +2,9 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "standalone", + turbopack: { + root: __dirname, + }, async rewrites() { const apiBase = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080"; return [