sentry error test button in routes /sentryCheck
This commit is contained in:
parent
fc8e8cba5e
commit
e34e65b337
|
|
@ -1,4 +1,5 @@
|
||||||
export const Routes = {
|
export const Routes = {
|
||||||
Root: "/uploadContent",
|
Root: "/uploadContent",
|
||||||
ViewContent: "/viewContent",
|
ViewContent: "/viewContent",
|
||||||
|
SentryCheck: "/sentryCheck",
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,17 @@ import { ViewContentPage } from "~/pages/view-content";
|
||||||
const router = createBrowserRouter([
|
const router = createBrowserRouter([
|
||||||
{ path: Routes.Root, element: <RootPage /> },
|
{ path: Routes.Root, element: <RootPage /> },
|
||||||
{ path: Routes.ViewContent, element: <ViewContentPage /> },
|
{ 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 = () => {
|
export const AppRouter = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue