Skip to content

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

Move preamble section

Terry Sutton7768c4fe2a6f
diff --git a/apps/docs/pages/reference/javascript/[...slug].tsx b/apps/docs/pages/reference/javascript/[...slug].tsx
index 43d31fc66d9..8336533e76e 100644
--- a/apps/docs/pages/reference/javascript/[...slug].tsx
+++ b/apps/docs/pages/reference/javascript/[...slug].tsx
@@ -63,6 +63,12 @@ export default function JSReference(props) {
return (
<>
+ <div>~~~Preamble pages~~~</div>
+ {props.docs
+ .filter((doc) => doc.initialMarkdownPage)
+ .map((item) => (
+ <p>{item.id}</p>
+ ))}
<RefSubLayout>
{jsSpec.functions.map((item, itemIndex) => {
const hasTsRef = item['$ref'] || null
@@ -78,12 +84,6 @@ export default function JSReference(props) {
return (
<>
- <div>Preamble pages</div>
- {props.docs
- .filter((doc) => doc.initialMarkdownPage)
- .map((item) => (
- <p>{item.id}</p>
- ))}
<RefSubLayout.Section
key={item.id}
title={
@@ -270,11 +270,11 @@ const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key
}
export async function getStaticProps({ params }: { params: { slug: string[] } }) {
- const initialMarkdownPages = ['typescript-support', 'release-notes']
+ const preamblePages = ['typescript-support', 'release-notes']
const specPpages = jsSpec.functions.map((x) => x.id)
- const pages = [...initialMarkdownPages, ...specPpages]
+ const pages = [...preamblePages, ...specPpages]
console.log('hello?', { pages })
/**
diff --git a/package-lock.json b/package-lock.json
index 2272c507bb9..256ac677995 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -37988,6 +37988,36 @@
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
+ },
+ "node_modules/@next/swc-android-arm-eabi": {
+ "version": "12.2.6",
+ "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.2.6.tgz",
+ "integrity": "sha512-dDo8Dxz/+v7gM7y0GwKunl4iMyoXDJV4xhH3zsO2yYReK+WL/KTJxRMzxtRJIiH9XFHHzdxnL935067r4hs1+A==",
+ "cpu": [
+ "arm"
+ ],
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@next/swc-freebsd-x64": {
+ "version": "12.2.6",
+ "resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.2.6.tgz",
+ "integrity": "sha512-p8TU7HCNjFEf7pLrKG0fAtuHKbIk8XWLCFvn0n54RvGAnQmwo0kzghU0I8RFzcl/XFbVhxg5oX9Npx/GBlPgcw==",
+ "cpu": [
+ "x64"
+ ],
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
}
},
"dependencies": {
@@ -66621,6 +66651,18 @@
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/zxcvbn/-/zxcvbn-4.4.2.tgz",
"integrity": "sha512-Bq0B+ixT/DMyG8kgX2xWcI5jUvCwqrMxSFam7m0lAf78nf04hv6lNCsyLYdyYTrCVMqNDY/206K7eExYCeSyUQ=="
+ },
+ "@next/swc-android-arm-eabi": {
+ "version": "12.2.6",
+ "resolved": "https://registry.npmjs.org/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-12.2.6.tgz",
+ "integrity": "sha512-dDo8Dxz/+v7gM7y0GwKunl4iMyoXDJV4xhH3zsO2yYReK+WL/KTJxRMzxtRJIiH9XFHHzdxnL935067r4hs1+A==",
+ "optional": true
+ },
+ "@next/swc-freebsd-x64": {
+ "version": "12.2.6",
+ "resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.2.6.tgz",
+ "integrity": "sha512-p8TU7HCNjFEf7pLrKG0fAtuHKbIk8XWLCFvn0n54RvGAnQmwo0kzghU0I8RFzcl/XFbVhxg5oX9Npx/GBlPgcw==",
+ "optional": true
}
}
}