silverwolf-x's picture
download
raw
795 Bytes
import { fetchRetry } from '../../../lib/fetch-retry'
export const revalidate = 0
export default async function Page() {
const data = await fetchRetry(
'https://next-data-api-endpoint.vercel.app/api/random?status=404',
{
next: {
revalidate: 3,
},
}
).then(async (res) => {
return {
status: res.status,
text: await res.text(),
}
})
const data2 = await fetchRetry(
'https://next-data-api-endpoint.vercel.app/api/random?status=204'
).then(async (res) => {
return {
status: res.status,
text: await res.text(),
}
})
return (
<>
<p id="page">/variable-revalidate/status-code</p>
<p id="page-data">{JSON.stringify(data)}</p>
<p id="page-data2">{JSON.stringify(data2)}</p>
</>
)
}

Xet Storage Details

Size:
795 Bytes
·
Xet hash:
3b8e0be4a2e0d84fba85db833d36ad10571eb348f462c0ed7cb96abdda30964b

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