Publish the latest Android version code (#2085)
* feat(website): publish latest Android version code * fix(website): select latest Android APK release
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { createServerFn } from "@tanstack/react-start";
|
||||
import { getWebsiteCacheContext } from "./cloudflare-cache";
|
||||
import { getBlockingColdCache } from "./github-cache";
|
||||
|
||||
interface GitHubRepo {
|
||||
@@ -38,6 +39,7 @@ function isStars(value: unknown): value is string {
|
||||
|
||||
export const getStarCount = createServerFn({ method: "GET" }).handler(async () => {
|
||||
const stars = await getBlockingColdCache({
|
||||
context: getWebsiteCacheContext(),
|
||||
key: STARS_CACHE_KEY,
|
||||
isValue: isStars,
|
||||
fetchFresh: fetchStarCount,
|
||||
|
||||
Reference in New Issue
Block a user