Hardcode the number of stars on dev

astro
Kamran Ahmed 2 years ago
parent c1e8c0361b
commit 40ddeef742
  1. 4
      src/lib/github.ts

@ -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);

Loading…
Cancel
Save