mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
website: use a pre-defined GitHub stargazers count outside of SSR
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
export const FALLBACK_STARGAZERS_COUNT = 31862; // The count as of 2025-10-03
|
||||
|
||||
const API_URL = "https://api.github.com/repos/TriliumNext/Trilium";
|
||||
|
||||
/** Returns the number of stargazers of the Trilium's GitHub repository. */
|
||||
@@ -11,5 +13,5 @@ export async function getRepoStargazersCount() {
|
||||
}
|
||||
}
|
||||
|
||||
return 31862; // The count as of 2025-10-03
|
||||
return FALLBACK_STARGAZERS_COUNT;
|
||||
}
|
||||
Reference in New Issue
Block a user