From 633fe855bf88df070d6d44ec12948ec5ed11d8bd Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Sat, 21 Mar 2026 18:19:28 -0700 Subject: [PATCH] =?UTF-8?q?fix(admin-web):=20runs=20proxy=20route=20?= =?UTF-8?q?=E2=80=94=20same=20DELETE=20body-forwarding=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboards/admin-web/src/app/api/runs/[...path]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboards/admin-web/src/app/api/runs/[...path]/route.ts b/dashboards/admin-web/src/app/api/runs/[...path]/route.ts index 1444e343..572eba90 100644 --- a/dashboards/admin-web/src/app/api/runs/[...path]/route.ts +++ b/dashboards/admin-web/src/app/api/runs/[...path]/route.ts @@ -22,7 +22,7 @@ async function proxy(req: NextRequest, { params }: { params: Promise<{ path: str 'x-product-id': req.headers.get('x-product-id') || process.env.PRODUCT_ID || 'lysnrai', }; const fetchOptions: RequestInit = { method: req.method, headers }; - if (['POST', 'PUT', 'PATCH'].includes(req.method)) fetchOptions.body = await req.text(); + if (req.method !== 'GET' && req.method !== 'HEAD') fetchOptions.body = await req.text(); const res = await fetch(`${PLATFORM_URL}${targetPath}${qs}`, fetchOptions); const data = await res.json().catch(() => null); return NextResponse.json(data ?? { error: res.statusText }, { status: res.status });