Skip to content

Commit

Permalink
chore: upgrade to next v15; reduce cache to 3.5days
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgrimshaw committed Jan 11, 2025
1 parent abcafa2 commit 96118ae
Show file tree
Hide file tree
Showing 3 changed files with 616 additions and 146 deletions.
4 changes: 1 addition & 3 deletions actions/fivem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ export function getAllBrokenArtifacts(): { [key: string]: string } {
}

export async function getRecommendedArtifact(): Promise<ReturnType> {
const CACHE_KEEP_SECS = 604800;

try {
const brokenArtifacts = getAllBrokenArtifacts();
if (!brokenArtifacts) return false;

// Get git commit sha from tag
const gitReq = await fetch(GITHUB_REPO_TAGS, {
next: { revalidate: CACHE_KEEP_SECS },
next: { revalidate: 302400 },
});
if (!gitReq.ok) return false;
const gitData: { name: string; commit: { sha: string } }[] =
Expand Down
Loading

0 comments on commit 96118ae

Please sign in to comment.