rsnext/test/integration/dynamic-routing/pages/p1/p2/all-ssg/[...rest].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

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