From 3b63e0076f9a5ee84b2b407ddfb37834c59ddc17 Mon Sep 17 00:00:00 2001 From: Aaron Nelson Date: Sun, 26 Apr 2026 15:43:29 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20proxy=20path=20=E2=80=94=20prepend=20/api?= =?UTF-8?q?/=20when=20forwarding=20to=20FastAPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/[...slug]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/[...slug]/route.ts b/app/api/[...slug]/route.ts index e9c1250..43e9ea4 100644 --- a/app/api/[...slug]/route.ts +++ b/app/api/[...slug]/route.ts @@ -7,7 +7,7 @@ async function handler( { params }: { params: Promise<{ slug: string[] }> } ) { const { slug } = await params; - const path = '/' + slug.join('/'); + const path = '/api/' + slug.join('/'); const url = `${API_BASE}${path}${request.nextUrl.search}`; const headers = new Headers();