mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
19 lines
355 B
JavaScript
19 lines
355 B
JavaScript
import React from 'react'
|
|
|
|
export async function getStaticPaths() {
|
|
return { paths: [{ params: { slug: 'hello' } }], fallback: true }
|
|
}
|
|
|
|
export async function getStaticProps({ params }) {
|
|
return {
|
|
props: {
|
|
post: params.post,
|
|
time: (await import('perf_hooks')).performance.now(),
|
|
},
|
|
}
|
|
}
|
|
|
|
export default () => {
|
|
return <div />
|
|
}
|