From 40ddeef7427a7914d88394e592215a69c1813f65 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 3 Jan 2023 00:28:53 +0400 Subject: [PATCH] Hardcode the number of stars on dev --- src/lib/github.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/github.ts b/src/lib/github.ts index c8d2d85c9..52eff3d6a 100644 --- a/src/lib/github.ts +++ b/src/lib/github.ts @@ -14,6 +14,10 @@ export async function countStars( export async function getFormattedStars( repo = 'kamranahmedse/developer-roadmap' ): Promise { + if (import.meta.env.DEV) { + return '223k'; + } + const stars = await countStars(repo); return formatter.format(stars);