We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a162141 commit 92ec50cCopy full SHA for 92ec50c
.env.example
@@ -1,2 +1,2 @@
1
-GITHUB_TOKEN=your_github_token
+GH_TOKEN=your_github_token
2
CDN_URL=https://cdn.example.com
lib/github.ts
@@ -1,7 +1,7 @@
import { Octokit } from "@octokit/rest";
3
const octokit = new Octokit({
4
- auth: process.env.GITHUB_TOKEN,
+ auth: process.env.GH_TOKEN || process.env.GITHUB_TOKEN,
5
});
6
7
export default octokit;
0 commit comments