Skip to content

Commit 0e92d2f

Browse files
committed
Hardcode GitHub star count
1 parent 12bea02 commit 0e92d2f

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

src/components/blocks/sidebar-1.astro

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,7 @@ const searchGroups = search.items.reduce<
124124
return groups
125125
}, [])
126126
127-
let githubStars = "Stars"
128-
129-
try {
130-
const response = await fetch(`https://api.github.com/repos/${githubRepo}`)
131-
const data = await response.json()
132-
133-
if (response.ok && typeof data.stargazers_count === "number") {
134-
githubStars = new Intl.NumberFormat().format(data.stargazers_count)
135-
}
136-
} catch {
137-
// Keep the fallback label when GitHub is unavailable.
138-
}
127+
const githubStars = "560+"
139128
---
140129

141130
<SidebarProvider>

0 commit comments

Comments
 (0)