next.js/test/integration/prerender/pages/default-revalidate.js
default-revalidate.js25 lines413 B
import Link from 'next/link'

export async function getStaticProps() {
  return {
    props: {
      world: 'world',
      time: new Date().getTime(),
    },
  }
}

export default ({ world, time }) => (
  <>
    <p>hello {world}</p>
    <span>time: {time}</span>
    <Link href="/" id="home">
      to home
    </Link>
    <br />
    <Link href="/something" id="something">
      to something
    </Link>
  </>
)
Quest for Codev2.0.0
/
SIGN IN