From 835fdd6b84f42734eb92309b844a7d99c28491e5 Mon Sep 17 00:00:00 2001 From: platane Date: Mon, 17 Jul 2023 23:14:15 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20fix=20vercel=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/github-user-contribution/[userName].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/github-user-contribution-service/api/github-user-contribution/[userName].ts b/packages/github-user-contribution-service/api/github-user-contribution/[userName].ts index c18dc9b..19b5c3f 100644 --- a/packages/github-user-contribution-service/api/github-user-contribution/[userName].ts +++ b/packages/github-user-contribution-service/api/github-user-contribution/[userName].ts @@ -9,7 +9,7 @@ export default async (req: VercelRequest, res: VercelResponse) => { res.statusCode = 200; res.json( await getGithubUserContribution(userName as string, { - githubToken: process.env.GITHUB!, + githubToken: process.env.GITHUB_TOKEN!, }) ); } catch (err) {