mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Follow-up to https://github.com/vercel/next.js/pull/20594 this ensures non-notFound SSG data 404s do cause a hard navigation as this signals a new deployment has occurred and a hard navigation will load the new deployment's version of the page. Closes: https://github.com/vercel/next.js/issues/20623
18 lines
287 B
JavaScript
18 lines
287 B
JavaScript
export const getStaticProps = () => {
|
|
return {
|
|
props: {
|
|
hello: 'world',
|
|
random: Math.random(),
|
|
},
|
|
}
|
|
}
|
|
|
|
export default function Page(props) {
|
|
return (
|
|
<>
|
|
<p id="gsp">getStaticProps page</p>
|
|
<p id="props">{JSON.stringify(props)}</p>
|
|
</>
|
|
)
|
|
}
|