We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759907d commit a75252fCopy full SHA for a75252f
src/utilities/githubAPI.mjs
@@ -20,7 +20,9 @@ if (
20
});
21
console.log('api is authenticated on vercel');
22
} else {
23
- api = new GithubAPI();
24
- console.log('api is not authenticated');
+ api = new GithubAPI({
+ auth: process.env.GITHUB_TOKEN,
25
+ });
26
+ console.log(typeof process.env.GITHUB_TOKEN === "undefined" ? 'api is not authenticated' : 'api is authenticated locally');
27
}
28
export default api;
0 commit comments