File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
dev-packages/e2e-tests/test-applications/nextjs-turbo
packages/nextjs/src/common Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 4646 "extends" : " ../../package.json"
4747 },
4848 "sentryTest" : {
49+ "optional" : true ,
4950 "optionalVariants" : [
5051 {
5152 "build-command" : " test:build-canary" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,12 @@ import { isError } from '@sentry/core';
55 * https://beta.nextjs.org/docs/api-reference/notfound#notfound
66 */
77export function isNotFoundNavigationError ( subject : unknown ) : boolean {
8- return isError ( subject ) && ( subject as Error & { digest ?: unknown } ) . digest === 'NEXT_NOT_FOUND' ;
8+ return (
9+ isError ( subject ) &&
10+ [ 'NEXT_NOT_FOUND' , 'NEXT_HTTP_ERROR_FALLBACK;404' ] . includes (
11+ ( subject as Error & { digest ?: unknown } ) . digest as string ,
12+ )
13+ ) ;
914}
1015
1116/**
You can’t perform that action at this time.
0 commit comments