mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
fixes #65842 When setting revalidateTimings correctly use toRoute to convert `/index` to `/`, like done for get (https://github.com/vercel/next.js/blob/canary/packages/next/src/server/lib/incremental-cache/index.ts#L213) See #65842 for reproduction codesandbox. The bug also exists in 14.2.3 (and below) - before #64370 --------- Co-authored-by: JJ Kasper <[email protected]>
7 lines
143 B
JavaScript
7 lines
143 B
JavaScript
export const revalidate = 2
|
|
export const dynamic = 'error'
|
|
|
|
export default function Page() {
|
|
return <pre id="random">{Math.random()}</pre>
|
|
}
|