modmapper-web/pages/_app.tsx

29 lines
693 B
TypeScript
Raw Normal View History

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";
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
LogRocket.init("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-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;