Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: kotlin getStaticPaths()

Greg Richardsond2adb3e40307
diff --git a/apps/docs/pages/reference/kotlin/[...slug].tsx b/apps/docs/pages/reference/kotlin/[...slug].tsx
index c318fd11a91..dfce2170a7b 100644
--- a/apps/docs/pages/reference/kotlin/[...slug].tsx
+++ b/apps/docs/pages/reference/kotlin/[...slug].tsx
@@ -17,5 +17,5 @@ export async function getStaticProps() {
}
export async function getStaticPaths() {
- return handleRefGetStaticPaths(sections, libraryPath)
+ return handleRefGetStaticPaths(sections)
}
diff --git a/apps/docs/pages/reference/kotlin/crawlers/[...slug].tsx b/apps/docs/pages/reference/kotlin/crawlers/[...slug].tsx
index 4cddf918ab0..e6a69bf155f 100644
--- a/apps/docs/pages/reference/kotlin/crawlers/[...slug].tsx
+++ b/apps/docs/pages/reference/kotlin/crawlers/[...slug].tsx
@@ -12,33 +12,33 @@ const sections = flattenSections(clientLibsCommonSections)
const libraryPath = '/kotlin'
export default function KotlinReference(props) {
- const router = useRouter()
- const slug = router.query.slug[0]
- const filteredSection = sections.filter((section) => section.id === slug)
+ const router = useRouter()
+ const slug = router.query.slug[0]
+ const filteredSection = sections.filter((section) => section.id === slug)
- const pageTitle = filteredSection[0]?.title
- ? `${filteredSection[0]?.title} | Supabase`
- : 'Supabase'
+ const pageTitle = filteredSection[0]?.title
+ ? `${filteredSection[0]?.title} | Supabase`
+ : 'Supabase'
- return (
- <>
- <RefSEO title={pageTitle} />
+ return (
+ <>
+ <RefSEO title={pageTitle} />
- <RefSectionHandler
- sections={filteredSection}
- spec={spec}
- typeSpec={typeSpec}
- pageProps={props}
- type="client-lib"
- />
- </>
- )
+ <RefSectionHandler
+ sections={filteredSection}
+ spec={spec}
+ typeSpec={typeSpec}
+ pageProps={props}
+ type="client-lib"
+ />
+ </>
+ )
}
export async function getStaticProps() {
- return handleRefStaticProps(sections, libraryPath)
+ return handleRefStaticProps(sections, libraryPath)
}
export async function getStaticPaths() {
- return handleRefGetStaticPaths(sections, libraryPath)
+ return handleRefGetStaticPaths(sections)
}
diff --git a/apps/docs/pages/reference/kotlin/v0/[...slug].tsx b/apps/docs/pages/reference/kotlin/v0/[...slug].tsx
index 59670e66890..81ec54b2efe 100644
--- a/apps/docs/pages/reference/kotlin/v0/[...slug].tsx
+++ b/apps/docs/pages/reference/kotlin/v0/[...slug].tsx
@@ -17,5 +17,5 @@ export async function getStaticProps() {
}
export async function getStaticPaths() {
- return handleRefGetStaticPaths(sections, libraryPath)
+ return handleRefGetStaticPaths(sections)
}
diff --git a/apps/docs/pages/reference/kotlin/v0/crawlers/[...slug].tsx b/apps/docs/pages/reference/kotlin/v0/crawlers/[...slug].tsx
index 03a1a3c0407..0bb3a187cc3 100644
--- a/apps/docs/pages/reference/kotlin/v0/crawlers/[...slug].tsx
+++ b/apps/docs/pages/reference/kotlin/v0/crawlers/[...slug].tsx
@@ -12,32 +12,32 @@ const sections = flattenSections(clientLibsCommonSections)
const libraryPath = '/kotlin/v0'
export default function KotlinReference(props) {
- const router = useRouter()
- const slug = router.query.slug[0]
- const filteredSection = sections.filter((section) => section.id === slug)
+ const router = useRouter()
+ const slug = router.query.slug[0]
+ const filteredSection = sections.filter((section) => section.id === slug)
- const pageTitle = filteredSection[0]?.title
- ? `${filteredSection[0]?.title} | Supabase`
- : 'Supabase'
- return (
- <>
- <RefSEO title={pageTitle} />
+ const pageTitle = filteredSection[0]?.title
+ ? `${filteredSection[0]?.title} | Supabase`
+ : 'Supabase'
+ return (
+ <>
+ <RefSEO title={pageTitle} />
- <RefSectionHandler
- sections={filteredSection}
- spec={spec}
- typeSpec={typeSpec}
- pageProps={props}
- type="client-lib"
- />
- </>
- )
+ <RefSectionHandler
+ sections={filteredSection}
+ spec={spec}
+ typeSpec={typeSpec}
+ pageProps={props}
+ type="client-lib"
+ />
+ </>
+ )
}
export async function getStaticProps() {
- return handleRefStaticProps(sections, libraryPath)
+ return handleRefStaticProps(sections, libraryPath)
}
export async function getStaticPaths() {
- return handleRefGetStaticPaths(sections, libraryPath)
+ return handleRefGetStaticPaths(sections)
}