Socket
Book a DemoInstallSign in
Socket

@nuxtjs/sentry

Package Overview
Dependencies
Maintainers
5
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/sentry

Sentry module for Nuxt.js

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
38K
-24.06%
Maintainers
5
Weekly downloads
 
Created
Source

@nuxtjs/sentry

npm (scoped with tag) npm CircleCI Codecov Dependencies js-standard-style

Sentry module for Nuxt.js

Features

The module enables error logging through Sentry.

Setup

  • Add @nuxtjs/sentry dependency using yarn or npm to your project
  • Add @nuxtjs/sentry to modules section of nuxt.config.js
{
  modules: [
    '@nuxtjs/sentry',
  ],

  sentry: {
      public_key: '',
      private_key: '',
      project_id: '',
      config: {
        // Additional config
      },
    }
}

Nuxt compatibility

Make sure you use a version of Nuxt either prior to v1.0.0 or after v1.2.1.

Usage

Enter your DSN in the NuxtJS config file. Additional config settings can be found here.

Options

Options can be passed using either environment variables or sentry section in nuxt.config.js. Normally setting required DSN information would be enough.

dsn

  • Type: String
    • Default: process.env.SENTRY_DSN

public_dsn

  • Type: String
    • Default: process.env.SENTRY_PUBLIC_DSN

If value omitted it will be generated using dsn value, by removing private key part.

public_key

  • Type: String
    • Default: process.env.SENTRY_PUBLIC_KEY

Will be ignored if dsn provided.

private_key

  • Type: String
    • Default: process.env.SENTRY_PRIVATE_KEY

Will be ignored if dsn provided.

host

  • Type: String
    • Default: process.env.SENTRY_HOST || 'sentry.io'

Will be ignored if dsn provided.

protocol

  • Type: String
    • Default: process.env.SENTRY_PROTOCOL || 'https'

Will be ignored if dsn provided.

project_Id

  • Type: String
    • Default: process.env.SENTRY_PROJECT_ID || ''

Will be ignored if dsn provided.

path

  • Type: String
    • Default: process.env.SENTRY_PATH || '/'

Will be ignored if dsn provided.

disableClientSide

  • Type: Boolean
    • Default: process.env.SENTRY_DISABLE_CLIENT_SIDE || false

License

MIT License

Copyright (c) Diederik van den Burger diederik@webrelated.nl

FAQs

Package last updated on 22 Mar 2018

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