Skip to content

Commit 51d6b53

Browse files
fix(fetchGitHistory): update github token env key name
1 parent e170a44 commit 51d6b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/api/fetchGitHistory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function fetchWithRateLimit(filepath: string): Promise<Commit[]> {
1111
url.searchParams.set("path", filepath)
1212
url.searchParams.set("sha", "master")
1313

14-
const gitHubToken = process.env.GITHUB_TOKEN_READ_ONLY
14+
const gitHubToken = process.env.NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY
1515

1616
// If no token available, return empty array
1717
if (!gitHubToken) return []

0 commit comments

Comments
 (0)