Add Sentry to client for error handling (#43920)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import { Handlers } from '@sentry/node';
|
||||
import { sentry } from '../../../../config/secrets';
|
||||
|
||||
export default function sentryRequestHandler() {
|
||||
return sentry.dns === 'dsn_from_sentry_dashboard'
|
||||
return sentry.dsn === 'dsn_from_sentry_dashboard'
|
||||
? (req, res, next) => next()
|
||||
: Handlers.requestHandler();
|
||||
}
|
||||
|
Reference in New Issue
Block a user