Skip to content
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

Closed
Vadorequest opened this issue Jan 11, 2021 · 6 comments
Closed

Comments

@Vadorequest
Copy link

Vadorequest commented Jan 11, 2021

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:


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:

@kamilogorek
Copy link
Contributor

@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.

@kmdev1
Copy link

kmdev1 commented Feb 21, 2021

Hey @kamilogorek, I was just wondering if there's anything I could support with to help get the PR accepted?

@michaelmerrill
Copy link

Any news on the NextJS/Sentry plugin?

Also, in the with-sentry example it states that not all errors will be caught by sentry when using vercel (as of yet). Will this be fixed with the plugin?

@nandorojo
Copy link

@kamilogorek do you know if this will have any effect on bundle size? Currently Sentry is the largest bundle in my _app.js.

Screen Shot 2021-04-07 at 5 51 17 PM

@kamilogorek
Copy link
Contributor

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.

@quantizor
Copy link

@kamilogorek do you know if this will have any effect on bundle size? Currently Sentry is the largest bundle in my _app.js.

Screen Shot 2021-04-07 at 5 51 17 PM

Swap out @sentry/node with @sentry/browser in your webpack config if isServer is false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants