Allow app to be run locally without github token #307

Merged
neb-b merged 1 commit from seanyesmunt-patch-1 into master 2019-10-29 23:46:02 +01:00

View file

@ -20,9 +20,6 @@ const filePathBlockchain = "/contrib/devtools/generated/api_v1.json";
const filePathSdk = "/lbry/docs/api.json";
const rawGitHubBase = "https://raw.githubusercontent.com/lbryio/";
if (!process.env.GITHUB_OAUTH_TOKEN) // No point in rendering this page
throw new Error("Missing GitHub token");
const octokit = new Octokit({
auth: `token ${process.env.GITHUB_OAUTH_TOKEN}`
});