Files
protocol/sites/dev0x-portal/app/routes/sentry-error.tsx
2023-04-05 11:14:18 +02:00

25 lines
718 B
TypeScript

import { Form } from '@remix-run/react';
import type { ActionArgs } from '@remix-run/server-runtime';
export async function action({ request }: ActionArgs) {
throw new Error('Sentry Error from action');
}
export default function ResetPasswordPage() {
return (
<main className="min-w-screen flex h-full min-h-full w-full flex-col bg-white">
<Form method="post">
<button type="submit">Submit</button>
</Form>
<button
type="button"
onClick={() => {
throw new Error('Sentry Frontend Error');
}}
>
Throw error
</button>
</main>
);
}