next.js
next.js copied to clipboard
Docs: Clarify where `notFound()` can be used.
What is the improvement or update you wish to see?
It is unclear where notFound() can be called. Is it safe to use this in a server action for example?
Is there any context that might help us understand?
For reference the redirect() and permanentRedirect() pages state where they can be called.
https://nextjs.org/docs/app/api-reference/functions/permanentRedirect
https://nextjs.org/docs/app/api-reference/functions/redirect
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/app/api-reference/functions/not-found