♻️ Improve new version popup polling
Use react-query to trigger the request more intelligently than with a timeout
This commit is contained in:
@ -0,0 +1,5 @@
|
||||
import { publicProcedure } from '@/utils/server/trpc'
|
||||
|
||||
export const getAppVersionProcedure = publicProcedure.query(async () => {
|
||||
return { commitSha: process.env.VERCEL_GIT_COMMIT_SHA }
|
||||
})
|
Reference in New Issue
Block a user