feat: check version
This commit is contained in:
@@ -14,7 +14,7 @@ export function useVersionCheckQuery() {
|
||||
const { data: remoteVersionInfo, dataUpdatedAt } = useQuery({
|
||||
queryKey: ['version-check'],
|
||||
queryFn: async () => {
|
||||
const { data } = await axios.get<VersionInfo>(`/version.json?t=${Date.now()}`);
|
||||
const { data } = await axios.get<VersionInfo>(`/manifest.json?t=${Date.now()}`);
|
||||
return data;
|
||||
},
|
||||
refetchInterval: 10 * 1000,
|
||||
|
||||
Reference in New Issue
Block a user