Skip to content

Commit

Permalink
chore(examples): fix trailing slash in third-party-api example (#10804)
Browse files Browse the repository at this point in the history
  • Loading branch information
falcowinkler committed May 3, 2024
1 parent e4eb63a commit a92c3d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/examples/nextjs/app/[...proxy]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit a92c3d7

Please sign in to comment.