File size: 456 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
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>
</>
)
}
|