Enable bugsnag only for production environment

400 Views Asked by At

Default bugsnag report bugs of development and production mode. Allow only production bugs reporting.

Error should report only for production mode

1

There are 1 best solutions below

0
Prerna More On

By default, Bugsnag will be notified of events that happen in any releaseStage. Set this option if you would like to change which release stages notify Bugsnag.

Bugsnag.start({ enabledReleaseStages: [ 'production', 'staging' ] })

To enable just production mode error, set

Bugsnag.start({ enabledReleaseStages: [ 'production'] })