Skip to content

Commit

Permalink
Add check for GitHub token
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzolewis committed Oct 26, 2023
1 parent 463154d commit 5eba39e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Sponsors.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
const GITHUB_TOKEN = import.meta.env.GITHUB_TOKEN;
if (!GITHUB_TOKEN)
throw Error('GITHUB_TOKEN is invalid or not set')
const gitHubQuery = `query {
organization(login:"tauri-apps") {
sponsors(first: 100) {
Expand Down

0 comments on commit 5eba39e

Please sign in to comment.