Files
payload/examples/draft-preview/next-pages/src/pages/index.tsx
2023-08-01 16:53:45 -04:00

11 lines
262 B
TypeScript

import { GetStaticProps } from 'next'
import Page, { getStaticProps as sharedGetStaticProps } from './[slug]'
export default Page
export const getStaticProps: GetStaticProps = async ctx => {
const func = sharedGetStaticProps.bind(this)
return func(ctx)
}