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
- 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';
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
src/config.jsor directly read from variables: