2019-11-28 04:46:16 +01:00
|
|
|
import React from 'react'
|
|
|
|
|
|
|
|
export async function unstable_getStaticParams() {
|
|
|
|
return ['/blog/post-1']
|
|
|
|
}
|
|
|
|
|
2020-02-27 18:57:39 +01:00
|
|
|
export async function getStaticProps({ params }) {
|
2019-11-28 04:46:16 +01:00
|
|
|
return {
|
|
|
|
props: {
|
|
|
|
post: params.post,
|
|
|
|
time: (await import('perf_hooks')).performance.now(),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default () => {
|
|
|
|
return <div />
|
|
|
|
}
|