import { useRouter } from 'next/router' import data from '../lib/data.json' export default function Gsp(props) { if (useRouter().isFallback) { return 'Loading...' } return ( <>
change me
{JSON.stringify(props)}
> ) } export const getStaticProps = async () => { const count = 1 return { props: { count, data, random: Math.random(), }, } }