feat: add Next.js rewrite for /api → backend proxy

Routes /api/* requests to backend:8000 internally via Docker network.
Replaces nginx reverse proxy with Next.js built-in rewrites.
This commit is contained in:
Jarvis 2026-03-01 22:02:46 +01:00
parent 2484a40dbd
commit 22fec7c937

View file

@ -4,6 +4,14 @@ const nextConfig: NextConfig = {
turbopack: {
root: __dirname,
},
async rewrites() {
return [
{
source: "/api/:path*",
destination: "http://backend:8000/:path*",
},
];
},
images: {
remotePatterns: [
{