silverwolf-x/project / test /e2e /app-dir /app-static /pages /unstable-cache-node.js
silverwolf-x's picture
download
raw
421 Bytes
import { unstable_cache } from 'next/cache'
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 (
<>
<p>/unstable-cache-node</p>
<p id="props">{JSON.stringify(props)}</p>
</>
)
}

Xet Storage Details

Size:
421 Bytes
·
Xet hash:
ba284968ce3a71411746b467da278a92420cab17c48991a1ce7a8a939e4503b5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.