import { unstable_cache } from 'next/cache' export const config = { runtime: 'experimental-edge', } export async function getServerSideProps() { const data = await unstable_cache(async () => { return { random: Math.random(), } })() return { props: { now: Date.now(), data, }, } } export default function Page(props) { return ( <>

/unstable-cache-edge

{JSON.stringify(props)}

) }