37 lines
1.3 KiB
JavaScript
37 lines
1.3 KiB
JavaScript
//import LogRocket from "logrocket";
|
|
import React from "react";
|
|
import ReactDOM from "react-dom/client";
|
|
import { Provider } from "react-redux";
|
|
import { MemoryRouter } from "react-router-dom";
|
|
import { PersistGate } from "redux-persist/integration/react";
|
|
import App from "./App/App";
|
|
import "./index.css";
|
|
import { persistor, store } from "./redux/store";
|
|
|
|
import * as Sentry from "@sentry/electron";
|
|
|
|
Sentry.init({
|
|
dsn: "https://9840e0f304124299e379d9347e12d2e6@o492140.ingest.sentry.io/4505728058523648",
|
|
integrations: [new Sentry.BrowserTracing()],
|
|
tracesSampleRate: 1.0,
|
|
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled
|
|
tracePropagationTargets: ["localhost", "https://db.rps.imex.online"],
|
|
ignoreErrors: [
|
|
"SimpleURLLoaderWrapper",
|
|
"Cannot read properties of null (reading 'webContents')",
|
|
"EBUSY: resource busy or locked"
|
|
]
|
|
});
|
|
//if (process.env.NODE_ENV === "production") LogRocket.init("imex/rps");
|
|
|
|
ReactDOM.createRoot(document.getElementById("root")).render(
|
|
<Provider store={store}>
|
|
<MemoryRouter>
|
|
<PersistGate persistor={persistor}>
|
|
<App />
|
|
</PersistGate>
|
|
</MemoryRouter>
|
|
</Provider>
|
|
);
|
|
console.log("Connecting to endpoint: ", import.meta.env.VITE_APP_GRAPHQL_ENDPOINT);
|