Issue
When we activate the debug mode, we have this warning :
[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.
Applies To
- Customer using the Next.js SDK
Resolution
The @sentry/nextjs
SDK includes a debug bundle by default. This warning likely appears because debug mode was previously disabled through tree shaking. You can learn more about this configuration here:
https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/tree-shaking/