Skip to content

Commit 9a0439c

Browse files
committed
fix: fetch with revalidate
1 parent 612285f commit 9a0439c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/[lang]/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const revalidate = 3600
2+
13
import 'server-only';
24
import '../../styles/output.css';
35

src/fetches/github.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const fetchGithubStats = async (login: string): Promise<string> => {
77
Accept: 'application/json',
88
'Content-Type': 'image/svg+xml',
99
},
10+
next: {revalidate: 3600},
1011
};
1112

1213
try {

0 commit comments

Comments
 (0)