import { unstable_expireTag } from 'next/cache' import { cookies } from 'next/headers' import Link from 'next/link' export default async function Page() { const randomCookie = (await cookies()).get('random') const data = await fetch( 'https://next-data-api-endpoint.vercel.app/api/random?page', { next: { revalidate: 3600, tags: ['thankyounext'] }, } ).then((res) => res.text()) return ( <>

another route

Back

{' '} revalidate (tags: thankyounext): {data}

random cookie:{' '} {JSON.stringify(randomCookie)}

) }