23 lines
852 B
TypeScript
23 lines
852 B
TypeScript
import selfHostingFunctionsCommonSections from '~/spec/common-self-hosting-functions-sections.json'
|
|
|
|
import RefSectionHandler from '~/components/reference/RefSectionHandler'
|
|
import { flattenSections } from '~/lib/helpers'
|
|
import handleRefGetStaticPaths from '~/lib/mdx/handleRefStaticPaths'
|
|
import handleRefStaticProps from '~/lib/mdx/handleRefStaticProps'
|
|
import { gen_v3 } from '~/lib/refGenerator/helpers'
|
|
|
|
const sections = flattenSections(selfHostingFunctionsCommonSections)
|
|
const libraryPath = '/self-hosting-functions'
|
|
|
|
export default function SelfHostFunctionsReference(props) {
|
|
return <RefSectionHandler sections={sections} pageProps={props} type="api" />
|
|
}
|
|
|
|
export async function getStaticProps() {
|
|
return handleRefStaticProps(sections, libraryPath)
|
|
}
|
|
|
|
export async function getStaticPaths() {
|
|
return handleRefGetStaticPaths(sections)
|
|
}
|