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

getServerSideProps

{JSON.stringify(props)}

{useRouter().pathname}
{useRouter().asPath}
)