Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

fix: reduce revalidation time for GitHub stars fetch from 5 minutes to 1 minute

Vlad Sazonau53c5f8dfcd54
diff --git a/src/actions/fetch-github-stars.ts b/src/actions/fetch-github-stars.ts
index 0dc46ba..c909c2d 100644
--- a/src/actions/fetch-github-stars.ts
+++ b/src/actions/fetch-github-stars.ts
@@ -10,7 +10,7 @@ export async function fetchGithubStars(): Promise<number> {
headers: {
Authorization: `Bearer ${env.GITHUB_TOKEN}`,
},
- next: { revalidate: 300 }, // 5 minutes in seconds
+ next: { revalidate: 60 }, // 1 minute in seconds
},
);