shellphone.app/app/pages/404.tsx
m5r bdac93d7e1 * custom error component
* upload sourcemaps to sentry
* report caught errors to sentry
2021-09-07 04:49:13 +08:00

22 lines
536 B
TypeScript

import { Head } from "blitz";
import ErrorComponent from "../core/components/error-component";
// ------------------------------------------------------
// This page is rendered if a route match is not found
// ------------------------------------------------------
export default function Page404() {
const statusCode = 404;
const title = "This page could not be found";
return (
<>
<Head>
<title>
{statusCode}: {title}
</title>
</Head>
<ErrorComponent statusCode={statusCode} title={title} />
</>
);
}