rollbar.js icon indicating copy to clipboard operation
rollbar.js copied to clipboard

2 environment

Open thepatrykk opened this issue 9 years ago • 2 comments

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.

thepatrykk avatar Jun 02 '17 14:06 thepatrykk

Hey, how did you wind up solving this issue?

mikecharles avatar Jan 04 '18 21:01 mikecharles

+1

asoong avatar Mar 27 '18 18:03 asoong