File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import ArrowCard from '@/components/arrow-card';
44import NavLink from '@/components/nav-link' ;
55import client from '@/tina/__generated__/client' ;
66
7+ export const revalidate = 3600 ; // invalidate every hour
8+
79const LatestPosts : React . FC = async ( ) => {
810 const { data } = await client . queries . postConnection ( { last : 3 , sort : 'date' } ) ;
911
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { TinaMarkdown } from 'tinacms/dist/rich-text';
22
33import client from '@/tina/__generated__/client' ;
44
5+ export const revalidate = 3600 ; // invalidate every hour
6+
57const Summary : React . FC = async ( ) => {
68 const { data } = await client . queries . page ( { relativePath : 'home.mdx' } ) ;
79
Original file line number Diff line number Diff line change 11import LatestPosts from './components/latest-posts' ;
22import Summary from './components/summary' ;
33
4- export const revalidate = 3600 ; // invalidate every hour
5-
64export default function Home ( ) {
75 return (
86 < div className = "mx-auto max-w-screen-md px-5" >
You can’t perform that action at this time.
0 commit comments