Add logrocket integrations

This commit is contained in:
2022-08-29 01:19:01 -04:00
parent 28c50a56f1
commit 5f196b0651
5 changed files with 80 additions and 2 deletions

View File

@@ -1,12 +1,21 @@
import "../styles/globals.css";
import * as Sentry from "@sentry/nextjs";
import { Provider } from "react-redux";
import type { AppProps } from "next/app";
import LogRocket from "logrocket";
import setupLogRocketReact from "logrocket-react";
import store from "../lib/store";
LogRocket.init("0tlgj3/modmapper");
if (typeof window !== "undefined") setupLogRocketReact(LogRocket);
LogRocket.getSessionURL((sessionURL) => {
Sentry.configureScope((scope) => {
scope.setExtra("sessionURL", sessionURL);
});
});
function MyApp({ Component, pageProps }: AppProps) {
return (