1.0.4 • Published 3 years ago
sentry-hapi v1.0.4
Sentry-hapi plugin
1. Install the plugin
npm install sentry-hapi2. create an environment variable called SENTRY_DSN
SENTRY_DSN=https://fake@sentry.yourdomain/3. create an environment variable called ENV
ENV=production4. 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 |