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 <noreply@anthropic.com>
This commit is contained in:
sysops
2026-05-11 20:46:46 +02:00
parent 33539d281a
commit 1f7e02dc53
+3
View File
@@ -2,6 +2,9 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: "standalone", output: "standalone",
turbopack: {
root: __dirname,
},
async rewrites() { async rewrites() {
const apiBase = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080"; const apiBase = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080";
return [ return [