Dev Helpers
← Back

Missing event recovery

Place this file at app/not-found.tsx in an App Router project.

Open this example in the interactive library

Source code

// app/not-found.tsx

import Link from "next/link";

export default function MissingEventRecovery() {
  return (
    <main>
      <h1>Event not found</h1>
      <nav>
        <Link href="/events">Upcoming events</Link> ·{" "}
        <Link href="/events/archive">Past events</Link>
      </nav>
    </main>
  );
}