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

18 lines
354 B
JavaScript

import React from 'react'
export async function getStaticPaths() {
return { paths: [{ foo: 'bad', baz: 'herro' }], fallback: true }
}
export async function getStaticProps({ params }) {
return {
props: {
post: params.post,
time: (await import('perf_hooks')).performance.now(),
},
}
}
export default () => {
return <div />
}