Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 664 Bytes

instructions.md

File metadata and controls

29 lines (20 loc) · 664 Bytes

Registering provider

Like any other provider, you need to register the provider inside start/app.js file.

const providers = [
  'adonisjs-bugsnag/providers/BugSnagProvider'
]

Registering middleware

Register the following middleware inside start/kernel.js file. Place the bugsnag middleware after the 'Adonis/Middleware/AuthInit' middleware

const globalMiddleware = [
  ...
  'Adonis/Middleware/AuthInit',
  'Adonis/Middleware/BugSnagUser'
]

Config

The configuration is saved inside config/bugsnag.js file. Tweak it accordingly.

Docs

To find out more, read the docs here.