From 60505ee1db0e2dd00ba8ccc4e2a908257fe5dd0a Mon Sep 17 00:00:00 2001 From: Jesse Breuer Date: Fri, 6 Oct 2023 18:04:24 -0400 Subject: [PATCH] Dev/repos feed cache (#21) * chore: Remove outdated todo * feat: Dont cache git repos * feat: Showcase 9 repos instead of 6 --- app/_components/repos-feed/repos-feed.tsx | 2 ++ app/page.tsx | 1 - octokit.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/_components/repos-feed/repos-feed.tsx b/app/_components/repos-feed/repos-feed.tsx index cde299e..026ea0d 100644 --- a/app/_components/repos-feed/repos-feed.tsx +++ b/app/_components/repos-feed/repos-feed.tsx @@ -1,6 +1,8 @@ import { getRepos } from '@/octokit'; import { RepoCard, RepoCardSkeleton } from '../cards/repo-card/repo-card'; +export const revalidate = 0; + export async function ReposFeed() { const repos = await getRepos(); // TODO When would this be undefined? diff --git a/app/page.tsx b/app/page.tsx index 19d9a38..0646af4 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -16,7 +16,6 @@ export const metadata: Metadata = { title: "Jesse's Digital Garden", }; -// TODO Suspense fallback ui export default function HomePage() { return ( <> diff --git a/octokit.ts b/octokit.ts index 2fd605a..3f645e1 100644 --- a/octokit.ts +++ b/octokit.ts @@ -17,7 +17,7 @@ export async function getRepos() { visibility: 'public', affiliation: 'owner', sort: 'updated', - per_page: 6, + per_page: 9, page: 0, });