Files
supabase/apps/docs/lib/mdx/handleRefStaticPaths.tsx
Charis 220915094c chore(docs): remove preview build shortcuts (#28641)
Now that production builds are fast, let's remove the preview build
shortcuts. (One of them didn't work anyway.) Having different preview
and production builds can lead to edge case bugs making it into master,
and we won't see much further build time improvement that's worth the
risk.
2024-08-14 17:08:01 -04:00

17 lines
361 B
TypeScript

import type { 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