-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration guide from @sentry/browser
to @sentry/react
with Next.js
#3163
Comments
@Vadorequest we are currently working on the integrated Next.js+Sentry solution. There's already a work-in-progress here vercel/next.js#18272 which should be shipped in Q1. I'll make sure to keep this issue updated as we go. |
Hey @kamilogorek, I was just wondering if there's anything I could support with to help get the PR accepted? |
Any news on the NextJS/Sentry plugin? Also, in the |
@kamilogorek do you know if this will have any effect on bundle size? Currently Sentry is the largest bundle in my _app.js. |
The next package itself won't have any positive effect on the bundle size, as it itself will be dependent on the @sentry/react package. |
Swap out |
Could you explain how to do it, please? |
Is there a guide explaining how to migrate from
@sentry/browser
to@sentry/browser
in with Next.js?I have a few topics in mind:
@sentry/react
be used with Next.js? The official example still uses@sentry/browser
ErrorBoundary
and how/where it might be done considering SSG and/or SSR (does it need to be done differently depending on the rendering mode?)FallbackComponent
for SSG/SSR concerns.Profiler
, should it be done in_app
?I'm concerned about the Webpack trick regarding@sentry/server
being dynamically replaced by@sentry/browser
during build, as it seems to fail from Next.js v10.0.4+, is it still recommended doing that?Additionally, if someone from the Sentry team would like to review the Next Right Now Sentry configuration and usage, it would be awesome. Even directions regarding what improvements we might do would be a great help (I see
with-sentry
has got quite a few new features/enhancements). Here are some examples of how Sentry is configured/used in Next Right Now:The text was updated successfully, but these errors were encountered: