mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Removes the unstable prefix from `unstable_io`. Since this was only shipped in canaries with the unstable prefix we are going to just remove it without retaining the unstable prefix simultaneously.
16 lines
331 B
TypeScript
16 lines
331 B
TypeScript
import { io } from 'next/cache'
|
|
|
|
export default function PagesGSP({ rendered }: { rendered: string }) {
|
|
return (
|
|
<>
|
|
<p>This page uses io() in getStaticProps.</p>
|
|
<div id="pages-content">{rendered}</div>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export async function getStaticProps() {
|
|
await io()
|
|
return { props: { rendered: 'ok' } }
|
|
}
|