47ff1eb95a
* Ability to Disable SSG Fallback * Throw error when value is missing * Fix existing tests * Adjust error message * Do not render fallback at build time for `fallback: false` page * Fix existing fallback behavior * fix build * fix version * fix some tests * Fix last test * Add docs for get static paths * Add explicit mode tests * test for fallback error message
16 lines
300 B
JavaScript
16 lines
300 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: [],
|
|
fallback: true,
|
|
}
|
|
}
|
|
|
|
export default All
|