Open lukevella opened 1 year ago
Hey @lukevella i would like to take this up , I would like to discuss the approach with you , do you want the github API directly at the frontend we could create a hook and can use it in the AppVersion Component or else we can create our own API which ping's github api
We should be able to use the github releases api to get the latest version and by comparing it to
NEXT_PUBLIC_APP_VERSION
in the app we can detect whether there are any updates. This will help self-hosters keep there instances up to date.Starting point in the codebase would be here.
If someone picks this up, don't worry about styling. Once we detect that there is a new version we can show an "*" next to the version number to indicate there is a new version.