1.1.0 • Published 4 years ago

gatsby-plugin-rollbar v1.1.0

Weekly downloads
2,078
License
MIT
Repository
github
Last release
4 years ago

gatsby-plugin-rollbar

Gatsby plugin to add Rollbar error tracking to your site.

Learn more about Rollbar here.

Install

npm install --save gatsby-plugin-rollbar

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: "gatsby-plugin-rollbar",
    options: {
      accessToken: "YOUR_ROLLBAR_ACCESS_TOKEN",
      // For all configuration options, see https://docs.rollbar.com/docs/rollbarjs-configuration-reference
      captureUncaught: true,
      captureUnhandledRejections: true,
      payload: {
        environment: "production"
      }
    }
  }
];