import DocTemplate from './[...slug]' ; import { getDocProps } from 'utils/docs/getDocProps' ; import { GetStaticProps } from 'next' ; import { GithubError } from 'next-tinacms-github' ; export const getStaticProps = async function ( props ) { try { return await getDocProps ( props , 'index' ) ; } catch ( e ) { if ( e instanceof GithubError ) { return { props : { error : { ... e } , } , } ; } else { throw e ; } } } ; export default DocTemplate ;