Replies: 5 comments 4 replies
-
Hi, this is just not implemented yet. 👍 |
Beta Was this translation helpful? Give feedback.
-
Are there any issues tracking this yet? |
Beta Was this translation helpful? Give feedback.
-
I think the canonical solution here is to use
from the docs : https://nextjs.org/docs/app/api-reference/functions/generate-metadata#returns |
Beta Was this translation helpful? Give feedback.
-
Another issue is that any server error will not return a 500, but always a 200. I guess there's not really a fix as it's just how streaming works, but I wanted to add this here as a good-to-know. In my opinion, this feature request should be re-opened. |
Beta Was this translation helpful? Give feedback.
-
Hi! Is there any updates or plans to integrate in future versions? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
Referencing this discussion on the documentation https://beta.nextjs.org/docs/api-reference/notfound#thread-id=qPXdO, when we use
notFound
on a server component and inspect the result on google bot or a simple crawler the response returned is a200 OK
, while it should maybe return a404
.Describe the solution you'd like
Before serving the request, Nextjs could inspect the user-agent of the request and if the agent cannot support streaming :
notFound
should return a404 Not Found
response coderedirect
should return a302 Found
response codeDescribe alternatives you've considered
No alternatives yet.
Beta Was this translation helpful? Give feedback.
All reactions