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>
15 lines
280 B
JavaScript
15 lines
280 B
JavaScript
function All({ params }) {
|
|
return <div id="all-ssg-content">{JSON.stringify(params)}</div>
|
|
}
|
|
|
|
export function unstable_getStaticProps({ params }) {
|
|
return { props: { params } }
|
|
}
|
|
|
|
export function unstable_getStaticPaths() {
|
|
return {
|
|
paths: [],
|
|
}
|
|
}
|
|
|
|
export default All
|