Skip to content

Commit 29829ce

Browse files
committed
fixup!
1 parent fccada1 commit 29829ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/site/next-data/generators/supportersData.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
OPENCOLLECTIVE_MEMBERS_URL,
33
GITHUB_GRAPHQL_URL,
4-
GITHUB_API_KEY,
4+
GITHUB_READ_API_KEY,
55
} from '#site/next.constants.mjs';
66
import { fetchWithRetry } from '#site/next.fetch.mjs';
77
import { shuffle } from '#site/util/array';
@@ -41,7 +41,7 @@ async function fetchOpenCollectiveData() {
4141
* @returns {Promise<Array<import('#site/types/supporters').GithubSponsorSupporter>>} Array of supporters
4242
*/
4343
async function fetchGithubSponsorsData() {
44-
if (!GITHUB_API_KEY) {
44+
if (!GITHUB_READ_API_KEY) {
4545
return [];
4646
}
4747

@@ -188,7 +188,7 @@ const graphql = async (query, variables = {}) => {
188188
method: 'POST',
189189
headers: {
190190
'Content-Type': 'application/json',
191-
Authorization: `Bearer ${GITHUB_API_KEY}`,
191+
Authorization: `Bearer ${GITHUB_READ_API_KEY}`,
192192
},
193193
body: JSON.stringify({ query, variables }),
194194
});

apps/site/next.constants.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export const ORAMA_CLOUD_PROJECT_ID =
180180
*
181181
* Note: This has no NEXT_PUBLIC prefix as it should not be exposed to the Browser.
182182
*/
183-
export const GITHUB_API_KEY = process.env.NEXT_GITHUB_API_KEY || '';
183+
export const GITHUB_READ_API_KEY = process.env.NEXT_GITHUB_READ_API_KEY || '';
184184

185185
/**
186186
* The resource we point people to when discussing internationalization efforts.

0 commit comments

Comments
 (0)