🚀 github user contribution api for dev

This commit is contained in:
platane
2020-11-30 17:56:34 +01:00
parent 15fbf4bff6
commit 55758d606c
3 changed files with 16 additions and 1 deletions

View File

@@ -190,7 +190,7 @@ const createViewer = ({
const onSubmit = async (userName: string) => {
const res = await fetch(
`https://snk-one.vercel.app/api/github-user-contribution/${userName}`
process.env.GITHUB_USER_CONTRIBUTION_API_ENDPOINT + userName
);
const { cells, colorScheme } = (await res.json()) as Res;