silverwolf-x's picture
download
raw
883 Bytes
import { cookies } from 'next/headers'
import { connection } from 'next/server'
function immediate() {
return new Promise<void>((resolve) => setImmediate(resolve))
}
export async function Static({ label }: { label: string }) {
await immediate()
await immediate()
console.log(`after immediate - static - ${label}`)
return <div>Static - {label}</div>
}
export async function Runtime({ label }: { label: string }) {
await cookies()
console.log(`after cookies - ${label}`)
await immediate()
await immediate()
console.log(`after immediate - runtime - ${label}`)
return <div>Runtime - {label}</div>
}
export async function Dynamic({ label }: { label: string }) {
await connection()
console.log(`after connection - ${label}`)
await immediate()
await immediate()
console.log(`after immediate - dynamic - ${label}`)
return <div>Dynamic - {label}</div>
}

Xet Storage Details

Size:
883 Bytes
·
Xet hash:
94ed1b831af36822b42a9e3e3c47c41335c34ded2530fc99544035bf5e7a2cf5

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