mirror of
https://github.com/supabase/supabase.git
synced 2026-07-07 09:30:21 +08:00
17 lines
356 B
TypeScript
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
|