Skip to content

refactor: Make GitHub repo URL configurable via env var #162

Description

@O2sa

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! ✨

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions