Files
supabase/apps/docs/lib/mdx/handleRefStaticPaths.tsx
2023-05-10 10:39:52 -06:00

17 lines
356 B
TypeScript

import { ICommonSection } from '~/components/reference/Reference.types'
async function handleRefGetStaticPaths(sections: ICommonSection[]) {
return {
paths: sections.map((section) => {
return {
params: {
slug: [section.slug],
},
}
}),
fallback: 'blocking',
}
}
export default handleRefGetStaticPaths