1f7e02dc53
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>
20 lines
390 B
TypeScript
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;
|