Avoiding Sentry Impact on Client-side bundle size in Next JS via sending error data to the server route #17427
stepan-twnty
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To avoid increasing bundle size, I created a route that I use for sending all Errors from the client. Here is an example:
I understand that a lot of features are not working, but actually, I only need the Error name, on what page it happened, and a simple trace (optional), and it looks like everything that I need, Sentry captured.
Maybe someone has some suggestions on how to improve this way of using Sentry on the client side?
Beta Was this translation helpful? Give feedback.
All reactions