Skip to content

Commit

Permalink
chore: enlarge revalidate interval to 12 hours.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Jan 21, 2023
1 parent 148c576 commit 7d3219d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/[pageId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const getStaticProps: GetStaticProps<PageProps, Params> = async (
try {
const props = await resolveNotionPage(domain, rawPageId)

return { props, revalidate: 1200 }
return { props, revalidate: 43200 }
} catch (err) {
console.error('page error', domain, rawPageId, err)

Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getStaticProps = async () => {
try {
const props = await resolveNotionPage(domain)

return { props, revalidate: 1200 }
return { props, revalidate: 43200 }
} catch (err) {
console.error('page error', domain, err)

Expand Down
2 changes: 1 addition & 1 deletion pages/tags/[tagName].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const getStaticProps = async (context) => {
tagsPage: true,
propertyToFilterName
},
revalidate: 1200
revalidate: 43200
}
} catch (err) {
console.error('page error', domain, rawTagName, err)
Expand Down

0 comments on commit 7d3219d

Please sign in to comment.