Skip to content

Commit 0b78c7d

Browse files
committed
wip: return 404 for not-found routes
1 parent d0cb014 commit 0b78c7d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client/src/routes/catchall.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import AppRoot from "~/index";
22

3+
import { data } from "react-router";
4+
5+
export async function loader() {
6+
return data({}, 404);
7+
}
8+
39
export default function Component() {
410
return <AppRoot />;
511
}

0 commit comments

Comments
 (0)