Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# NEXT_PUBLIC_ALGOLIA_APP_ID=insertValue
# NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=insertValue
# NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME=insertValue

# Github token for read-only use with api functions
# NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY=insertValue

# Etherscan API key (required for Etherscan API fetches)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/api/fetchGitHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function fetchWithRateLimit(filepath: string): Promise<Commit[]> {
url.searchParams.set("path", filepath)
url.searchParams.set("sha", "master")

const gitHubToken = process.env.GITHUB_TOKEN_READ_ONLY
const gitHubToken = process.env.NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY

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