Socket
Socket
Sign inDemoInstall

@hashicorp/platform-runtime-error-monitoring

Package Overview
Dependencies
3
Maintainers
22
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hashicorp/platform-runtime-error-monitoring

Utilities for catching runtime errors for HashiCorp next.js websites


Version published
Weekly downloads
5.5K
increased by16.57%
Maintainers
22
Install size
0.974 MB
Created
Weekly downloads
 

Readme

Source

@hashicorp/platform-runtime-error-monitoring

Utilities and tools for handling and reporting on runtime errors.

Bugsnag Configuration

It's nice and easy to set up Bugsnag with the central config in nextjs-scripts. To pull down and initialize the client, you can import it as such:

import Bugsnag from '@hashicorp/platform-runtime-error-monitoring'

Just make sure that you have defined BUGSNAG_CLIENT_KEY and BUGSNAG_SERVER_KEY as environment variables. It requires two keys because nextjs can render javascript on the client and server, and will interact with the service differently depending on the environment. The first time this import runs, the client will be initialized.

If you want to just pull down the ErrorBoundary component, this can be imported directly as such:

import { ErrorBoundary } from '@hashicorp/platform-runtime-error-monitoring'

FAQs

Last updated on 14 Jul 2021

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc