Skip to content

Commit

Permalink
Dev/repos feed cache (#21)
Browse files Browse the repository at this point in the history
* chore: Remove outdated todo

* feat: Dont cache git repos

* feat: Showcase 9 repos instead of 6
  • Loading branch information
steezplusplus authored Oct 6, 2023
1 parent 874f238 commit 60505ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/_components/repos-feed/repos-feed.tsx
Original file line number Diff line number Diff line change
@@ -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?
Expand Down
1 change: 0 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const metadata: Metadata = {
title: "Jesse's Digital Garden",
};

// TODO Suspense fallback ui
export default function HomePage() {
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function getRepos() {
visibility: 'public',
affiliation: 'owner',
sort: 'updated',
per_page: 6,
per_page: 9,
page: 0,
});

Expand Down

0 comments on commit 60505ee

Please sign in to comment.