Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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` |