f5cb1a69d7
* 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>
21 lines
375 B
JavaScript
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
|