Is there a guide explaining how to migrate from @sentry/browser
to @sentry/browser
in with Next.js?
I'm one of the maintainers of Next Right Now and I wish to change our current implementation (see issue)
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
?@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:
@Vadorequest we are currently working on the integrated Next.js+Sentry solution. There's already a work-in-progress here https://github.com/vercel/next.js/pull/18272 which should be shipped in Q1. I'll make sure to keep this issue updated as we go.
Most helpful comment
@Vadorequest we are currently working on the integrated Next.js+Sentry solution. There's already a work-in-progress here https://github.com/vercel/next.js/pull/18272 which should be shipped in Q1. I'll make sure to keep this issue updated as we go.