From a92c3d7fdbbb3b1009faa6e7f2737690d7cb498a Mon Sep 17 00:00:00 2001 From: Winkler <8613031+falcowinkler@users.noreply.github.com> Date: Fri, 3 May 2024 10:46:10 +0200 Subject: [PATCH] chore(examples): fix trailing slash in third-party-api example (#10804) --- apps/examples/nextjs/app/[...proxy]/route.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/examples/nextjs/app/[...proxy]/route.tsx b/apps/examples/nextjs/app/[...proxy]/route.tsx index ae20cd18da..6e28669335 100644 --- a/apps/examples/nextjs/app/[...proxy]/route.tsx +++ b/apps/examples/nextjs/app/[...proxy]/route.tsx @@ -21,11 +21,11 @@ export async function handler(request: NextRequest) { let backendUrl = process.env.THIRD_PARTY_API_EXAMPLE_BACKEND ?? - "https://authjs-third-party-backend.authjs.dev/" + "https://authjs-third-party-backend.authjs.dev" let url = request.nextUrl.href.replace(request.nextUrl.origin, backendUrl) let result = await fetch(url, { headers, body: request.body }) - console.log("fetched", result) + return stripContentEncoding(result) }