mirror of
https://github.com/supabase/supabase.git
synced 2026-07-01 05:14:22 +08:00
19 lines
320 B
TypeScript
19 lines
320 B
TypeScript
import { getAllDocs } from '../docs'
|
|
|
|
async function handleRefGetStaticPaths() {
|
|
let docs = getAllDocs()
|
|
|
|
return {
|
|
paths: docs.map(() => {
|
|
return {
|
|
params: {
|
|
slug: docs.map((d) => d.slug),
|
|
},
|
|
}
|
|
}),
|
|
fallback: 'blocking',
|
|
}
|
|
}
|
|
|
|
export default handleRefGetStaticPaths
|