Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip: error page
  • Loading branch information
hi-ogawa committed Apr 7, 2024
commit 1f0ae9246da740304a9aa5bc2d80e3935c62fc5f
12 changes: 12 additions & 0 deletions src/routes/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"use client";

import type { ErrorPageProps } from "@hiogawa/react-server/server";

export default function ErrorPage(props: ErrorPageProps) {
return (
<p>
{props.serverError?.status === 404 && "404 Not found"}
{props.serverError?.status !== 404 && "Unexpected Error"}
</p>
);
}