1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-31 04:59:50 +02:00

Hardcode the number of stars on dev

This commit is contained in:
Kamran Ahmed
2023-01-03 00:28:53 +04:00
parent c1e8c0361b
commit 40ddeef742

View File

@@ -14,6 +14,10 @@ export async function countStars(
export async function getFormattedStars(
repo = 'kamranahmedse/developer-roadmap'
): Promise<string> {
if (import.meta.env.DEV) {
return '223k';
}
const stars = await countStars(repo);
return formatter.format(stars);