Files
klz-cables.com/.pnpm-store/v10/files/3a/e08cade8ee22dc01b22825a1b99893472bfd683fb299ad14888fa3e82315645f2dc524aee820087164330602f44cc9f241743058ec07cae2f8b4f560b2da06
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

30 lines
853 B
Plaintext

import { isError } from '@sentry/core';
/**
* Determines whether input is a Next.js not-found error.
* https://beta.nextjs.org/docs/api-reference/notfound#notfound
*/
function isNotFoundNavigationError(subject) {
return (
isError(subject) &&
['NEXT_NOT_FOUND', 'NEXT_HTTP_ERROR_FALLBACK;404'].includes(
(subject ).digest ,
)
);
}
/**
* Determines whether input is a Next.js redirect error.
* https://beta.nextjs.org/docs/api-reference/redirect#redirect
*/
function isRedirectNavigationError(subject) {
return (
isError(subject) &&
typeof (subject ).digest === 'string' &&
(subject ).digest.startsWith('NEXT_REDIRECT;') // a redirect digest looks like "NEXT_REDIRECT;[redirect path]"
);
}
export { isNotFoundNavigationError, isRedirectNavigationError };
//# sourceMappingURL=nextNavigationErrorUtils.js.map