rollbar.js
rollbar.js copied to clipboard
2 environment
I added rollbar to my ReactApp + Webpack.
Have some trouble how make it possible to distinguish the production and staging environment?
My rollbar.js looks like:
const rollbar = require('./rollbar.umd.min.js')
const rollbarConfig = { accessToken: process.env.ROLLBAR_ACCESS_TOKEN, captureUncaught: true, captureUnhandledRejections: true, payload: { environment: 'production', }, };
So for production in payload environment should be production and second for staging- staging.
Hey, how did you wind up solving this issue?
+1