mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-09-01 13:22:38 +02:00
Hardcode the number of stars on dev
This commit is contained in:
@@ -14,6 +14,10 @@ export async function countStars(
|
|||||||
export async function getFormattedStars(
|
export async function getFormattedStars(
|
||||||
repo = 'kamranahmedse/developer-roadmap'
|
repo = 'kamranahmedse/developer-roadmap'
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
|
if (import.meta.env.DEV) {
|
||||||
|
return '223k';
|
||||||
|
}
|
||||||
|
|
||||||
const stars = await countStars(repo);
|
const stars = await countStars(repo);
|
||||||
|
|
||||||
return formatter.format(stars);
|
return formatter.format(stars);
|
||||||
|
Reference in New Issue
Block a user