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
13 lines
269 B
Text
13 lines
269 B
Text
export const unstable_getStaticPaths = async () => {
|
|
return {
|
|
props: { world: 'world' }, fallback: true
|
|
}
|
|
}
|
|
|
|
export const unstable_getServerProps = async () => {
|
|
return {
|
|
props: { world: 'world' }
|
|
}
|
|
}
|
|
|
|
export default ({ world }) => <p>Hello {world}</p>
|