Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemol/umi-plugin-sentry
umi plugin for sentry
https://github.com/lemol/umi-plugin-sentry
plugin react sentry umijs
Last synced: about 6 hours ago
JSON representation
umi plugin for sentry
- Host: GitHub
- URL: https://github.com/lemol/umi-plugin-sentry
- Owner: lemol
- License: mit
- Created: 2018-11-28T16:23:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T23:15:56.000Z (almost 5 years ago)
- Last Synced: 2024-04-25T05:21:24.515Z (7 months ago)
- Topics: plugin, react, sentry, umijs
- Language: JavaScript
- Size: 84 KB
- Stars: 10
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# umi-plugin-sentry
[![NPM version](https://img.shields.io/npm/v/umi-plugin-sentry.svg?style=flat)](https://npmjs.org/package/umi-plugin-sentry)
Umi plugin for sentry.
## Install
```bash
yarn add --dev umi-plugin-sentry # OR npm install --save-dev umi-plugin-sentry
```## Use
Just setup the plugin on `.umirc.js`
```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` |