next.js/test/integration/revalidate-as-path/pages/another/index/index.js
index.js22 lines332 B
import { useRouter } from 'next/router'

export default function Another() {
  const router = useRouter()

  return (
    <>
      <p id="as-path">{router.asPath}</p>
      <p id="another">another</p>
    </>
  )
}

export const getStaticProps = () => {
  return {
    props: {
      hello: 'world',
    },
    revalidate: 1,
  }
}
Quest for Codev2.0.0
/
SIGN IN