diff --git a/.env.example b/.env.example index 35cc70f..d976952 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,7 @@ GITHUB_TOKEN=your_github_token_here +# Public GitHub repository URL shown by the app. +# If omitted, the app falls back to https://github.com/O2sa/DevImpact +NEXT_PUBLIC_GITHUB_REPO_URL=your_github_repo_url_here # Redis caching (optional) # Use either redis://localhost:6379 or include password if enabled: redis://:password@localhost:6379 diff --git a/components/github-link.tsx b/components/github-link.tsx index 2c209c9..065282f 100644 --- a/components/github-link.tsx +++ b/components/github-link.tsx @@ -11,9 +11,10 @@ type GithubLinkProps = { export function GithubLink({ variant = "compact" }: GithubLinkProps) { const isProminent = variant === "prominent"; + const githubRepoUrl= process.env.NEXT_PUBLIC_GITHUB_REPO_URL || "https://github.com/O2sa/DevImpact"; return (