@halfest/umi-plugin-sentry
v0.1.5
Published
umi plugin for sentry
Downloads
6
Maintainers
Readme
umi-plugin-sentry
Umi plugin for sentry.
Install
yarn add --dev umi-plugin-sentry # OR npm install --save-dev umi-plugin-sentry
Use
Just setup the plugin on .umirc.js
export default {
plugins: [
// ...
['umi-plugin-sentry', options],
// ...
],
}
Options
| name | type | default |
|------------------------------------|----------------------------------|----------------------------------------------|
| dsn | string (required in production) | process.env.SENTRY_DSN
|
| log (log to console before send) | boolean (optional) | NODE_ENV === 'development' ? true : false
|
| environment | string (optional) | `` |