rsnext/test/integration/ssg-dynamic-routes-404-page/pages/post/[id].js
Thomas Heyenbrock 47d7eddd0d
fix(dev-server): render 404 when dynamic ssg path doesn't exist (#12085)
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-04-22 01:36:49 -04:00

6 lines
180 B
JavaScript

export const getStaticPaths = async () => ({
paths: ['/post/1'],
fallback: false,
})
export const getStaticProps = async () => ({ props: {} })
export default () => 'blog post'