Skip to content

Commit

Permalink
refactor(watch): revalidate static route after 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarchen committed Jun 28, 2024
1 parent d750bca commit f9aae77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/watch/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { fetchWatchPages } from '@/lib/notion'
import { transformWatchResourceToDTO } from './dto/watchResource.dto'
import WatchResources from './watchResources'

export const revalidate = 3600

export default async function Page() {
const firstPage = await fetchWatchPages()
const initialResources = firstPage.results.map(transformWatchResourceToDTO)
Expand Down

0 comments on commit f9aae77

Please sign in to comment.