You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Whenever you navigate to a route that a blog post doesn't exist, i.e. http://localhost:3000/blog/does-not-exist then you'll receive a 200 with an under construction page. It should return a 404 since it doesn't exist otherwise Google will continue to index the page.
Describe the bug
Whenever you navigate to a route that a blog post doesn't exist, i.e. http://localhost:3000/blog/does-not-exist then you'll receive a 200 with an under construction page. It should return a 404 since it doesn't exist otherwise Google will continue to index the page.
Solution:
https://nextjs.org/docs/app/api-reference/functions/not-found
Simply import notFound from next/navigation and return that instead of the construction react component.
The text was updated successfully, but these errors were encountered: