diff --git a/docs/api-keys.md b/docs/api-keys.md index 01d6298f7c1..af2b7642bf0 100644 --- a/docs/api-keys.md +++ b/docs/api-keys.md @@ -11,7 +11,7 @@ We recommend setting this up when running the project locally, as we use the Git ```sh # .env Example: -GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059 +NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059 ``` 2. Add Etherscan API token (free) diff --git a/src/lib/api/ghRepoData.ts b/src/lib/api/ghRepoData.ts index 51c0ea14429..bdb0771145d 100644 --- a/src/lib/api/ghRepoData.ts +++ b/src/lib/api/ghRepoData.ts @@ -93,7 +93,8 @@ const frameworksList: Array = [ githubUrl: "https://github.com/scaffold-eth/scaffold-eth-2", background: "#ffffff", name: "Scaffold-ETH-2", - description: "page-developers-local-environment:page-local-environment-scaffold-eth-desc", + description: + "page-developers-local-environment:page-local-environment-scaffold-eth-desc", alt: "page-local-environment-scaffold-eth-logo-alt", image: ScaffoldEthImage, }, @@ -129,7 +130,7 @@ export const ghRepoData = async (githubUrl: string) => { `https://api.github.com/repos/${repoOwner}/${repoName}`, { headers: { - Authorization: `Bearer ${process.env.GITHUB_TOKEN_READ_ONLY}`, + Authorization: `Bearer ${process.env.NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY}`, }, } ) @@ -144,7 +145,7 @@ export const ghRepoData = async (githubUrl: string) => { `https://api.github.com/repos/${repoOwner}/${repoName}/languages`, { headers: { - Authorization: `Bearer ${process.env.GITHUB_TOKEN_READ_ONLY}`, + Authorization: `Bearer ${process.env.NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY}`, }, } )