Skip to content

Commit 60d2359

Browse files
committed
Update env variables and add self-hosted URL for github stats
1 parent f6b9856 commit 60d2359

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
NEXT_PUBLIC_SERVICE_ID="Enter your service id here"
22
NEXT_PUBLIC_TEMPLATE_ID="Enter your template id here"
33
NEXT_PUBLIC_PUBLIC_KEY="Enter your public key here"
4+
5+
# Following env variables should be replaced with your own hosted github stats
6+
7+
NEXT_PUBLIC_GITHUB_STATS_URL="https://github-readme-stats.vercel.app"
8+
NEXT_PUBLIC_GITHUB_STREAK_STATS_URL="https://github-readme-streak-stats.herokuapp.com"
9+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ If you want to learn how to create it please follow below tutorial👇: <br />
1717
https://youtu.be/1QGLHOaRLwM <br />
1818
[![YouTube Video Views](https://img.shields.io/youtube/views/1QGLHOaRLwM?style=social)](https://youtu.be/1QGLHOaRLwM)<br />
1919

20+
Checkout my personal website [DevDreaming](https://devdreaming.com) <br />
21+
2022
---
2123
# ⭐DO NOT FORGET TO STAR THIS REPO⭐
2224
---

src/components/about/index.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const AboutDetails = () => {
4949
>
5050
<img
5151
className="w-full h-auto"
52-
src="https://github-readme-stats.vercel.app/api/top-langs?username=codebucks27&theme=transparent&hide_border=true&title_color=FEFE5B&text_color=FFFFFF&icon_color=FEFE5B&text_bold=false"
52+
src={`${process.env.NEXT_PUBLIC_GITHUB_STATS_URL}/api/top-langs?username=codebucks27&theme=transparent&hide_border=true&title_color=FEFE5B&text_color=FFFFFF&icon_color=FEFE5B&text_bold=false`}
5353
alt="CodeBucks"
5454
loading="lazy"
5555
/>
@@ -58,7 +58,7 @@ const AboutDetails = () => {
5858
<ItemLayout className={"col-span-full md:col-span-8 !p-0"}>
5959
<img
6060
className="w-full h-auto"
61-
src="https://github-readme-stats.vercel.app/api?username=codebucks27&theme=transparent&hide_border=true&title_color=FEFE5B&text_color=FFFFFF&icon_color=FEFE5B&text_bold=false"
61+
src={`${process.env.NEXT_PUBLIC_GITHUB_STATS_URL}/api?username=codebucks27&theme=transparent&hide_border=true&title_color=FEFE5B&text_color=FFFFFF&icon_color=FEFE5B&text_bold=false`}
6262
alt="CodeBucks"
6363
loading="lazy"
6464
/>
@@ -67,7 +67,7 @@ const AboutDetails = () => {
6767
<ItemLayout className={"col-span-full"}>
6868
<img
6969
className="w-full h-auto"
70-
src="https://skillicons.dev/icons?i=appwrite,aws,babel,bootstrap,cloudflare,css,d3,docker,figma,firebase,gatsby,git,github,graphql,html,ipfs,js,jquery,kubernetes,linux,mongodb,mysql,netlify,nextjs,nodejs,npm,postgres,react,redux,replit,sass,supabase,tailwind,threejs,vercel,vite,vscode,yarn"
70+
src={`https://skillicons.dev/icons?i=appwrite,aws,babel,bootstrap,cloudflare,css,d3,docker,figma,firebase,gatsby,git,github,graphql,html,ipfs,js,jquery,kubernetes,linux,mongodb,mysql,netlify,nextjs,nodejs,npm,postgres,react,redux,replit,sass,supabase,tailwind,threejs,vercel,vite,vscode,yarn`}
7171
alt="CodeBucks"
7272
loading="lazy"
7373
/>
@@ -76,7 +76,7 @@ const AboutDetails = () => {
7676
<ItemLayout className={"col-span-full md:col-span-6 !p-0"}>
7777
<img
7878
className="w-full h-auto"
79-
src="https://github-readme-streak-stats.herokuapp.com?user=codebucks27&theme=dark&hide_border=true&type=png&background=EB545400&ring=FEFE5B&currStreakLabel=FEFE5B"
79+
src={`${process.env.NEXT_PUBLIC_GITHUB_STREAK_STATS_URL}?user=codebucks27&theme=dark&hide_border=true&type=svg&background=EB545400&ring=FEFE5B&currStreakLabel=FEFE5B`}
8080
alt="CodeBucks"
8181
loading="lazy"
8282
/>
@@ -90,7 +90,7 @@ const AboutDetails = () => {
9090
>
9191
<img
9292
className="w-full h-auto"
93-
src="https://github-readme-stats.vercel.app/api/pin/?username=codebucks27&repo=Nextjs-contentlayer-blog&theme=transparent&hide_border=true&title_color=FEFE5B&text_color=FFFFFF&icon_color=FEFE5B&text_bold=false&description_lines_count=2"
93+
src={`${process.env.NEXT_PUBLIC_GITHUB_STATS_URL}/api/pin/?username=codebucks27&repo=Nextjs-contentlayer-blog&theme=transparent&hide_border=true&title_color=FEFE5B&text_color=FFFFFF&icon_color=FEFE5B&text_bold=false&description_lines_count=2`}
9494
alt="CodeBucks"
9595
loading="lazy"
9696
/>

0 commit comments

Comments
 (0)