Skip to content
Nuxt.js module for Rollbar
Branch: develop
Clone or download
Latest commit 12092ff Jan 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci feat(module): Add starter Sep 6, 2018
lib
test tests(module): Improve test coverage Sep 7, 2018
.editorconfig feat(module): Add starter Sep 6, 2018
.env.default chore(module): Add default dotenv file Sep 7, 2018
.eslintrc.js
.gitignore chore(module): Add default dotenv file Sep 7, 2018
LICENSE docs(readme): Update usage Sep 7, 2018
README.md docs(readme): Improve setup content Sep 7, 2018
package-lock.json chore(version): Hotfix Jan 23, 2019
package.json chore(version): Hotfix Jan 23, 2019

README.md

nuxt-rollbar-module

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

Rollbar module for NuxtJS

Setup

  • Add nuxt-rollbar-module dependency using yarn or npm to your project
npm install --save nuxt-rollbar-module
yarn add nuxt-rollbar-module
  • Add nuxt-rollbar-module to modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    'nuxt-rollbar-module',

    // With options
    ['nuxt-rollbar-module', {
      serverAccessToken: 'YOUR_ROLLBAR_SERVER_TOKEN',
      clientAccessToken: 'YOUR_ROLLBAR_CLIENT_TOKEN',
      config: {
        // Addtional config
      }
    }],
 ]
}

Usage

Enter your project access tokens in the NuxtJS config file. See Rollbar javascript documentation for options.

Usage in Vue

Vue.rollbar.debug('Yohyo!');
// or in a vue component
this.rollbar.debug('Yohyo!');

Options

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using npm run dev

License

MIT License

Copyright (c) Gaël Reyrol me@gaelreyrol.com

You can’t perform that action at this time.