We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac05aa7 commit 959652eCopy full SHA for 959652e
packages/nextjs/src/common/nextNavigationErrorUtils.ts
@@ -7,9 +7,9 @@ import { isError } from '@sentry/utils';
7
export function isNotFoundNavigationError(subject: unknown): boolean {
8
return (
9
isError(subject) &&
10
- ((subject as Error & { digest?: unknown }).digest === 'NEXT_NOT_FOUND' ||
11
- // this was introduced in 15.0.4-canary.18: https://github.com/vercel/next.js/pull/72774
12
- (subject as Error & { digest?: unknown }).digest === 'NEXT_HTTP_ERROR_FALLBACK;404')
+ ['NEXT_NOT_FOUND', 'NEXT_HTTP_ERROR_FALLBACK;404'].includes(
+ (subject as Error & { digest?: unknown }).digest as string,
+ )
13
);
14
}
15
0 commit comments