fix(frontend): preserve /api prefix in Next.js rewrite

The rewrite was incorrectly configured:
- Before: /api/:path* -> http://backend:8000/:path* (strips /api)
- After: /api/:path* -> http://backend:8000/api/:path* (preserves /api)

This was causing requests to /api/v1/agent-types to be sent to
http://backend:8000/v1/agent-types instead of the correct path.
This commit is contained in:
2026-01-06 03:12:08 +01:00
parent e583dc9caa
commit a2790a5682

View File

@@ -79,7 +79,7 @@ const nextConfig: NextConfig = {
return [
{
source: '/api/:path*',
destination: 'http://backend:8000/:path*',
destination: 'http://backend:8000/api/:path*',
},
];
},