Skip to content

Glossary: Next.js Beyond the Basics

notFound()

A function from next/navigation that shows the 404 page. kc-shop uses it for unknown SKUs and for staff pages shown to non-staff.

Where the book teaches it

Related terms

requireUser and requireStaffStatus code