diff --git a/.env.example b/.env.example --- a/.env.example +++ b/.env.example @@ -1,1 +1,1 @@ -GITHUB_TOKEN= \ No newline at end of file +APP_GITHUB_TOKEN= \ No newline at end of file diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ ### Configuration -- `GITHUB_TOKEN`, required for making GitHub API calls. +- `APP_GITHUB_TOKEN`, required for making GitHub API calls. - Generate one from your [GitHub settings](https://github.com/settings/tokens?type=beta). - Does not need any special permissions, it only accesses public information. diff --git a/routes/index.tsx b/routes/index.tsx --- a/routes/index.tsx +++ b/routes/index.tsx @@ -14,7 +14,7 @@ ]; export default async function Home() { - const ghToken = Deno.env.get("GITHUB_TOKEN"); + const ghToken = Deno.env.get("APP_GITHUB_TOKEN"); assert(ghToken); const contributors = await fetchGitHubContributors(ghToken, DEVICT_REPOS); diff --git a/routes/projects.tsx b/routes/projects.tsx --- a/routes/projects.tsx +++ b/routes/projects.tsx @@ -26,7 +26,7 @@ export default async function Home() { const ALL_REPOS = DEVICT_REPOS.concat(COMMUNITY_REPOS); - const ghToken = Deno.env.get("GITHUB_TOKEN"); + const ghToken = Deno.env.get("APP_GITHUB_TOKEN"); assert(ghToken); const issues = await getHelpWantedIssues({