modmapper-web/pages/_app.tsx

26 lines
570 B
TypeScript
Raw Normal View History

2022-08-30 02:51:12 +00:00
import "../lib/logrocketSetup";
2022-02-27 06:17:52 +00:00
import "../styles/globals.css";
2022-08-30 02:51:12 +00:00
import LogRocket from "logrocket";
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 store from "../lib/store";
2022-01-14 04:24:18 +00:00
2022-08-29 05:19:01 +00:00
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;