# frozen_string_literal: true

Rollbar.configure do |config|
  config.access_token = ENV['ROLLBAR_ACCESS_TOKEN']
  config.enabled = false unless Rails.env.production?
  config.environment = ENV['ROLLBAR_ENV'].presence || Rails.env

  config.js_enabled = true if Rails.env.production?
  config.js_options = {
    accessToken: ENV['ROLLBAR_ACCESS_TOKEN'],
    captureUncaught: true,
    payload: {
      environment: ENV['ROLLBAR_ENV'].presence || Rails.env
    }
  }
end

# frozen_string_literal: true

Rollbar.configure do |config|
  config.access_token = ENV['ROLLBAR_ACCESS_TOKEN']
  config.enabled = false unless Rails.env.production?
  config.environment = ENV['ROLLBAR_ENV'].presence || Rails.env
end

Disable Rollbaar JavaScript catch feature
Disable Rollbaar JavaScript catch feature
