next.js/test/e2e/app-dir/app-static/app/variable-config-revalidate/revalidate-3/page.js
page.js25 lines456 B
export const revalidate = 3

export const metadata = {
  title: 'Cache Test',
}

export default async function Page() {
  const data = await fetch(
    'https://next-data-api-endpoint.vercel.app/api/random',
    {
      next: {
        revalidate: 9,
      },
    }
  ).then((res) => res.text())

  return (
    <>
      <p>/variable-config-revalidate/revalidate-3</p>
      <p id="date">{Date.now()}</p>
      <p id="random-data">{data}</p>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN