updated sentry export function name
This commit is contained in:
parent
b8e364d9de
commit
d5fe982e3b
|
@ -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();
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue