Skip to content

Error boundary with next.js? #8003

Answered by lforst
razzeee asked this question in Q&A
May 1, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

If you add an error boundary the error's won't bubble up anymore and Sentry can't capture them. If you want you can simply call Sentry.captureException(err) in the handler of the error boundary or use Sentry's error boundary below your own.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@razzeee
Comment options

@lforst
Comment options

Answer selected by razzeee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants