remove sentry

This commit is contained in:
focp212@naver.com
2025-11-10 11:08:26 +09:00
parent 24d0b38e5e
commit 916a3b4344
18 changed files with 36 additions and 369 deletions

View File

@@ -1,4 +1,3 @@
import * as Sentry from '@sentry/react';
import { OverlayProvider } from 'overlay-kit';
import { lazy } from 'react';
import {
@@ -15,8 +14,6 @@ import { SubLayout } from '@/widgets/sub-layout';
import { ROUTE_NAMES } from '@/shared/constants/route-names';
import { toCamelCase } from '@/shared/lib/to-camel-case';
const sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV6(createBrowserRouter);
const modules = import.meta.glob('~/pages/**/*.tsx');
const lazyLoad = (path: string) => {
@@ -47,13 +44,12 @@ const XkeypadPage = lazyLoad('/src/pages/xkeypad/xkeypad-page');
const XkeypadSample = lazyLoad('/src/pages/xkeypad/xkeypad-sample');
const TaxInvoicePages = lazyLoad('/src/pages/tax-invoice/tax-invoice-pages');
export const SentryRoutes = Sentry.withSentryReactRouterV6Routing(Routes);
const Pages = () => {
return (
<OverlayProvider>
<GlobalAPIErrorBoundary>
<AppChildren />
<SentryRoutes>
<Routes>
<Route element={<SubLayout />}>
<Route element={<ProtectedRoute />}>
<Route path={ROUTE_NAMES.home} element={<HomePage />} />
@@ -73,13 +69,13 @@ const Pages = () => {
</Route>
<Route path="*" element={<NotFoundError />} />
</Route>
</SentryRoutes>
</Routes>
</GlobalAPIErrorBoundary>
</OverlayProvider>
);
};
export const router = sentryCreateBrowserRouter([
export const router = createBrowserRouter([
{
path: '/',
element: <Navigate to={ROUTE_NAMES.home} />,