Skip to content

Architecture – Hardcoded API Repository Target in Contributors Component #43

Description

@MayurKharat0390

Describe the Issue

In Contributors.jsx, the URL target for fetching contributors is hardcoded to:
https://api.github.com/repos/abhro05/AutoDoc.ai/contributors.

Problem

When contributors fork this repository (e.g., to host their own custom instance or contribute to local projects), the local dev site or deploy preview still displays the contributors of the parent repository (abhro05/AutoDoc.ai) instead of their own fork.

Proposed Solution

Define the repository target as a dynamic configuration variable using Vite environment variables (import.meta.env), falling back to the parent repository by default.

Proposed Implementation Details

  1. Add a fallback configuration in src/config.js or directly read from variables:
    const REPO_TARGET = import.meta.env.VITE_GITHUB_REPO || 'abhro05/AutoDoc.ai';

Metadata

Metadata

Labels

Mediumweekend project, need some digging!SSoC26enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions