import { useRouter } from 'next/router' export const getStaticProps = () => { return { props: { hello: 'world', random: Math.random(), }, } } export default (props) => ( <>

getStaticProps

{JSON.stringify(props)}

{useRouter().pathname}
)