diff --git a/components/Nav.tsx b/components/Nav.tsx index 04b7254b2..5c5d92947 100644 --- a/components/Nav.tsx +++ b/components/Nav.tsx @@ -17,7 +17,9 @@ import { productLinks, resourcesLinks } from "./Nav/links"; // Manual count of stars on GitHub for now // Run pnpm run github:stars to get the latest count -const GITHUB_STARS = 2684; +import githubData from "src/data/github.json"; + +const githubStars = githubData.stars; const menu: { title: string; @@ -214,7 +216,7 @@ function OpenSourceButton({ className = "" }: { className?: string }) { > Open Source - {(GITHUB_STARS / 1000).toFixed(1)}K + {(githubStars / 1000).toFixed(1)}K acc + repo.stars, 0); return totalStars; } - -async function main() { - const totalStars = await getTotalStars("inngest"); - console.log(`${totalStars} total stars`); -} - -main();