npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

@honeybadger-io/gatsby-plugin-honeybadger

0.1.2 • Public • Published

@honeybadger-io/gatsby-plugin-honeybadger

Gatsby plugin to add Honeybadger error tracking to your site.

Install

npm install --save @honeybadger-io/gatsby-plugin-honeybadger

How to use

Add your API key in the plugin options in gatsby-config.js:

// gatsby-config.js
module.exports = {
  plugins: [
    resolve: `@honeybadger-io/gatsby-plugin-honeybadger`,
    options: {
      apiKey: 'YOUR_API_KEY',
      revision: `${Date.now()}`,
      assetsUrl: 'https://foobar.com/assets'
    }
  ]
}

Options

  • [apiKey] (String): the API key of your Honeybadger project.
  • [revision] (String): gatsby-plugin-honeybadger uses honeybadger-webpack to upload source maps to Honeybadger. options.revision needs to be unique as it is the identifier that connects your errors to your source maps.
  • [assetsURL] (String): The base URL to production assets (scheme://host/path). Used to grab source maps.

install

npm i @honeybadger-io/gatsby-plugin-honeybadger

Downloadsweekly downloads

1

version

0.1.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability