Issues with Rollbar Implementation in Deploy

Hello everyone!

I’m trying to implement the Rollbar in my project and it doesn’t seem to be working on deploy preview link, only locally. In the deploy preview, it doesn’t even send any request to Rollbar. My environment variables are properly set in netlify.

Is there any special configuration I should make because of netlify?

Here are my current configs for the rollbar lib:

const rollbarConfig = {
accessToken: process.env.NEXT_PUBLIC_ROLLBAR_CLIENT_TOKEN,
environment: process.env.NEXT_PUBLIC_ROLLBAR_ENV,
captureUncaught: true,
captureUnhandledRejections: true,
}

Thats pretty much it… so if anyone can help me on this, I’d be super glad!

Any way to reproduce this issue?