silverwolf-x's picture
download
raw
606 Bytes
export const runtime = 'edge'
export default async function Page() {
const data = await fetch(
new Request('https://next-data-api-endpoint.vercel.app/api/random', {
method: 'POST',
})
).then((res) => res.text())
const data2 = await fetch(
new URL('https://next-data-api-endpoint.vercel.app/api/random'),
{
method: 'POST',
next: {
revalidate: 0,
},
}
).then((res) => res.text())
return (
<>
<p id="page">/variable-revalidate-edge/post-method</p>
<p id="page-data">{data}</p>
<p id="page-data2">{data2}</p>
</>
)
}

Xet Storage Details

Size:
606 Bytes
·
Xet hash:
ac3de7a597869ca6dbc864694fdd1ad8de5f99a441fcca8b8a9e648a457bda4f

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