mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Follow-up to https://github.com/vercel/next.js/pull/59822 adding an additional test case. Closes NEXT-1918
10 lines
363 B
TypeScript
10 lines
363 B
TypeScript
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
import { unstable_cache } from 'next/cache'
|
|
// export const revalidate = '1'
|
|
|
|
export default async function Page() {
|
|
// await fetch('https://example.vercel.sh', { next: { revalidate: '1' } })
|
|
// await unstable_cache(async () => Date.now(), [], { revalidate: '1' })()
|
|
return <p>hello world</p>
|
|
}
|