mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
prefetching is now controlled with the prefetch export and this option is inert on the instant export. this removes the prefetch option as a valid property on the instant config type. also updates the ts plugin for this export and adds the definition for the previously landed prefetch export
11 lines
218 B
TypeScript
11 lines
218 B
TypeScript
import { cookies } from 'next/headers'
|
|
|
|
const _instant = true
|
|
const instant = _instant
|
|
export { instant as unstable_instant }
|
|
|
|
export default async function Page() {
|
|
await cookies()
|
|
return <p>indirect export</p>
|
|
}
|