I'm suddenly experiencing an issue where my article is showing a 404 error on the production website: test here. However, it's functioning properly on my local environment: https:/localhost/articles/omurice.
Interestingly, some other article pages are working fine, such as:
A 404 error indicates that the server was unable to find a resource so there might be a problem with your queries. Check if the doc is published and not in draft or in a release. Also, make sure to rebuild the project.
Also, empty any caches and confirm that your local environment and the live server are in sync.
Hoping you can get the site up and running shortly!
I wanted to let you know that the previously problematic page with the 404 error is now functioning correctly without any intervention on my part. You can access it at test here.
However, I have encountered a similar issue with a new article I created. Whenever I try to access it, it throws a 404 error. You can find the article at https://www.810228.com/articles/sunday-ice-cream.
I'm curious as to why this consistently happens every time I create an article, and why it takes a few days for the issue to be resolved.
Looking forward your answer shortly
Thanks
Here are my code from pages/articles/[uid].js just in case,
You are correct, Pau. It requires rebuilding the site every time I publish a new post or article. Could you please explain how webhooks can help automate this process? Are there any articles or documentation available that can provide more information?
I am currently using Vercel (Overview - Vercel) to deploy my site from GitHub.