990eda2c88
* Prefetch SSG Data * Update packages/next/client/page-loader.js Co-Authored-By: JJ Kasper <jj@jjsweb.site> * Revert router.ts * Revert link.tsx * undo change * mimmic existing * simplify * Prefetch href and asPath * fix load * dedupe prefetchAs * Inject script tag on hover * comment prefetchAs * minify code * introduce lazy files * Add some breathing room * correct default type * Prefetch non-dynamic data * Prefetch dynamic route data * Fix size test * Humanize code * add tests * Disable code * Only generate modern version in modern mode * Extract function helper * add comments * Filter out dynamic route to simplify manifest size * add test Co-authored-by: JJ Kasper <jj@jjsweb.site>
12 lines
323 B
JavaScript
12 lines
323 B
JavaScript
export function getStaticProps({ params }) {
|
|
return { props: { message: `hello ${params.slug.join(' ')}` } }
|
|
}
|
|
|
|
export function getStaticPaths() {
|
|
return {
|
|
paths: ['/ssg/catch-all/one', '/ssg/catch-all/one/two'],
|
|
fallback: true,
|
|
}
|
|
}
|
|
|
|
export default ({ message }) => <p id="content">{message || 'loading'}</p>
|