2
0

♻️ Improve new version popup polling

Use react-query to trigger the request more intelligently than with a timeout
This commit is contained in:
Baptiste Arnaud
2023-02-27 09:31:11 +01:00
parent d57fb4738d
commit 2fc78a5b7d
4 changed files with 17 additions and 25 deletions

View File

@ -0,0 +1,5 @@
import { publicProcedure } from '@/utils/server/trpc'
export const getAppVersionProcedure = publicProcedure.query(async () => {
return { commitSha: process.env.VERCEL_GIT_COMMIT_SHA }
})