diff --git a/next.config.js b/next.config.js index 5e064b1..c02375b 100644 --- a/next.config.js +++ b/next.config.js @@ -6,6 +6,14 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + async rewrites() { + return [ + { + source: "/api/:path*", + destination: "http://backend:8000/:path*", // internal Docker hostname + }, + ] + }, }; module.exports = nextConfig;