Issue with Deployment not reflecting updated data

I am experiencing an issue with my project deployment. Although my commits are successfully deployed as usual, the data displayed on the website is not being updated accordingly. I am unsure whether this issue is caused by something on my end or if there is a problem with Vercel’s deployment system.

To clarify:

– When I clone the same repository into another project, the data updates correctly.
– However, in my current Vercel project, the latest deployment does not reflect the expected updates.

Here are the relevant details:

– Project ID: prj_QlD0WdO5pIuu0orgiqTKtaAaeO58.
– Most recent deployment with mismatched data: 2vq17b7j8.
– My website: nhavantuonglai.com.

Could you please help me investigate this issue? I appreciate your assistance.

Hi @nhavantuonglai, thanks for reaching out the community. Can you explain a bit more about the “data” in questions? For example, where is this data coming from, how is it getting updated, which version of Next.js are you using?

It can be related to misconfigured Cache. Have you read through these docs? I’d recommend checking these first.

Thanks @anshumanb for asking, I would like to present more specifically as follows:

The data here is a file from github, every time there is a commit, a change from the file, Vercel automatically deploys. The problem is, after a successful deployment, the new content is not displayed. This happens irregularly, unstable, sometimes the data is updated when deployed, but other times it is not.

Hi @nhavantuonglai, thanks for sharing the details. What version of Next.js are you using?

Sorry but without looking at the code it is hard to suggest more solutions. If you need more help, please share your public repo or a minimal reproducible example. That will let us all work together from the same code to figure out what’s going wrong.

Thanks @anshumanb for your support.

I would like to share my project source code: GitHub - nhavantuonglai/article-open: nhavantuonglai/article is the open-source project for the design and development of the website nhavantuonglai.com. The source code for this project is inherited from Astrowind – an open template that helps build websites quickly and easily in just 5 minutes..

I don’t know exactly where the error occurs, when in the same source code with the same implementation, project A does not have a problem, but project B does, and the probability of the error not updating data to my website is random, not necessarily in one time.

Hi @nhavantuonglai, nice project. Can you share on which particular page the data was stale? The repo is quite large so any debugging you’ve done earlier would help us. Please share as many details as you can.

Hi @anshumanb, the source code I am providing is public source code, and the source code with the bug is private source code, because there is a lot of personal data serving the project, chúng giống nhau hoàn toàn, chỉ là có thêm dữ liệu CMS để hiển thị bài viết. I think I should give you access so you can check, and assess where the current bug is, is that okay?

Hi @nhavantuonglai, sorry but we need a public repository to help you as this is a public forum.

Also, the repository should be a minimal reproducible example. It is too hard to narrow down the bug on such a big project.

1 Like