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.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-06 03:12:08 +01:00
parent 5a4d93df26
commit 5d646779c9

View File

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