mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
remove sentry integration, fix linting issues
This commit is contained in:
@ -1,35 +1,9 @@
|
||||
import * as Sentry from "@sentry/react";
|
||||
import { StrictMode, useEffect } from "react";
|
||||
import { StrictMode } from "react";
|
||||
import * as ReactDOM from "react-dom/client";
|
||||
import {
|
||||
createRoutesFromChildren,
|
||||
matchRoutes,
|
||||
RouterProvider,
|
||||
useLocation,
|
||||
useNavigationType,
|
||||
} from "react-router-dom";
|
||||
import { RouterProvider } from "react-router-dom";
|
||||
|
||||
import { router } from "./router";
|
||||
|
||||
if (import.meta.env.VITE_CLIENT_SENTRY_DSN) {
|
||||
Sentry.init({
|
||||
dsn: import.meta.env.VITE_CLIENT_SENTRY_DSN,
|
||||
integrations: [
|
||||
Sentry.reactRouterV6BrowserTracingIntegration({
|
||||
useEffect,
|
||||
matchRoutes,
|
||||
useLocation,
|
||||
useNavigationType,
|
||||
createRoutesFromChildren,
|
||||
}),
|
||||
Sentry.replayIntegration(),
|
||||
],
|
||||
tracesSampleRate: 1,
|
||||
replaysOnErrorSampleRate: 1,
|
||||
replaysSessionSampleRate: 1,
|
||||
});
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const root = ReactDOM.createRoot(document.querySelector("#root")!);
|
||||
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import * as Sentry from "@sentry/react";
|
||||
import { createBrowserRouter, createRoutesFromElements, Navigate, Route } from "react-router-dom";
|
||||
|
||||
import { BackupOtpPage } from "../pages/auth/backup-otp/page";
|
||||
@ -93,6 +92,4 @@ export const routes = createRoutesFromElements(
|
||||
</Route>,
|
||||
);
|
||||
|
||||
const sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouter(createBrowserRouter);
|
||||
|
||||
export const router = sentryCreateBrowserRouter(routes);
|
||||
export const router = createBrowserRouter(routes);
|
||||
|
||||
2
apps/client/src/vite-env.d.ts
vendored
2
apps/client/src/vite-env.d.ts
vendored
@ -5,8 +5,6 @@
|
||||
declare const appVersion: string;
|
||||
|
||||
interface ImportMetaEnv {
|
||||
SENTRY_AUTH_TOKEN: string | undefined;
|
||||
VITE_CLIENT_SENTRY_DSN: string | undefined;
|
||||
VITE_DISABLE_SIGNUPS: string | undefined;
|
||||
}
|
||||
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
|
||||
import { lingui } from "@lingui/vite-plugin";
|
||||
import { nxViteTsPaths } from "@nx/vite/plugins/nx-tsconfig-paths.plugin";
|
||||
import { sentryVitePlugin } from "@sentry/vite-plugin";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig, searchForWorkspaceRoot } from "vite";
|
||||
|
||||
@ -40,11 +39,6 @@ export default defineConfig({
|
||||
}),
|
||||
lingui(),
|
||||
nxViteTsPaths(),
|
||||
sentryVitePlugin({
|
||||
disable: process.env.SENTRY_AUTH_TOKEN === undefined,
|
||||
org: "reactive-resume",
|
||||
project: "client",
|
||||
}),
|
||||
],
|
||||
|
||||
test: {
|
||||
|
||||
Reference in New Issue
Block a user