mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
22 lines
801 B
TypeScript
22 lines
801 B
TypeScript
import selfHostingRealtimeCommonSections from '~/../../spec/common-self-hosting-realtime-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'
|
|
|
|
const sections = flattenSections(selfHostingRealtimeCommonSections)
|
|
const libraryPath = '/self-hosting-realtime'
|
|
|
|
export default function SelfHostRealtimeReference(props) {
|
|
return <RefSectionHandler sections={sections} pageProps={props} type="api" />
|
|
}
|
|
|
|
export async function getStaticProps() {
|
|
return handleRefStaticProps(sections, libraryPath)
|
|
}
|
|
|
|
export async function getStaticPaths() {
|
|
return handleRefGetStaticPaths(sections)
|
|
}
|