Skip to content

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

Add preamble files

Terry Sutton5bd08959a88c
diff --git a/apps/docs/docs/ref/js/typescript-support.mdx b/apps/docs/docs/ref/js/typescript-support.mdx
index ce25122af44..870bca9018c 100644
--- a/apps/docs/docs/ref/js/typescript-support.mdx
+++ b/apps/docs/docs/ref/js/typescript-support.mdx
@@ -1,4 +1,4 @@
-Typescript support file
+## Typescript support file —— terry test
This is a list in markdown:
diff --git a/apps/docs/pages/reference/javascript/[...slug].tsx b/apps/docs/pages/reference/javascript/[...slug].tsx
index 8336533e76e..3b17083a52c 100644
--- a/apps/docs/pages/reference/javascript/[...slug].tsx
+++ b/apps/docs/pages/reference/javascript/[...slug].tsx
@@ -67,7 +67,7 @@ export default function JSReference(props) {
{props.docs
.filter((doc) => doc.initialMarkdownPage)
.map((item) => (
- <p>{item.id}</p>
+ <MDXRemote {...item.content} components={components} />
))}
<RefSubLayout>
{jsSpec.functions.map((item, itemIndex) => {
@@ -275,7 +275,6 @@ export async function getStaticProps({ params }: { params: { slug: string[] } })
const specPpages = jsSpec.functions.map((x) => x.id)
const pages = [...preamblePages, ...specPpages]
- console.log('hello?', { pages })
/**
* Read all the markdown files that might have
@@ -306,7 +305,7 @@ export async function getStaticProps({ params }: { params: { slug: string[] } })
title: x,
// ...content,
meta: data,
- initialMarkdownPage: initialMarkdownPages.includes(x),
+ initialMarkdownPage: preamblePages.includes(x),
content: content ? await serialize(content || '') : null,
}
})