-
Notifications
You must be signed in to change notification settings - Fork 105
Labels
hacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Description
The contributors section is not displaying, and Docusaurus shows the following error:
Error: GitHub token not found. Please set customFields.gitToken in docusaurus.config.js
No contributors found.
The issue occurs even after running cp .env.example .env
and adding GITHUB_TOKEN
to .env
.
Root Cause
- Docusaurus expects the GitHub token to be available under
DOCUSAURUS_GIT_TOKEN
in.env
. - Using
GITHUB_TOKEN
will not work because thecustomFields.gitToken
indocusaurus.config.js
specifically readsprocess.env.DOCUSAURUS_GIT_TOKEN
. - The
.env.example
file is not the issue, as it only provides a template and is not loaded automatically by Docusaurus.
Steps to Reproduce
- Clone the repository.
- Copy
.env.example
to.env
and addGITHUB_TOKEN
(notDOCUSAURUS_GIT_TOKEN
). - Start Docusaurus dev server:
npm run start
oryarn start
.
Expected behavior
- Contributors should load correctly from GitHub.
- No errors should appear regarding missing tokens.
Add ScreenShots
No response
What browsers are you seeing the problem on?
No response
Record
- I have read the Contributing Guidelines
- Are you a GSSOC'25 contributor
- I want to work on this issue
Metadata
Metadata
Assignees
Labels
hacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Type
Projects
Status
Todo