import Link from 'next/link' import { useRouter } from 'next/router' export default function Page(props) { const router = useRouter() return ( <>

gssp page

{JSON.stringify(props)}

{JSON.stringify(router.query)}

{router.pathname}

{router.asPath}

to /
) } export const getServerSideProps = ({ query }) => { if (query.hiding) { return { notFound: true, } } return { notFound: false, props: { hello: 'world', }, } }