mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-27 02:01:02 -04:00
refactor: register fastify-sentry directly (#50622)
This commit is contained in:
committed by
GitHub
parent
ea3eca975e
commit
30419c2e20
@@ -1,14 +0,0 @@
|
||||
import Sentry, { SentryPluginOptions } from '@immobiliarelabs/fastify-sentry';
|
||||
import { FastifyPluginCallback } from 'fastify';
|
||||
import fp from 'fastify-plugin';
|
||||
|
||||
const fastifySentry: FastifyPluginCallback<SentryPluginOptions> = async (
|
||||
fastify,
|
||||
options
|
||||
) => {
|
||||
await fastify.register(Sentry, options);
|
||||
|
||||
fastify.log.info('Sentry plugin registered');
|
||||
};
|
||||
|
||||
export default fp(fastifySentry);
|
||||
Reference in New Issue
Block a user