import { notFound } from "next/navigation";

/**
 * This page never renders anything of its own, so there is nothing for the instant-navigation check to validate:
 * without this, dev shows "Could not validate `instant` because an error prevented the target segment from rendering".
 * (Not a way to hide the "URL data" warning on real pages — those use <Suspense>, see AGENTS.md.)
 */
export const instant = false;

/**
 * Catches every URL that no other page matches (e.g. /ar/anything) and shows app/[lang]/not-found.tsx,
 * so unknown links get the site's own "page not found" inside the normal layout, in the right language.
 */
export default function MissingPage() {
  notFound();
}
