2022-02-27 06:17:52 +00:00
|
|
|
import "../styles/globals.css";
|
|
|
|
|
2022-08-29 05:19:01 +00:00
|
|
|
import * as Sentry from "@sentry/nextjs";
|
2022-02-27 06:17:52 +00:00
|
|
|
import { Provider } from "react-redux";
|
|
|
|
import type { AppProps } from "next/app";
|
2022-08-29 04:48:03 +00:00
|
|
|
import LogRocket from "logrocket";
|
2022-08-29 05:19:01 +00:00
|
|
|
import setupLogRocketReact from "logrocket-react";
|
2022-02-27 06:17:52 +00:00
|
|
|
|
|
|
|
import store from "../lib/store";
|
2022-01-14 04:24:18 +00:00
|
|
|
|
2022-08-30 02:05:59 +00:00
|
|
|
LogRocket.init(process.env.LOGROCKET_ID || "0tlgj3/modmapper");
|
2022-08-29 05:19:01 +00:00
|
|
|
if (typeof window !== "undefined") setupLogRocketReact(LogRocket);
|
|
|
|
|
|
|
|
LogRocket.getSessionURL((sessionURL) => {
|
|
|
|
Sentry.configureScope((scope) => {
|
|
|
|
scope.setExtra("sessionURL", sessionURL);
|
|
|
|
});
|
|
|
|
});
|
2022-08-29 04:48:03 +00:00
|
|
|
|
2022-01-14 04:24:18 +00:00
|
|
|
function MyApp({ Component, pageProps }: AppProps) {
|
2022-02-27 06:17:52 +00:00
|
|
|
return (
|
|
|
|
<Provider store={store}>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</Provider>
|
|
|
|
);
|
2022-01-14 04:24:18 +00:00
|
|
|
}
|
|
|
|
|
2022-02-27 06:17:52 +00:00
|
|
|
export default MyApp;
|