Files
JJ KasperandGitHub dabeb51fff Fix SSG query with experimental-compile (#56680)
Ensures query isn't omitted when using experimental compile mode with SSG pages as it skips the isReady delay that is normally done with prerendering.
2023-10-11 01:52:36 +00:00

17 lines
267 B
JavaScript

import { useRouter } from 'next/router'
export default function Page(props) {
return (
<>
<p>hello from ssg</p>
<p id="query">{JSON.stringify(useRouter().query)}</p>
</>
)
}
export function getStaticProps() {
return {
props: {},
}
}