pr_01m47d24b0e6n91zwymwxg0vpx/apps/web/app/routes/not-found.tsx

14 lines394 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Webhooks: every event, to your own addresses, signed and retried1import { data } from "react-router";
2
3/**
4 * Any address no other route matches. Throwing the 404 from a route, rather
5 * than leaving the router to, means the root loader still runs, so someone
6 * signed in sees the page in their own sidebar and not the public frame.
7 */
8export function loader() {
9 throw data(null, { status: 404 });
10}
11
12export default function NotFound() {
13 return null;
14}