diff --git a/frontend/src/app/api/[...path]/route.ts b/frontend/src/app/api/[...path]/route.ts index e6e2cda6..e445adb1 100644 --- a/frontend/src/app/api/[...path]/route.ts +++ b/frontend/src/app/api/[...path]/route.ts @@ -35,7 +35,8 @@ export async function DELETE( async function proxyToBackend(request: NextRequest, pathSegments: string[]) { const path = pathSegments.join('/'); - const backendUrl = `http://backend:3001/api/${path}`; + // Use the full container name to avoid DNS conflicts with other backend containers + const backendUrl = `http://mad-lawsuit-backend-1:3001/api/${path}`; // Get the search params from the original request const searchParams = request.nextUrl.searchParams.toString();