app/frontend/archive/next.config.ts

16 lines
348 B
TypeScript
Raw Permalink Normal View History

2025-10-13 14:57:11 +02:00
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Rewrite /api/* to backend container (from client-side)
async rewrites() {
return [
{
source: "/api/:path*",
destination: "http://backend:80/api/:path*", // internal Docker DNS
},
];
},
};
export default nextConfig;