Files
link-free/src/pages/index.tsx
2021-12-18 22:41:05 -03:00

18 lines
359 B
TypeScript

import type { GetStaticProps } from 'next'
import { Home } from '../components/Home'
import { fetchData } from '../services/fetchData'
export default function HomePage() {
return <Home />
}
export const getStaticProps: GetStaticProps = async () => {
const initialData = await fetchData()
return {
props: { initialData },
revalidate: 1
}
}