From 25ed9367a601ec0ce3919b9767727b97de747ab5 Mon Sep 17 00:00:00 2001 From: "onFire(Abhi)" <40654066+AbhiShake1@users.noreply.github.com> Date: Sun, 28 Apr 2024 15:04:16 +0545 Subject: [PATCH] Update redirect.ts --- packages/next/src/client/components/redirect.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/next/src/client/components/redirect.ts b/packages/next/src/client/components/redirect.ts index 25f3865b7a30b..8c02c9399b661 100644 --- a/packages/next/src/client/components/redirect.ts +++ b/packages/next/src/client/components/redirect.ts @@ -108,10 +108,8 @@ export function isRedirectError( 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)