I want to send errors to my created stages by property notifyReleaseStage
const app = express();
const bugsnag = require('@bugsnag/js');
const bugsnagClient = bugsnag({
apiKey: process.env.bugsnag_api_key,
onUnhandledRejection: function (err) {
log("Unhandled Rejection >>>>>> reason >>>>>>", err.message)
},
notifyReleaseStages: ['local']
});
bugsnagClient.use(require('@bugsnag/plugin-express'));
const { requestHandler, errorHandler } = bugsnagClient.getPlugin('express');
app.use(requestHandler);
app.use(errorHandler)
but when I throw an error it writes in the console :
[bugsnag] Report not sent due to releaseStage/notifyReleaseStages configuration