The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add CLI and API specs to search results
Terry Sutton0b660d3c5824
diff --git a/apps/docs/lib/refGenerator/helpers.ts b/apps/docs/lib/refGenerator/helpers.tsindex ed8f18f5e4e..77a7aa16755 100644--- a/apps/docs/lib/refGenerator/helpers.ts+++ b/apps/docs/lib/refGenerator/helpers.ts@@ -1,4 +1,4 @@-import { TsDoc } from '~/generator/legacy/definitions'+import { TsDoc } from '../../generator/legacy/definitions'import { values, mapValues } from 'lodash'import { OpenAPIV3 } from 'openapi-types'diff --git a/apps/docs/package.json b/apps/docs/package.jsonindex 4c40db4e3d1..2abc71adb53 100644--- a/apps/docs/package.json+++ b/apps/docs/package.json@@ -8,7 +8,7 @@"start": "next start","lint": "next lint","build:sitemap": "node ./internals/generate-sitemap.mjs",- "postbuild": "node ./scripts/build-search.js && node ./internals/generate-sitemap.mjs",+ "postbuild": "ts-node ./scripts/build-search.ts && node ./internals/generate-sitemap.mjs","generate:all": "npm-run-all --parallel gen:api gen:cli gen:gotrue gen:storage gen:supabase-dart:v0 gen:supabase-dart:v1 gen:supabase-js:v1 gen:supabase-js:v2 gen:realtime","gen:api": "npm-run-all gen:api:usage","gen:api:usage": "ts-node ./generator/index.ts gen --type api --url https://api.supabase.com --input ../../spec/transforms/api_v0_openapi_deparsed.json --output ./docs/reference/api/generated/usage.mdx",diff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xmlindex bbf3b19ddf2..056ae9301cd 100644--- a/apps/docs/public/sitemap.xml+++ b/apps/docs/public/sitemap.xml@@ -48,6 +48,24 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/new/auth</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/handbook/contributing</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/handbook/introduction</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/guides/api</loc><changefreq>weekly</changefreq>@@ -115,31 +133,43 @@</url><url>- <loc>https://supabase.com/docs/handbook/contributing</loc>+ <loc>https://supabase.com/docs/reference/index</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/handbook/introduction</loc>+ <loc>https://supabase.com/docs/tutorials/nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/new/auth</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/tutorials/nextjs</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/reference/index</loc>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -151,103 +181,109 @@</url><url>- <loc>https://supabase.com/docs/guides/functions/auth</loc>+ <loc>https://supabase.com/docs/new/auth/auth-login</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/best-practices</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-captcha</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/cicd-workflow</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-email</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/quickstart</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/architecture</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-magic-link</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/features</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-mfa</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-captcha</loc>+ <loc>https://supabase.com/docs/guides/auth/managing-user-data</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-email</loc>+ <loc>https://supabase.com/docs/guides/auth/overview</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers</loc>+ <loc>https://supabase.com/docs/guides/auth/phone-login</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-magic-link</loc>+ <loc>https://supabase.com/docs/guides/auth/row-level-security</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-mfa</loc>+ <loc>https://supabase.com/docs/guides/auth/server-side-rendering</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/managing-user-data</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/overview</loc>+ <loc>https://supabase.com/docs/guides/getting-started/architecture</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/phone-login</loc>+ <loc>https://supabase.com/docs/guides/getting-started/features</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/row-level-security</loc>+ <loc>https://supabase.com/docs/guides/functions/auth</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/server-side-rendering</loc>+ <loc>https://supabase.com/docs/guides/functions/best-practices</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login</loc>+ <loc>https://supabase.com/docs/guides/functions/cicd-workflow</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/guides/functions/quickstart</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -481,109 +517,91 @@</url><url>- <loc>https://supabase.com/docs/guides/platform/access-control</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/platform/compute-add-ons</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/platform/custom-domains</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/platform/database-usage</loc>+ <loc>https://supabase.com/docs/guides/realtime/postgres-changes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/going-into-prod</loc>+ <loc>https://supabase.com/docs/guides/realtime/quickstart</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/logs</loc>+ <loc>https://supabase.com/docs/guides/realtime/rate-limits</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/metrics</loc>+ <loc>https://supabase.com/docs/guides/platform/access-control</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects</loc>+ <loc>https://supabase.com/docs/guides/platform/compute-add-ons</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/network-restrictions</loc>+ <loc>https://supabase.com/docs/guides/platform/custom-domains</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/performance</loc>+ <loc>https://supabase.com/docs/guides/platform/database-usage</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/permissions</loc>+ <loc>https://supabase.com/docs/guides/platform/going-into-prod</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/sso</loc>+ <loc>https://supabase.com/docs/guides/platform/logs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/postgres-changes</loc>+ <loc>https://supabase.com/docs/guides/platform/metrics</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/quickstart</loc>+ <loc>https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/realtime/rate-limits</loc>+ <loc>https://supabase.com/docs/guides/platform/network-restrictions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/glossary</loc>+ <loc>https://supabase.com/docs/guides/platform/performance</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/self-hosting</loc>+ <loc>https://supabase.com/docs/guides/platform/permissions</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/resources/supabase-cli</loc>+ <loc>https://supabase.com/docs/guides/platform/sso</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -619,349 +637,331 @@</url><url>- <loc>https://supabase.com/docs/new/auth/auth-login</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-google-oauth</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-gotrue</loc>+ <loc>https://supabase.com/docs/guides/resources/glossary</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-policies</loc>+ <loc>https://supabase.com/docs/guides/resources/self-hosting</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/learn/auth-deep-dive/auth-row-level-security</loc>+ <loc>https://supabase.com/docs/guides/resources/supabase-cli</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/functions/examples/og-image</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/auth-ui</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nextjs</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/nextjs-server-components</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nuxtjs</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/reactjs</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/remix</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-angular</loc>+ <loc>https://supabase.com/docs/guides/auth/auth-helpers/sveltekit</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-expo</loc>+ <loc>https://supabase.com/docs/guides/auth/phone-login/messagebird</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-flutter</loc>+ <loc>https://supabase.com/docs/guides/auth/phone-login/twilio</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-angular</loc>+ <loc>https://supabase.com/docs/guides/auth/phone-login/vonage</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-react</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-apple</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-vue</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-azure</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-nextjs</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-bitbucket</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-nuxt-3</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-discord</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-react</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-facebook</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-redwoodjs</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-github</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-solidjs</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-gitlab</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-svelte</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-google</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-sveltekit</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-keycloak</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-vue-3</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-linkedin</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/auth-ui</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-notion</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/nextjs-server-components</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-slack</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/nextjs</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-spotify</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/remix</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitch</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/auth-helpers/sveltekit</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitter</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/phone-login/messagebird</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-workos</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/phone-login/twilio</loc>+ <loc>https://supabase.com/docs/guides/auth/social-login/auth-zoom</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/phone-login/vonage</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-apple</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nuxtjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-azure</loc>+ <loc>https://supabase.com/docs/guides/getting-started/quickstarts/reactjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-bitbucket</loc>+ <loc>https://supabase.com/docs/guides/functions/examples/og-image</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-discord</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/http</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-facebook</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgcron</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-github</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgnet</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-gitlab</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/pgtap</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-google</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/plv8</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-keycloak</loc>+ <loc>https://supabase.com/docs/guides/database/extensions/uuid-ossp</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-linkedin</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-angular</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-notion</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-expo</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-slack</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-flutter</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-spotify</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-angular</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitch</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-react</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-twitter</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-ionic-vue</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-workos</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/auth/social-login/auth-zoom</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-nuxt-3</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/sso/azure</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-react</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/sso/gsuite</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-redwoodjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/platform/sso/okta</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-solidjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/http</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-svelte</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgcron</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-sveltekit</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgnet</loc>+ <loc>https://supabase.com/docs/guides/getting-started/tutorials/with-vue-3</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/pgtap</loc>+ <loc>https://supabase.com/docs/guides/platform/sso/azure</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/plv8</loc>+ <loc>https://supabase.com/docs/guides/platform/sso/gsuite</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/database/extensions/uuid-ossp</loc>+ <loc>https://supabase.com/docs/guides/platform/sso/okta</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>diff --git a/apps/docs/scripts/build-search.js b/apps/docs/scripts/build-search.tssimilarity index 60%rename from apps/docs/scripts/build-search.jsrename to apps/docs/scripts/build-search.tsindex 3ba6d1c8f9e..1fdc4e18a88 100644--- a/apps/docs/scripts/build-search.js+++ b/apps/docs/scripts/build-search.ts@@ -1,84 +1,21 @@-const fs = require('fs')-const crypto = require('crypto')-const path = require('path')-const matter = require('gray-matter')-const dotenv = require('dotenv')-const algoliasearch = require('algoliasearch/lite')-const { isEmpty } = require('lodash')-const yaml = require('js-yaml')-const commonLibSections = require('../../../spec/common-client-libs-sections.json')--function flattenSections(sections) {- var a = []- for (var i = 0; i < sections.length; i++) {- if (sections[i].id) {- // only push a section that has an id- // these are reserved for sidebar subtitles- a.push(sections[i])- }- if (sections[i].items) {- // if there are subitems, loop through- a = a.concat(flattenSections(sections[i].items))- }- }- return a-}--const clientLibFiles = [- { fileName: 'supabase_js_v2', label: 'javascript', version: 'v2', versionSlug: false },- { fileName: 'supabase_js_v1', label: 'javascript', version: 'v1', versionSlug: true },- { fileName: 'supabase_dart_v1', label: 'dart', version: 'v1', versionSlug: false },- { fileName: 'supabase_dart_v0', label: 'dart', version: 'v0', versionSlug: true },-]--const nameMap = {- api: 'Management API',- cli: 'Supabase CLI',- auth: 'Auth Server',- storage: 'Storage Server',- postgres: 'Postgres',- dart: 'Supabase Flutter Library',- javascript: 'Supabase JavaScript Library',-}--const flatCommonLibSections = flattenSections(commonLibSections)--// loop through each spec file, find the correspending entry in the common file and grab the title / description / slug-let clientLibSearchObjects = []--clientLibFiles.map((file) => {- const specs = yaml.load(fs.readFileSync(`../../spec/${file.fileName}.yml`, 'utf8'))-- //take each function id, find it in the commonLibSections file and return { id, title, slug, description, }- specs.functions.map((fn) => {- const item = flatCommonLibSections.find((section) => section.id === fn.id)- if (item) {- const object = clientLibSearchObjects.push({- objectID: crypto.randomUUID(),- id: item.id,- title: item.title,- description: item.title,- url: `/reference/${file.label}/${file.versionSlug ? file.version + '/' : ''}${item.slug}`,- source: 'reference',- pageContent: '',- category: item.product,- version: file.version,- type: 'lvl2',- hierarchy: {- lvl0: 'References',- lvl1: `${nameMap[file.label]} ${file.version}`,- lvl2: item.title,- lvl3: file.version,- lvl4: null,- lvl5: null,- lvl6: null,- },- })- return object- }- })-})-+import fs from 'fs'+import crypto from 'crypto'+import path from 'path'+import matter from 'gray-matter'+import dotenv from 'dotenv'+import algoliasearch from 'algoliasearch/lite'+import { isEmpty } from 'lodash'++// search objects+import { generateClientLibSearchObjects } from './files/client-libs'+import { generateAPISearchObjects } from './files/api'+import { generateCLISearchObjects } from './files/cli'++const cliObjects = generateCLISearchObjects()+const apiObjects = generateAPISearchObjects()+const clientLibSearchObjects = generateClientLibSearchObjects()++// @ts-ignore// The properties of the searchObject that are specifically read// by DocSearch are "type" and "hierarchy". The rest, though saved into Algolia (which we// can potentially use to craft more nuanced search experiences) are not used by DocSearch@@ -97,6 +34,7 @@ const ignoredFiles = [async function walk(dir) {let files = await fs.promises.readdir(dir)+ //@ts-ignorefiles = await Promise.all(files.map(async (file) => {const filePath = path.join(dir, file)@@ -131,7 +69,7 @@ async function walk(dir) {const guidePages = (await walk('pages')).filter((slug) => !ignoredFiles.includes(slug))- // generate search objects for guide pages+ // generate search objects for mdx guide pagesconst guidePagesearchObjects = guidePages.map((slug) => {let id, title, description@@ -196,13 +134,20 @@ async function walk(dir) {.filter((object) => !object.url.endsWith('/index')).filter((object) => !object.url.endsWith('/.gitkeep'))- const combinedSearchObjects = guidePagesearchObjects.concat(clientLibSearchObjects)+ const combinedSearchObjects = guidePagesearchObjects.concat(+ clientLibSearchObjects,+ apiObjects,+ cliObjects+ )+ //@ts-ignoreawait index.clearObjects()console.log(`Successfully cleared records from ${indexName}`)+ //@ts-ignoreconst algoliaResponse = await index.saveObjects(combinedSearchObjects)+ //@ts-ignoreconsole.log(`Successfully saved ${algoliaResponse.objectIDs.length} records into ${indexName}.`)} catch (error) {console.log('Error:', error)diff --git a/apps/docs/scripts/files/api.ts b/apps/docs/scripts/files/api.tsnew file mode 100644index 00000000000..ed98a9c4921--- /dev/null+++ b/apps/docs/scripts/files/api.ts@@ -0,0 +1,43 @@+import crypto from 'crypto'+import { flattenSections } from '../../lib/helpers'++import apiCommonSections from '~/../../spec/common-api-sections.json'+import specFile from '~/../../spec/transforms/api_v0_openapi_deparsed.json'+import { gen_v3 } from '../../lib/refGenerator/helpers'++// @ts-ignore+const generatedSpec = gen_v3(specFile, 'wat', { apiUrl: 'apiv0' })+const sections = flattenSections(apiCommonSections)++export function generateAPISearchObjects() {+ let searchObjects = []++ //@ts-ignore+ sections.map((section) => {+ const object = searchObjects.push({+ objectID: crypto.randomUUID(),+ id: section.id,+ title: section.title,+ // @ts-ignore+ description: generatedSpec.operations.find((item) => item.operationId === section.id)+ ?.summary,+ url: `/reference/api/${section.slug}`,+ source: 'reference',+ pageContent: '',+ category: section.product,+ version: '',+ type: 'lvl2',+ hierarchy: {+ lvl0: 'References',+ lvl1: 'Management API',+ lvl2: section.title,+ lvl3: null,+ lvl4: null,+ lvl5: null,+ lvl6: null,+ },+ })+ return object+ })+ return searchObjects+}diff --git a/apps/docs/scripts/files/cli.ts b/apps/docs/scripts/files/cli.tsnew file mode 100644index 00000000000..84caae225c6--- /dev/null+++ b/apps/docs/scripts/files/cli.ts@@ -0,0 +1,43 @@+import crypto from 'crypto'+import fs from 'fs'+import { flattenSections } from '../../lib/helpers'+import cliCommonSections from '~/../../spec/common-cli-sections.json'+import yaml from 'js-yaml'++// @ts-ignore++const spec = yaml.load(fs.readFileSync(`../../spec/cli_v1_commands.yaml`, 'utf8'))++const commonSections = flattenSections(cliCommonSections)++export function generateCLISearchObjects() {+ let searchObjects = []++ //@ts-ignore+ spec.commands.map((section) => {+ const object = searchObjects.push({+ objectID: crypto.randomUUID(),+ id: section.id,+ title: section.title,+ // @ts-ignore+ description: section.description?.substr(0, section.description.indexOf('\n')),+ url: `/reference/cli/${commonSections.find((item) => item.id === section.id)?.slug}`,+ source: 'reference',+ pageContent: '',+ category: section.product,+ version: '',+ type: 'lvl2',+ hierarchy: {+ lvl0: 'References',+ lvl1: 'Supabase CLI',+ lvl2: section.title,+ lvl3: null,+ lvl4: null,+ lvl5: null,+ lvl6: null,+ },+ })+ return object+ })+ return searchObjects+}diff --git a/apps/docs/scripts/files/client-libs.ts b/apps/docs/scripts/files/client-libs.tsnew file mode 100644index 00000000000..714769ebcc7--- /dev/null+++ b/apps/docs/scripts/files/client-libs.ts@@ -0,0 +1,57 @@+import fs from 'fs'+import crypto from 'crypto'+import yaml from 'js-yaml'+import { flattenSections } from '../../lib/helpers'+import { nameMap } from '../helpers'++import commonLibSections from '~/../../spec/common-client-libs-sections.json'++const clientLibFiles = [+ { fileName: 'supabase_js_v2', label: 'javascript', version: 'v2', versionSlug: false },+ { fileName: 'supabase_js_v1', label: 'javascript', version: 'v1', versionSlug: true },+ { fileName: 'supabase_dart_v1', label: 'dart', version: 'v1', versionSlug: false },+ { fileName: 'supabase_dart_v0', label: 'dart', version: 'v0', versionSlug: true },+ { fileName: 'supabase_dart_v0', label: 'dart', version: 'v0', versionSlug: true },+]++const flatCommonLibSections = flattenSections(commonLibSections)++export function generateClientLibSearchObjects() {+ // loop through each spec file, find the correspending entry in the common file and grab the title / description / slug+ let clientLibSearchObjects = []++ clientLibFiles.map((file) => {+ const specs = yaml.load(fs.readFileSync(`../../spec/${file.fileName}.yml`, 'utf8'))++ //take each function id, find it in the commonLibSections file and return { id, title, slug, description, }+ //@ts-ignore+ specs.functions.map((fn) => {+ const item = flatCommonLibSections.find((section) => section.id === fn.id)+ if (item) {+ const object = clientLibSearchObjects.push({+ objectID: crypto.randomUUID(),+ id: item.id,+ title: item.title,+ description: item.title,+ url: `/reference/${file.label}/${file.versionSlug ? file.version + '/' : ''}${item.slug}`,+ source: 'reference',+ pageContent: '',+ category: item.product,+ version: file.version,+ type: 'lvl2',+ hierarchy: {+ lvl0: 'References',+ lvl1: `${nameMap[file.label]} ${file.version}`,+ lvl2: item.title,+ lvl3: file.version,+ lvl4: null,+ lvl5: null,+ lvl6: null,+ },+ })+ return object+ }+ })+ })+ return clientLibSearchObjects+}diff --git a/apps/docs/scripts/helpers.ts b/apps/docs/scripts/helpers.tsnew file mode 100644index 00000000000..97ae8ddb86e--- /dev/null+++ b/apps/docs/scripts/helpers.ts@@ -0,0 +1,9 @@+export const nameMap = {+ api: 'Management API',+ cli: 'Supabase CLI',+ auth: 'Auth Server',+ storage: 'Storage Server',+ postgres: 'Postgres',+ dart: 'Supabase Flutter Library',+ javascript: 'Supabase JavaScript Library',+}diff --git a/apps/docs/scripts/tsconfig.json b/apps/docs/scripts/tsconfig.jsonnew file mode 100644index 00000000000..de1ecb67a32--- /dev/null+++ b/apps/docs/scripts/tsconfig.json@@ -0,0 +1,15 @@+// generator files need their own tsconfig.json because they don't like "module": "esnext" setting that nextjs requires in the main tsconfig+{+ "compilerOptions": {+ "incremental": true,+ "noImplicitAny": false,+ "esModuleInterop": true,+ "resolveJsonModule": true,+ "baseUrl": ".",+ "paths": {+ "~/*": ["./*"]+ }+ },+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],+ "exclude": ["node_modules"]+}