Commit 165f289b authored by tom's avatar tom

[skip ci] don't send "Page not found" events to Rollbar

parent e529efa6
......@@ -4,19 +4,12 @@ import type { NextPageWithLayout } from 'nextjs/types';
import PageNextJs from 'nextjs/PageNextJs';
import { useRollbar } from 'lib/rollbar';
import AppError from 'ui/shared/AppError/AppError';
import LayoutError from 'ui/shared/layout/LayoutError';
const error = new Error('Not found', { cause: { status: 404 } });
const Page: NextPageWithLayout = () => {
const rollbar = useRollbar();
React.useEffect(() => {
rollbar?.error('Page not found');
}, [ rollbar ]);
return (
<PageNextJs pathname="/404">
<AppError error={ error }/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment