Files
sysops 1f7e02dc53 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>
2026-05-11 20:46:46 +02:00

20 lines
390 B
TypeScript

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 [
{
source: "/api/:path*",
destination: `${apiBase}/api/:path*`,
},
];
},
};
export default nextConfig;