hard20 pts · first answer countsnextjsstreaming-ssrseo
404 page returns status 200
A Next.js product page wraps the product lookup in a Suspense boundary, and that component calls notFound() for unknown IDs. Users see the 404 UI, but crawlers get HTTP 200. Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Where to keep a secret keyFull Stack Developer
- useState in an App Router pageFull Stack Developer
- Renaming a secret to NEXT_PUBLIC_Full Stack Developer
- Server Components and the databaseFull Stack Developer
- Hiding the button is not authFull Stack Developer
- Old title after savingFull Stack Developer
- Changed env var, old value in browserFull Stack Developer
- Relative fetch on the serverFull Stack Developer