Remove test pubkey from config, fix github api var

This commit is contained in:
austinkelsay 2025-01-03 15:24:38 -06:00
parent 109254c490
commit 0b2ae3dc77
No known key found for this signature in database
GPG Key ID: 44CB4EC6D9F2FA02
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ const appConfig = {
"wss://purplerelay.com/", "wss://purplerelay.com/",
"wss://relay.devs.tools/" "wss://relay.devs.tools/"
], ],
authorPubkeys: ["f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741", "c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345", "468f729dd409053dac5e7470622c3996aad88db6ed1de9165cb1921b5ab4fd5e"], authorPubkeys: ["f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741", "c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345"],
customLightningAddresses: [ customLightningAddresses: [
{ {
// todo remove need for lowercase // todo remove need for lowercase

View File

@ -4,7 +4,7 @@ import { throttling } from "@octokit/plugin-throttling";
const ThrottledOctokit = Octokit.plugin(throttling); const ThrottledOctokit = Octokit.plugin(throttling);
const octokit = new ThrottledOctokit({ const octokit = new ThrottledOctokit({
auth: process.env.NEXT_PUBLIC_GITHUB_ACCESS_KEY, auth: process.env.NEXT_PUBLIC_GITHUB_API,
throttle: { throttle: {
onRateLimit: (retryAfter, options, octokit, retryCount) => { onRateLimit: (retryAfter, options, octokit, retryCount) => {
octokit.log.warn(`Request quota exhausted for request ${options.method} ${options.url}`); octokit.log.warn(`Request quota exhausted for request ${options.method} ${options.url}`);
@ -21,7 +21,7 @@ const octokit = new ThrottledOctokit({
}); });
export async function* getAllCommits(accessToken, since) { export async function* getAllCommits(accessToken, since) {
const auth = accessToken || process.env.NEXT_PUBLIC_GITHUB_ACCESS_KEY; const auth = accessToken || process.env.NEXT_PUBLIC_GITHUB_API;
const octokit = new ThrottledOctokit({ const octokit = new ThrottledOctokit({
auth, auth,