Replies: 1 comment 1 reply
-
After I click Vecel Dashboard -> Settings -> Data Cache -> Purge Everything, the document count can be refresh to correct value. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I have a simple Next.js application that exposes a REST API to get the count of Mongo documents. It works fine locally, but when deployed on Vercel, it always returns stale count numbers. Redeploying the application refreshes the count. While fetching document content works correctly, the count always shows outdated data.
I’m unsure where the count might be cached. Additionally, when I add console.log statements for debugging, I can't view the logs in the Vercel Dashboard (as reported in this GitHub discussion).
Can anyone provide any insights or clues about this issue? Thank you1
Below is the related code:
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions