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 0aadc9b commit ac05aa7Copy full SHA for ac05aa7
packages/nextjs/src/common/nextNavigationErrorUtils.ts
@@ -5,7 +5,12 @@ import { isError } from '@sentry/utils';
5
* https://beta.nextjs.org/docs/api-reference/notfound#notfound
6
*/
7
export function isNotFoundNavigationError(subject: unknown): boolean {
8
- return isError(subject) && (subject as Error & { digest?: unknown }).digest === 'NEXT_NOT_FOUND';
+ 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')
13
+ );
14
}
15
16
/**
0 commit comments