Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
realjoshuau committed Nov 24, 2023
1 parent 0e51214 commit 9d93817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tba/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// docs: https://www.thebluealliance.com/apidocs/v3
export const tpaApiUrl = 'https://www.thebluealliance.com/api/v3';
export const statboticsApiUrl = 'https://api.statbotics.io/v2';
export const apiKey = process.env.TBA_API_KEY || "whoops! shouldn't see this!";
if (!apiKey || apiKey.includes('whoops')) {
export const apiKey = process.env.TBA_API_KEY || "";
if (!apiKey || apiKey === "") {
throw new Error('no TBA API key found');
}

0 comments on commit 9d93817

Please sign in to comment.