2020-01-20 22:44:50 +01:00
|
|
|
import React from 'react'
|
|
|
|
|
|
|
|
// eslint-disable-next-line camelcase
|
|
|
|
export async function unstable_getStaticPaths() {
|
2020-02-08 04:09:54 +01:00
|
|
|
return { paths: [{ params: { slug: 'hello' } }] }
|
2020-01-20 22:44:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// eslint-disable-next-line camelcase
|
|
|
|
export async function unstable_getStaticProps({ params }) {
|
|
|
|
return {
|
|
|
|
props: {
|
|
|
|
post: params.post,
|
|
|
|
time: (await import('perf_hooks')).performance.now(),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default () => {
|
|
|
|
return <div />
|
|
|
|
}
|