Skip to content

Commit

Permalink
revalidate時間を1日に
Browse files Browse the repository at this point in the history
  • Loading branch information
takecchi committed Dec 6, 2023
1 parent da077b2 commit 3a439c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/(menu)/(public)/[username]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ type Params = { params: { username: string } };

async function fetchUser(username: string) {
try {
return await usersApi.getUserByUsername({ username });
return await usersApi.getUserByUsername(
{ username },
{
next: {
revalidate: 86400,
},
},
);
} catch {
return undefined;
}
Expand Down

0 comments on commit 3a439c4

Please sign in to comment.