next.js/test/e2e/prerender/pages/large-page-data.js
large-page-data.js27 lines473 B
import React from 'react'
import Link from 'next/link'

export async function getStaticProps({ params }) {
  return {
    props: {
      lotsOfData: new Array(256 * 1000).fill('a').join(''),
    },
    revalidate: false,
  }
}

export default (props) => {
  return (
    <>
      <p>lots of data returned</p>
      <Link href="/" id="home">
        to home
      </Link>
      <br />
      <Link href="/another" id="another">
        to another
      </Link>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN