Skip to content

Commit

Permalink
Update redirect.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiShake1 authored Apr 28, 2024
1 parent 9e5ef43 commit 25ed936
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/next/src/client/components/redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,8 @@ export function isRedirectError<U extends string>(

const digest = error.digest.split(';')
const [errorCode, type] = digest
const destination = digest.slice(2, -2).join(';')
const status = digest.at(-2)

console.log([errorCode, type, destination, status])
const destination = digest.slice(2, -2).join(';')
const status = digest.at(-2)

const statusCode = Number(status)

Expand Down

0 comments on commit 25ed936

Please sign in to comment.