Files
JJ KasperandGitHub 8f9c6a8617 Fix missing cache-control on SSR app route (#70265)
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
2024-09-19 21:45:46 +00:00

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: {},
}
}