A plugin for Strapi to track Strapi errors with Rollbar.
The installation requirements are the same as Strapi itself and can be found in the documentation on the Quick Start page in the Prerequisites info card.
- v4.x.x
NOTE: While this plugin may work with the older Strapi versions, they are not supported, it is always recommended to use the latest version of Strapi.
property | type (default) | description |
---|---|---|
accessToken |
string (null ) |
Your Rollbar POST Server Access Token (see Rollbar docs). |
init |
object ({} ) |
A config object that is merge in with the default new Rollbar() settings. See all available options on Rollbar's docs |
Example
./config/plugins.js
module.exports = ({ env }) => ({
// ...
rollbar: {
enabled: true,
config: {
accessToken: env('ROLLBAR_ACCESS_TOKEN'),
},
},
// ...
});
Based on the official Strapi Sentry Plugin