rsnext/test/integration/no-page-props/pages/gsp.js
JJ Kasper ce56b60166
Add additional pageProps check (#15667)
`pageProps` should always be defined to ensure everything is working as expected although to prevent a breaking change this adds an additional check before attempting to access `pageProps` before hydration. It also adds tests to prevent regressing on this

Closes: https://github.com/vercel/next.js/issues/15647
2020-07-30 04:47:20 +00:00

11 lines
172 B
JavaScript

export default function Gsp() {
return <p id="gsp">getStaticProps</p>
}
export const getStaticProps = () => {
return {
props: {
hello: 'world',
},
}
}