generated from vincent/template-projet
- Remove @radix-ui/react-badge (package inexistant sur npm) du package.json - Rename next.config.ts → next.config.mjs (Next.js 14 ne supporte pas .ts) - Générer package-lock.json requis par npm ci dans le Dockerfile - Ajouter next-env.d.ts (généré par Next.js build, requis pour TypeScript) Build Next.js vérifié : 6 pages générées (/, /login, /dashboard, /clients, /audits) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
15 lines
306 B
JavaScript
15 lines
306 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: "standalone",
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${process.env.NEXT_PUBLIC_API_URL ?? "http://backend:8000"}/api/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|