rsnext/test/integration/dynamic-routing/pages/p1/p2/nested-all-ssg/[...rest]/index.js
JJ Kasper f5cb1a69d7
Add error messages for dynamic SSG page without getStaticPaths (#10620)
* Add error messages for dynamic SSG page without getStaticPaths

* Update error check

* Update test file

* Update another test file

* Adjust

Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-21 00:57:10 -05:00

21 lines
375 B
JavaScript

import styles from './styles.module.css'
function All({ params }) {
return (
<div id="nested-all-ssg-content" className={styles.test}>
{JSON.stringify(params)}
</div>
)
}
export function unstable_getStaticProps({ params }) {
return { props: { params } }
}
export function unstable_getStaticPaths() {
return {
paths: [],
}
}
export default All