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:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user