Skip to content

Commit

Permalink
Add ISR for leaderboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey authored Oct 16, 2024
1 parent 5330cd6 commit 26cd9f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/(hacktoberfest)/leaderboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { getAllUserPointsList } from "@/lib/points/service";

import LeaderBoard from "./components";

// revalidate once every hour
export const revalidate = 3600

export default async function Page() {
const allUserPoints = await getAllUserPointsList();
const filteredUserPoints = allUserPoints.filter((user) => user.totalPoints > 0);
Expand Down

0 comments on commit 26cd9f7

Please sign in to comment.