Skip to content

Commit

Permalink
perf: add revalidate config on /about page
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Nov 16, 2023
1 parent 94b6ee2 commit 188ae02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const metadata: Metadata = {
keywords: ['about', 'social', 'links', 'knowledge']
}

export const revalidate = 3600 // 1h

export default function Page() {
return (
<div className="content-container m-auto space-y-32">
Expand Down
2 changes: 1 addition & 1 deletion src/app/about/statistics/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const metadata: Metadata = {
keywords: ['about', 'statistics', 'data']
}

export const revalidate = 3600
export const revalidate = 3600 // 1h

function padZero(n: number) {
if (n < 10) return `0${n}`
Expand Down

0 comments on commit 188ae02

Please sign in to comment.