import * as Pino from 'hapi-pino' ; import * as JWT from 'hapi-auth-jwt2' ; import * as Sentry from 'hapi-sentry' ; import { SENTRY_DSN } from '@notification/constants' ; import { logger } from '@notification/logger' ; export default function getPlugins ( ) { const plugins = [ JWT , { plugin : Pino , options : { prettyPrint : false , logPayload : false , instance : logger } } , { plugin : Sentry , options : { client : { environment : process . env . NODE_ENV , dsn : SENTRY_DSN } , catchLogErrors : true } } ] ; return plugins ; }