From eb7983f0baf1c7f9a1b8abe15a0c02b0af301464 Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Fri, 7 Nov 2025 16:44:07 -0600 Subject: [PATCH] Fix: Use specific container name to avoid DNS conflict with other backend containers --- frontend/src/app/api/[...path]/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();