Skip to content

fix(nextjs): Don't report NEXT_NOT_FOUND and NEXT_REDIRECT errors#7642

Merged
lforst merged 5 commits intodevelopfrom
lforst-dont-report-navigation-errors
Mar 29, 2023
Merged

fix(nextjs): Don't report NEXT_NOT_FOUND and NEXT_REDIRECT errors#7642
lforst merged 5 commits intodevelopfrom
lforst-dont-report-navigation-errors

Conversation

@lforst
Copy link
Contributor

@lforst lforst commented Mar 29, 2023

Fixes #7641

Reduces error spam by not reporting NEXT_NOT_FOUND and NEXT_REDIRECT errors which get thrown when users use the redirect() or notFound() functions that Next.js exports via next/navigation:

@lforst lforst self-assigned this Mar 29, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 29, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.62 KB (0%)
@sentry/browser - ES5 CDN Bundle (minified) 64.4 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.16 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 56.78 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.53 KB (0%)
@sentry/browser - Webpack (minified) 72 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.55 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 51.98 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.16 KB (+0.01% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 26.36 KB (0%)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 44.74 KB (+0.01% 🔺)
@sentry/replay - Webpack (gzipped + minified) 38.86 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 63.41 KB (+0.01% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 56.49 KB (+0.01% 🔺)

@lforst lforst merged commit 0643828 into develop Mar 29, 2023
@lforst lforst deleted the lforst-dont-report-navigation-errors branch March 29, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NEXT_REDIRECT and NEXT_NOT_FOUND errors in Next.js app dir

2 participants