updated sentry export function name

This commit is contained in:
Abhinav-grd 2021-03-08 18:14:07 +05:30
parent b8e364d9de
commit d5fe982e3b
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ import 'photoswipe/dist/photoswipe.css';
import localForage from 'localforage';
import UploadButton from 'pages/gallery/components/UploadButton';
import FullScreenDropZone from 'components/FullScreenDropZone';
import { init } from '../utils/sentry';
import { sentryInit } from '../utils/sentry';
import { runningInBrowser } from 'utils/common/utilFunctions';
if (runningInBrowser()) {
@ -150,7 +150,7 @@ const FlexContainer = styled.div`
margin: 16px;
`;
init();
sentryInit();
export default function App({ Component, pageProps, err }) {
const router = useRouter();
const [user, setUser] = useState();

View file

@ -1,7 +1,7 @@
import * as Sentry from '@sentry/node';
import { RewriteFrames, CaptureConsole } from '@sentry/integrations';
export const init = () => {
export const sentryInit = () => {
if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
const integrations = [];
if (