mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This removes an inaccurate check that doesn't set a revalidate value if revalidate is `undefined` which can be the case for SSR app route pages. Also adds a regression test to ensure this doesn't break again. Fixes: https://github.com/vercel/next.js/issues/70213
17 lines
271 B
JavaScript
17 lines
271 B
JavaScript
import { useRouter } from 'next/router'
|
|
|
|
export default function Page(props) {
|
|
return (
|
|
<>
|
|
<p>hello from ssr</p>
|
|
<p id="query">{JSON.stringify(useRouter().query)}</p>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export function getServerSideProps() {
|
|
return {
|
|
props: {},
|
|
}
|
|
}
|