Skip to content

Commit a79e813

Browse files
add 1h cache to user page SSR
1 parent ac54145 commit a79e813

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/app/[user]/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import { truncateAddress } from '#/lib/utilities'
99
import { fetchAccount } from '#/api/fetch-account'
1010
import { isAddress, isHex } from '#/utils/viem'
1111

12+
// Cache the SSR output for 1 hour
13+
export const revalidate = 3600
14+
1215
interface Props {
1316
params: Promise<{ user: string }>
1417
searchParams: Promise<SearchParams>

0 commit comments

Comments
 (0)