diff --git a/app/(hacktoberfest)/leaderboard/page.tsx b/app/(hacktoberfest)/leaderboard/page.tsx index 4292216..795b483 100644 --- a/app/(hacktoberfest)/leaderboard/page.tsx +++ b/app/(hacktoberfest)/leaderboard/page.tsx @@ -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);