diff --git a/app/lib/api.ts b/app/lib/api.ts index b673d14..de322b3 100644 --- a/app/lib/api.ts +++ b/app/lib/api.ts @@ -1,5 +1,9 @@ import { Octokit } from "octokit"; +if (!process.env.REPOS_READ_ONLY) { + throw new Error("GITHUB TOKEN 'REPOS_READ_ONLY' is missing"); +} + const octokit = new Octokit({ auth: process.env.REPOS_READ_ONLY, });