mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-17 06:56:04 +01:00
18 lines
359 B
TypeScript
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
|
|
}
|
|
}
|