sentry error test button in routes /sentryCheck

This commit is contained in:
Verticool 2025-02-18 18:23:47 +06:00
parent fc8e8cba5e
commit e34e65b337
2 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,5 @@
export const Routes = {
Root: "/uploadContent",
ViewContent: "/viewContent",
SentryCheck: "/sentryCheck",
};

View File

@ -7,6 +7,17 @@ import { ViewContentPage } from "~/pages/view-content";
const router = createBrowserRouter([
{ path: Routes.Root, element: <RootPage /> },
{ path: Routes.ViewContent, element: <ViewContentPage /> },
{ path: Routes.SentryCheck, element: <div className="flex justify-center items-center h-screen">
<button
type="button"
className="btn btn-primary p-2 border bg-red-900"
onClick={() => {
throw new Error("Sentry Test Error");
}}
>
Sentry Test Error
</button>
</div> },
]);
export const AppRouter = () => {