mirror of
https://github.com/prometheus/docs.git
synced 2026-02-05 15:45:27 +01:00
In case the env var isn't present (like in a Netlify deploy without sensitive variables), this makes sure that "auth" is undefined rather than an invalid empty string. Signed-off-by: Julius Volz <julius.volz@gmail.com>
9 lines
158 B
TypeScript
9 lines
158 B
TypeScript
import dotenv from "dotenv";
|
|
import { Octokit } from "octokit";
|
|
|
|
dotenv.config();
|
|
|
|
export const octokit = new Octokit({
|
|
auth: process.env.GITHUB_TOKEN,
|
|
});
|