You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The components/github-link.tsx file currently hardcodes the repo URL to https://github.com/O2sa/DevImpact. Make the repository URL configurable via an environment variable (e.g., NEXT_PUBLIC_GITHUB_REPO_URL) so forks and deploys can point to different repositories without code changes.
Tasks
Update components/github-link.tsx to read the repo URL from process.env.NEXT_PUBLIC_GITHUB_REPO_URL with a sensible fallback to the current hardcoded URL.
Add documentation to .env.example describing the new variable.
Run the app and verify the link still opens the repo when env var is unset and points to the provided URL when set.
Testing
Link opens fallback URL when env var is not set.
Link opens custom URL when env var is set.
Tip
🚀 Want to contribute?
Comment assign me to be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨
The
components/github-link.tsxfile currently hardcodes the repo URL tohttps://github.com/O2sa/DevImpact. Make the repository URL configurable via an environment variable (e.g.,NEXT_PUBLIC_GITHUB_REPO_URL) so forks and deploys can point to different repositories without code changes.Tasks
components/github-link.tsxto read the repo URL fromprocess.env.NEXT_PUBLIC_GITHUB_REPO_URLwith a sensible fallback to the current hardcoded URL..env.exampledescribing the new variable.Testing
Tip
🚀 Want to contribute?
Comment
assign meto be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨