Dev Helpers
← Back

Retired product fallback

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 RetiredProductFallback() {
  return (
    <main>
      <h1>Product unavailable</h1>
      <p>This item may have been retired.</p>
      <Link href="/catalog">Explore the catalog</Link>
    </main>
  );
}