feat: add Miniflux template (#881)

* feat: add Miniflux template

* fix: guard GitHub star count fallback

---------

Co-authored-by: Artemis-ignis <Artemis-ignis@users.noreply.github.com>
This commit is contained in:
Artemis-ignis
2026-07-08 05:10:00 +09:00
committed by GitHub
parent c9dc13aab8
commit 0074651a45
5 changed files with 83 additions and 1 deletions

View File

@@ -13,7 +13,9 @@ const Navigation = () => {
"https://api.github.com/repos/dokploy/dokploy"
);
const data = await response.json();
setGithubStars(data.stargazers_count);
setGithubStars(
Number.isFinite(data.stargazers_count) ? data.stargazers_count : 0
);
} catch (error) {
console.error("Error fetching GitHub stars:", error);
}