How does the dashboard check it's own version
how do you guys do this in the dashboard? do you use a serviceworker? I'm thinking about implementing this for my app so when i deploy schema changes in the DB the clients (Next.js) will be in sync

4 Replies
The Convex dashboard is deployed on Vercel, and I reverse-engineered one of their undocumented APIs to figure out whether the deployment you're currently viewing is the latest production deployment. The check is exposed via a Vercel function that the dashboard polls to check for new versions
I have a private git repo that demos how to do this, I can clean it up a bit and share a link if you're interested in seeing the implementation
here's the code https://github.com/atrakh/vercel-version-notifications
GitHub
GitHub - atrakh/vercel-version-notifications
Contribute to atrakh/vercel-version-notifications development by creating an account on GitHub.
this is very helpful, thanks a lot
Thanks a ton wanted to implement the same