sentry-hapi

1.0.4 • Public • Published

Sentry-hapi plugin

1. Install the plugin

npm install sentry-hapi

2. create an environment variable called SENTRY_DSN

SENTRY_DSN=https://fake@sentry.yourdomain/

3. create an environment variable called ENV

ENV=production

4. Include the plugin in your Hapi project

await server.register({ plugin: require('sentry-hapi') });

5. Configure options

you can configure custom options of this plugin

Name Type Default Description
report404 Boolean true send report of 404 happening

6. Enjoy debugging your application

/sentry-hapi/

    Package Sidebar

    Install

    npm i sentry-hapi

    Weekly Downloads

    120

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    2.5 kB

    Total Files

    3

    Last publish

    Collaborators

    • capaio