From d2cc3b503bbd10b651815fe04c905106b84a2792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82?= Date: Thu, 20 Jun 2024 15:25:36 +0200 Subject: [PATCH] fix: change caching type --- package-lock.json | 6 +++--- src/app/page.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7f215d3..cdff2f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3663,9 +3663,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001579", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz", - "integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==", + "version": "1.0.30001636", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001636.tgz", + "integrity": "sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==", "funding": [ { "type": "opencollective", diff --git a/src/app/page.tsx b/src/app/page.tsx index b8e9cb5..d521f40 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -12,7 +12,7 @@ import { projectsData } from '@/lib/data'; const Home = async () => { const starsCount = await Promise.all( projectsData.map(async ({ links }) => { - const res = await fetch(links.githubApi); + const res = await fetch(links.githubApi, { cache: 'no-store' }); const data = await res.json(); return data.stargazers_count; })