16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
|
|
/** @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;
|