feat(sentry): remove sentry integration

This commit is contained in:
Amruth Pillai
2022-12-16 14:34:15 +01:00
parent 9af9a0284e
commit bf41aa9c6c
24 changed files with 1049 additions and 1538 deletions

View File

@ -1,14 +0,0 @@
import * as Sentry from '@sentry/nextjs';
import type { NextPage } from 'next';
import type { ErrorProps } from 'next/error';
import NextErrorComponent from 'next/error';
const CustomErrorComponent: NextPage<ErrorProps> = (props) => <NextErrorComponent statusCode={props.statusCode} />;
CustomErrorComponent.getInitialProps = async (contextData) => {
await Sentry.captureUnderscoreErrorException(contextData);
return NextErrorComponent.getInitialProps(contextData);
};
export default CustomErrorComponent;