Socket
Book a DemoInstallSign in
Socket

@honeybadger-io/gatsby-plugin-honeybadger

Package Overview
Dependencies
Maintainers
8
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honeybadger-io/gatsby-plugin-honeybadger

Gatsby plugin to add Honeybadger error tracking to your site.

6.0.37
latest
Source
npmnpm
Version published
Weekly downloads
28
-50%
Maintainers
8
Weekly downloads
 
Created
Source

@honeybadger-io/gatsby-plugin-honeybadger

Node CI npm version npm dm npm dt

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',
        environment: process.env.NODE_ENV
      }
    }
  ]
}

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.
  • [environment] (String): Current environment. Used to indicate the environment where the error occurred. Optional, defaults to process.env.NODE_ENV.

License

This package is MIT licensed. See the MIT-LICENSE file in this folder for details.

Keywords

gatsby

FAQs

Package last updated on 11 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.