Skip to content

Commit 4575acf

Browse files
committed
fix: replace outdated streak API
1 parent b582ae4 commit 4575acf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This website makes it easier for you to generate beautiful stats for your GitHub
99
## APIs Used
1010

1111
- [anuraghazra/github-readme-stats](https://github.com/anuraghazra/github-readme-stats)
12-
- [DenverCoder1/github-readme-streak-stats](https://github.com/DenverCoder1/github-readme-streak-stats)
12+
- [DenverCoder1/github-readme-streak-stats](https://streak-stats.demolab.com)
1313

1414
## How to Use
1515

@@ -22,7 +22,7 @@ This website makes it easier for you to generate beautiful stats for your GitHub
2222
## Stats Available
2323

2424
<img width=400 src='https://github-readme-stats.vercel.app/api?username=joshxfi&theme=vue-dark&show_icons=true&hide_border=true&count_private=true' />
25-
<img width=400 src='https://github-readme-streak-stats.herokuapp.com/?user=joshxfi&theme=vue-dark&hide_border=true' />
25+
<img width=400 src='https://streak-stats.demolab.com?user=joshxfi&theme=vue-dark&hide_border=true' />
2626
<img width=400 src='https://github-readme-stats.vercel.app/api/top-langs/?username=joshxfi&theme=vue-dark&show_icons=true&hide_border=true&layout=compact' />
2727

2828
## License

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const nextConfig = {
99
},
1010
{
1111
protocol: "https",
12-
hostname: "github-readme-streak-stats.herokuapp.com",
12+
hostname: "streak-stats.demolab.com",
1313
},
1414
],
1515
},

src/hooks/use-github-stats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const useGithubStats = (data: Stats) => {
1313
return useMemo(() => {
1414
const stats = `https://github-readme-stats.vercel.app/api?username=${username}&theme=${theme}&show_icons=true&hide_border=${hideBorder}&count_private=${countPrivate}`;
1515
const topLanguages = `https://github-readme-stats.vercel.app/api/top-langs/?username=${username}&theme=${theme}&show_icons=true&hide_border=${hideBorder}&layout=compact`;
16-
const streak = `https://github-readme-streak-stats.herokuapp.com/?user=${username}&theme=${theme}&hide_border=${hideBorder}`;
16+
const streak = `https://streak-stats.demolab.com?user=${username}&theme=${theme}&hide_border=${hideBorder}`;
1717

1818
return { stats, topLanguages, streak };
1919
}, [username, theme, hideBorder, countPrivate]);

0 commit comments

Comments
 (0)