What's the recommended way?
Take a look at notifyReleaseStages in the README. For example...
Bugsnag.releaseStage = 'development';
Bugsnag.notifyReleaseStages = ['production', 'staging'];
throw new Error('OMG Something happened!'); // Never gets sent to Bugsnag
Awesome. Thanks!
You're welcome :+1:
Now it working in this way:
const bugsnagClient = bugsnag({
apiKey: process.env.REACT_APP_BUGSNAG,
notifyReleaseStages: [ 'production' ]
});
They updated naming from notifyReleaseStages to enabledReleaseStages
Most helpful comment
Now it working in this way: