Skip to content

Commit d9d796a

Browse files
feat: make GitHub repository URL configurable (#163)
1 parent d4233bd commit d9d796a

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
GITHUB_TOKEN=your_github_token_here
2+
# Public GitHub repository URL shown by the app.
3+
# If omitted, the app falls back to https://github.com/O2sa/DevImpact
4+
NEXT_PUBLIC_GITHUB_REPO_URL=your_github_repo_url_here
25

36
# Redis caching (optional)
47
# Use either redis://localhost:6379 or include password if enabled: redis://:password@localhost:6379

components/github-link.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ type GithubLinkProps = {
1111
export function GithubLink({ variant = "compact" }: GithubLinkProps) {
1212
const isProminent = variant === "prominent";
1313

14+
const githubRepoUrl= process.env.NEXT_PUBLIC_GITHUB_REPO_URL || "https://github.com/O2sa/DevImpact";
1415
return (
1516
<a
16-
href="https://github.com/O2sa/DevImpact"
17+
href={githubRepoUrl}
1718
target="_blank"
1819
rel="noopener noreferrer"
1920
aria-label="GitHub repository"

0 commit comments

Comments
 (0)