rsnext/test/integration/prerender-invalid-paths/pages/[foo]/[post].js

21 lines
421 B
JavaScript
Raw Normal View History

import React from 'react'
// eslint-disable-next-line camelcase
export async function unstable_getStaticPaths() {
return [{ foo: 'bad', baz: 'herro' }]
}
// 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 />
}