Skip to content

Glossary: Next.js Basics

notFound()

A function from `next/navigation` that stops a page and shows the nearest `not-found.js`. Use it when the URL is fine but nothing exists there, such as an unknown SKU.

Where the book teaches it

Related terms

not-found.js