chore: updates types and readme
This commit is contained in:
@@ -16,9 +16,9 @@ This plugin seamlessly integrates [Sentry](https://sentry.io/) with [Payload](ht
|
||||
|
||||
1. Import `sentry` from `'@payloadcms/plugin-sentry'`
|
||||
2. Add it to the `plugins` array of your [Payload config](https://payloadcms.com/docs/configuration/overview)
|
||||
3. Pass in your Data Source Name (DSN)
|
||||
3. Pass in your Data Source Name (DSN)
|
||||
4. Pass [additional options](#additional-options) - *not required*
|
||||
|
||||
|
||||
```js
|
||||
import { buildConfig } from 'payload/config';
|
||||
import sentry from '@payloadcms/plugin-sentry';
|
||||
@@ -48,6 +48,10 @@ export default config;
|
||||
|
||||
### Additional Options
|
||||
|
||||
- `enabled`: boolean | optional
|
||||
|
||||
Set to false to disable the plugin. Defaults to true.
|
||||
|
||||
- `init` : ClientOptions | optional
|
||||
|
||||
Sentry allows a variety of options to be passed into the Sentry.init() function, see the full list of options [here](https://docs.sentry.io/platforms/node/guides/express/configuration/options).
|
||||
|
||||
Reference in New Issue
Block a user