Gorka Cesium
Gorka Cesium8mo ago

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
No description
4 Replies
ari
ari8mo ago
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
ari
ari8mo ago
GitHub
GitHub - atrakh/vercel-version-notifications
Contribute to atrakh/vercel-version-notifications development by creating an account on GitHub.
Gorka Cesium
Gorka CesiumOP8mo ago
this is very helpful, thanks a lot
Abhishek
Abhishek8mo ago
Thanks a ton wanted to implement the same

Did you find this page helpful?