Revalidate not handling 404

I created revalidate endpoint and we are facing one issue with res.revalidate.
I am using dynamic route [[…page]].tsx and CMS behind it.

Is there a way to detect if res.revalidate{path) responded with 404?
Currently we are getting 200 status.

Here is the documentation I followed:

Hi, @greg-orjan!

Could you share the error / any logs with us? It’d help us point you in the right direction. :smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.