Skip to content

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

fix(content): Remove map calls. Improve md extraction. (#46511)

Jeremias Menichellib4448fedd23e
diff --git a/apps/docs/content/guides/ai.mdx b/apps/docs/content/guides/ai.mdx
index fa6fad89c0c..4fb8c15b66c 100644
--- a/apps/docs/content/guides/ai.mdx
+++ b/apps/docs/content/guides/ai.mdx
@@ -31,15 +31,72 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
{/* <!-- vale off --> */}
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {aiExamples.map((x) => (
- <div className="col-span-4" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title={x.name}>
- {x.description}
- </GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-4">
+ <Link href="/guides/ai/examples/headless-vector-search" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Headless Vector Search"
+ >
+ A toolkit to perform vector similarity search on your knowledge base embeddings.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/examples/image-search-openai-clip" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Image Search with OpenAI CLIP"
+ >
+ Implement image search with the OpenAI CLIP Model and Supabase Vector.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/examples/huggingface-image-captioning" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Hugging Face inference"
+ >
+ Generate image captions using Hugging Face.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/examples/openai" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="OpenAI completions"
+ >
+ Generate GPT text completions using OpenAI in Edge Functions.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/examples/building-chatgpt-plugins" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Building ChatGPT Plugins"
+ >
+ Use Supabase as a Retrieval Store for your ChatGPT plugin.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/examples/nextjs-vector-search" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Vector search with Next.js and OpenAI"
+ >
+ Learn how to build a ChatGPT-style doc search powered by Next.js, OpenAI, and Supabase.
+ </GlassPanel>
+ </Link>
+ </div>
</div>
{/* <!-- vale on --> */}
@@ -49,13 +106,45 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
{/* <!-- vale off --> */}
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {aiIntegrations.map((x) => (
- <div className="col-span-4" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel title={x.name}>{x.description}</GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-4">
+ <Link href="/guides/ai/examples/building-chatgpt-plugins" passHref>
+ <GlassPanel title="OpenAI">
+ OpenAI is an AI research and deployment company. Supabase provides a simple way to use
+ OpenAI in your applications.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/integrations/amazon-bedrock" passHref>
+ <GlassPanel title="Amazon Bedrock">
+ A fully managed service that offers a choice of high-performing foundation models from
+ leading AI companies.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/hugging-face" passHref>
+ <GlassPanel title="Hugging Face">
+ Hugging Face is an open-source provider of NLP technologies. Supabase provides a simple way
+ to use Hugging Face's models in your applications.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/langchain" passHref>
+ <GlassPanel title="LangChain">
+ LangChain is a language-agnostic, open-source, and self-hosted API for text translation,
+ summarization, and sentiment analysis.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/integrations/llamaindex" passHref>
+ <GlassPanel title="LlamaIndex">
+ LlamaIndex is a data framework for your LLM applications.
+ </GlassPanel>
+ </Link>
+ </div>
</div>
{/* <!-- vale on --> */}
@@ -65,32 +154,31 @@ Check out all of the AI [templates and examples](https://github.com/supabase/sup
{/* <!-- vale off --> */}
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {[
- {
- name: 'Berri AI Boosts Productivity by Migrating from AWS RDS to Supabase with pgvector',
- description:
- 'Learn how Berri AI overcame challenges with self-hosting their vector database on AWS RDS and successfully migrated to Supabase.',
- href: 'https://supabase.com/customers/berriai',
- },
- {
- name: 'Firecrawl switches from Pinecone to Supabase for Postgres vector embeddings',
- description:
- 'How Firecrawl boosts efficiency and accuracy of chat powered search for documentation using Supabase with pgvector',
- href: 'https://supabase.com/customers/firecrawl',
- },
- {
- name: 'Markprompt: GDPR-Compliant AI Chatbots for Docs and Websites',
- description:
- "AI-powered chatbot platform, Markprompt, empowers developers to deliver efficient and GDPR-compliant prompt experiences on top of their content, by leveraging Supabase's secure and privacy-focused database and authentication solutions",
- href: 'https://supabase.com/customers/markprompt',
- },
- ].map((x) => (
- <div className="col-span-4" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel title={x.name}>{x.description}</GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-4">
+ <Link href="https://supabase.com/customers/berriai" passHref>
+ <GlassPanel title="Berri AI Boosts Productivity by Migrating from AWS RDS to Supabase with pgvector">
+ Learn how Berri AI overcame challenges with self-hosting their vector database on AWS RDS
+ and successfully migrated to Supabase.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="https://supabase.com/customers/firecrawl" passHref>
+ <GlassPanel title="Firecrawl switches from Pinecone to Supabase for Postgres vector embeddings">
+ How Firecrawl boosts efficiency and accuracy of chat powered search for documentation using
+ Supabase with pgvector
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="https://supabase.com/customers/markprompt" passHref>
+ <GlassPanel title="Markprompt: GDPR-Compliant AI Chatbots for Docs and Websites">
+ AI-powered chatbot platform, Markprompt, empowers developers to deliver efficient and
+ GDPR-compliant prompt experiences on top of their content, by leveraging Supabase's secure
+ and privacy-focused database and authentication solutions
+ </GlassPanel>
+ </Link>
+ </div>
</div>
{/* <!-- vale on --> */}
diff --git a/apps/docs/content/guides/auth/auth-hooks.mdx b/apps/docs/content/guides/auth/auth-hooks.mdx
index 94471ff8803..bc0a4d34ede 100644
--- a/apps/docs/content/guides/auth/auth-hooks.mdx
+++ b/apps/docs/content/guides/auth/auth-hooks.mdx
@@ -366,37 +366,39 @@ Outside of runtime errors, both HTTP Hooks and Postgres Hooks return timeout err
Each Hook description contains an example JSON Schema which you can use in conjunction with [JSON Schema Faker](https://json-schema-faker.js.org/) in order to generate a mock payload. For HTTP Hooks, you can also use [the Standard Webhooks Testing Tool](https://www.standardwebhooks.com/simulate) to simulate a request.
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {[
- {
- name: 'Custom Access Token',
- description: 'Customize the access token issued by Supabase Auth',
- href: '/guides/auth/auth-hooks/custom-access-token-hook',
- },
- {
- name: 'Send SMS',
- description: 'Use a custom SMS provider to send authentication messages',
- href: '/guides/auth/auth-hooks/send-sms-hook',
- },
- {
- name: 'Send Email',
- description: 'Use a custom email provider to send authentication messages',
- href: '/guides/auth/auth-hooks/send-email-hook',
- },
- {
- name: 'MFA Verification',
- description: 'Add additional checks to the MFA verification flow',
- href: '/guides/auth/auth-hooks/mfa-verification-hook',
- },
- {
- name: 'Password verification',
- description: 'Add additional checks to the password verification flow',
- href: '/guides/auth/auth-hooks/password-verification-hook',
- },
- ].map((x) => (
- <div className="col-span-4" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel title={x.name}>{x.description}</GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-4">
+ <Link href="/guides/auth/auth-hooks/custom-access-token-hook" passHref>
+ <GlassPanel title="Custom Access Token">
+ Customize the access token issued by Supabase Auth
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/auth/auth-hooks/send-sms-hook" passHref>
+ <GlassPanel title="Send SMS">
+ Use a custom SMS provider to send authentication messages
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/auth/auth-hooks/send-email-hook" passHref>
+ <GlassPanel title="Send Email">
+ Use a custom email provider to send authentication messages
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/auth/auth-hooks/mfa-verification-hook" passHref>
+ <GlassPanel title="MFA Verification">
+ Add additional checks to the MFA verification flow
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/auth/auth-hooks/password-verification-hook" passHref>
+ <GlassPanel title="Password verification">
+ Add additional checks to the password verification flow
+ </GlassPanel>
+ </Link>
+ </div>
</div>
diff --git a/apps/docs/content/guides/auth/oauth-server.mdx b/apps/docs/content/guides/auth/oauth-server.mdx
index f6b5c9736ce..31df7fae5fc 100644
--- a/apps/docs/content/guides/auth/oauth-server.mdx
+++ b/apps/docs/content/guides/auth/oauth-server.mdx
@@ -54,35 +54,34 @@ OAuth 2.1 Server works seamlessly with your existing Supabase Auth configuration
To enable OAuth 2.1 Server in your project, follow these guides:
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {[
- {
- name: 'Getting Started',
- description:
- 'Enable OAuth 2.1, configure your authorization endpoint, and register your first client.',
- href: '/guides/auth/oauth-server/getting-started',
- },
- {
- name: 'OAuth Flows',
- description: 'Detailed walkthrough of authorization code and refresh token flows.',
- href: '/guides/auth/oauth-server/oauth-flows',
- },
- {
- name: 'MCP Authentication',
- description: 'Authenticate AI agents and LLM tools using Model Context Protocol.',
- href: '/guides/auth/oauth-server/mcp-authentication',
- },
- {
- name: 'Token Security & RLS',
- description: 'Control data access with Row Level Security policies for OAuth clients.',
- href: '/guides/auth/oauth-server/token-security',
- },
- ].map((x) => (
- <div className="col-span-6" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel title={x.name}>{x.description}</GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-6">
+ <Link href="/guides/auth/oauth-server/getting-started" passHref>
+ <GlassPanel title="Getting Started">
+ Enable OAuth 2.1, configure your authorization endpoint, and register your first client.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-6">
+ <Link href="/guides/auth/oauth-server/oauth-flows" passHref>
+ <GlassPanel title="OAuth Flows">
+ Detailed walkthrough of authorization code and refresh token flows.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-6">
+ <Link href="/guides/auth/oauth-server/mcp-authentication" passHref>
+ <GlassPanel title="MCP Authentication">
+ Authenticate AI agents and LLM tools using Model Context Protocol.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-6">
+ <Link href="/guides/auth/oauth-server/token-security" passHref>
+ <GlassPanel title="Token Security & RLS">
+ Control data access with Row Level Security policies for OAuth clients.
+ </GlassPanel>
+ </Link>
+ </div>
</div>
## Resources
diff --git a/apps/docs/content/guides/auth/server-side.mdx b/apps/docs/content/guides/auth/server-side.mdx
index d0fdc6cd108..782db4bc501 100644
--- a/apps/docs/content/guides/auth/server-side.mdx
+++ b/apps/docs/content/guides/auth/server-side.mdx
@@ -20,28 +20,16 @@ We have developed an [`@supabase/ssr`](https://www.npmjs.com/package/@supabase/s
## Framework quickstarts
<div className="grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-6 mb-6 not-prose">
- {[
- {
- title: 'Next.js',
- href: '/guides/auth/server-side/nextjs',
- description:
- 'Automatically configure Supabase in Next.js to use cookies, making your user and their session available on the client and server.',
- icon: '/docs/img/icons/nextjs-icon',
- },
- {
- title: 'SvelteKit',
- href: '/guides/auth/server-side/sveltekit',
- description:
- 'Automatically configure Supabase in SvelteKit to use cookies, making your user and their session available on the client and server.',
- icon: '/docs/img/icons/svelte-icon',
- },
- ].map((item) => {
- return (
- <Link href={`${item.href}`} key={item.title} passHref>
- <GlassPanel title={item.title} background={false} icon={item.icon}>
- {item.description}
- </GlassPanel>
- </Link>
- )
- })}
+ <Link href="/guides/auth/server-side/nextjs" passHref>
+ <GlassPanel title="Next.js" background={false} icon="/docs/img/icons/nextjs-icon">
+ Automatically configure Supabase in Next.js to use cookies, making your user and their session
+ available on the client and server.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/auth/server-side/sveltekit" passHref>
+ <GlassPanel title="SvelteKit" background={false} icon="/docs/img/icons/svelte-icon">
+ Automatically configure Supabase in SvelteKit to use cookies, making your user and their
+ session available on the client and server.
+ </GlassPanel>
+ </Link>
</div>
diff --git a/apps/docs/content/guides/cli.mdx b/apps/docs/content/guides/cli.mdx
index 5c81c2414bf..13297eba2c2 100644
--- a/apps/docs/content/guides/cli.mdx
+++ b/apps/docs/content/guides/cli.mdx
@@ -13,25 +13,19 @@ The Supabase CLI provides tools to develop your project locally, deploy to the S
## Resources
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {[
- {
- name: 'Supabase CLI',
- description:
- 'The Supabase CLI provides tools to develop manage your Supabase projects from your local machine.',
- href: 'https://github.com/supabase/cli',
- },
- {
- name: 'GitHub Action',
- description: ' A GitHub action for interacting with your Supabase projects using the CLI.',
- href: 'https://github.com/supabase/setup-cli',
- },
- ].map((x) => (
- <div className="col-span-6" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title={x.name}>
- {x.description}
- </GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-6">
+ <Link href="https://github.com/supabase/cli" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Supabase CLI">
+ The Supabase CLI provides tools to develop manage your Supabase projects from your local
+ machine.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-6">
+ <Link href="https://github.com/supabase/setup-cli" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="GitHub Action">
+ A GitHub action for interacting with your Supabase projects using the CLI.
+ </GlassPanel>
+ </Link>
+ </div>
</div>
diff --git a/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx b/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx
index eac4f7bf93a..24591674340 100644
--- a/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx
+++ b/apps/docs/content/guides/database/connecting-to-postgres/serverless-drivers.mdx
@@ -19,46 +19,25 @@ Choose one of these Vercel Deploy Templates which use our [Vercel Deploy Integra
<div>
<div className="grid grid-cols-12 gap-6 not-prose">
- {[
- {
- title: 'supabase-js',
- hasLightIcon: true,
- href: 'https://supabase.link/nextjs-with-supabase-starter',
- description: 'A Next.js App Router template configured with cookie-based auth using Supabase, TypeScript and Tailwind CSS.'
- },
- /* { TODO: Link the correct next.js template that uses drizzle ORM with supabase database.
- hasLightIcon: true,
- href: 'https://supabase.link/nextjs-supabase-drizzle',
- description: "Simple Next.js template that uses Supabase as the database and Drizzle as the ORM.",
- },*/
- {
- title: 'Kysely',
- hasLightIcon: true,
- href: 'https://supabase.link/nextjs-supabase-kysely',
- description: 'Simple Next.js template that uses Supabase as the database and Kysely as the query builder.',
- },
- /* { TODO: figure out how to get around Prisma accelerate requirement...
- title: 'Prisma',
- hasLightIcon: true,
- href: 'https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fstorage%2Fpostgres-prisma&project-name=postgres-prisma&repository-name=postgres-prisma&demo-title=Vercel%20Postgres%20%2B%20Prisma%20Next.js%20Starter&demo-description=Simple%20Next.js%20template%20that%20uses%20Vercel%20Postgres%20as%20the%20database%20and%20Prisma%20as%20the%20ORM.&demo-url=https%3A%2F%2Fpostgres-prisma.vercel.app%2F&demo-image=https%3A%2F%2Fpostgres-prisma.vercel.app%2Fopengraph-image.png&integration-ids=oac_VqOgBHqhEoFTPzGkPd7L0iH6',
- description: 'Simple Next.js template that uses Vercel Postgres as the database and Prisma as the ORM.',
- } */
- ].map((resource) => {
- return (
- <Link
- href={`${resource.href}`}
- key={resource.title}
- className={'col-span-12 md:col-span-4'}
- passHref
- >
- <GlassPanel {...resource} background={false} showIconBg={true}>
- {resource.description}
- </GlassPanel>
- </Link>
- )
-
-})}
-
+ <Link
+ href="https://supabase.link/nextjs-with-supabase-starter"
+ className="col-span-12 md:col-span-4"
+ passHref
+ >
+ <GlassPanel title="supabase-js" hasLightIcon={true} background={false} showIconBg={true}>
+ A Next.js App Router template configured with cookie-based auth using Supabase, TypeScript
+ and Tailwind CSS.
+ </GlassPanel>
+ </Link>
+ <Link
+ href="https://supabase.link/nextjs-supabase-kysely"
+ className="col-span-12 md:col-span-4"
+ passHref
+ >
+ <GlassPanel title="Kysely" hasLightIcon={true} background={false} showIconBg={true}>
+ Simple Next.js template that uses Supabase as the database and Kysely as the query builder.
+ </GlassPanel>
+ </Link>
</div>
</div>
@@ -75,9 +54,9 @@ POSTGRES_URL="postgres://postgres.cfcxynqnhdybqtbhjemm:[YOUR-PASSWORD]@aws-0-ap-
<TabPanel id="drizzle" label="Drizzle">
```ts lib/drizzle.ts
-import { pgTable, serial, text, timestamp, uniqueIndex } from 'drizzle-orm/pg-core'
-import { InferSelectModel, InferInsertModel } from 'drizzle-orm'
import { sql } from '@vercel/postgres'
+import { InferInsertModel, InferSelectModel } from 'drizzle-orm'
+import { pgTable, serial, text, timestamp, uniqueIndex } from 'drizzle-orm/pg-core'
import { drizzle } from 'drizzle-orm/vercel-postgres'
export const UsersTable = pgTable(
@@ -107,8 +86,8 @@ export const db = drizzle(sql)
<TabPanel id="kysely" label="Kysely">
```ts lib/kysely.ts
-import { Generated, ColumnType } from 'kysely'
import { createKysely } from '@vercel/postgres-kysely'
+import { ColumnType, Generated } from 'kysely'
interface UserTable {
// Columns that are generated by the database should be marked
diff --git a/apps/docs/content/guides/functions.mdx b/apps/docs/content/guides/functions.mdx
index fdcf0627f9a..71839126532 100644
--- a/apps/docs/content/guides/functions.mdx
+++ b/apps/docs/content/guides/functions.mdx
@@ -52,156 +52,284 @@ Edge Functions are server-side TypeScript functions, distributed globally at the
Check out the [Edge Function Examples](https://github.com/supabase/supabase/tree/master/examples/edge-functions) in our GitHub repository.
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {[
- {
- name: 'With supabase-js',
- description: 'Use the Supabase client inside your Edge Function.',
- href: '/guides/functions/auth',
- },
- {
- name: 'Type-Safe SQL with Kysely',
- description:
- 'Combining Kysely with Deno Postgres gives you a convenient developer experience for interacting directly with your Postgres database.',
- href: '/guides/functions/kysely-postgres',
- },
- {
- name: 'Monitoring with Sentry',
- description: 'Monitor Edge Functions with the Sentry Deno SDK.',
- href: '/guides/functions/examples/sentry-monitoring',
- },
- {
- name: 'With CORS headers',
- description: 'Send CORS headers for invoking from the browser.',
- href: '/guides/functions/cors',
- },
- {
- name: 'React Native with Stripe',
- description: 'Full example for using Supabase and Stripe, with Expo.',
- href: 'https://github.com/supabase-community/expo-stripe-payments-with-supabase-functions',
- },
- {
- name: 'Flutter with Stripe',
- description: 'Full example for using Supabase and Stripe, with Flutter.',
- href: 'https://github.com/supabase-community/flutter-stripe-payments-with-supabase-functions',
- },
- {
- name: 'Building a RESTful Service API',
- description:
- 'Learn how to use HTTP methods and paths to build a RESTful service for managing tasks.',
- href: 'https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/restful-tasks/index.ts',
- },
- {
- name: 'Working with Supabase Storage',
- description: 'An example on reading a file from Supabase Storage.',
- href: 'https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/read-storage/index.ts',
- },
- {
- name: 'Open Graph Image Generation',
- description: 'Generate Open Graph images with Deno and Supabase Edge Functions.',
- href: '/guides/functions/examples/og-image',
- },
- {
- name: 'OG Image Generation & Storage CDN Caching',
- description: 'Cache generated images with Supabase Storage CDN.',
- href: 'https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/og-image-with-storage-cdn',
- },
- {
- name: 'Get User Location',
- description: `Get user location data from user's IP address.`,
- href: 'https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/location',
- },
- {
- name: 'Cloudflare Turnstile',
- description: `Protecting Forms with Cloudflare Turnstile.`,
- href: '/guides/functions/examples/cloudflare-turnstile',
- },
- {
- name: 'Connect to Postgres',
- description: `Connecting to Postgres from Edge Functions.`,
- href: '/guides/functions/connect-to-postgres',
- },
- {
- name: 'GitHub Actions',
- description: `Deploying Edge Functions with GitHub Actions.`,
- href: '/guides/functions/examples/github-actions',
- },
- {
- name: 'Oak Server Middleware',
- description: `Request Routing with Oak server middleware.`,
- href: 'https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/oak-server',
- },
- {
- name: 'Hugging Face',
- description: `Access 100,000+ Machine Learning models.`,
- href: '/guides/ai/examples/huggingface-image-captioning',
- },
- {
- name: 'Amazon Bedrock',
- description: `Amazon Bedrock Image Generator`,
- href: '/guides/functions/examples/amazon-bedrock-image-generator',
- },
- {
- name: 'OpenAI',
- description: `Using OpenAI in Edge Functions.`,
- href: '/guides/ai/examples/openai',
- },
- {
- name: 'Stripe Webhooks',
- description: `Handling signed Stripe Webhooks with Edge Functions.`,
- href: '/guides/functions/examples/stripe-webhooks',
- },
- {
- name: 'Send emails',
- description: `Send emails in Edge Functions with Resend.`,
- href: '/guides/functions/examples/send-emails',
- },
- {
- name: 'Web Stream',
- description: `Server-Sent Events in Edge Functions.`,
- href: 'https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/streams',
- },
- {
- name: 'Puppeteer',
- description: `Generate screenshots with Puppeteer.`,
- href: '/guides/functions/examples/screenshots',
- },
- {
- name: 'Discord Bot',
- description: `Building a Slash Command Discord Bot with Edge Functions.`,
- href: '/guides/functions/examples/discord-bot',
- },
- {
- name: 'Telegram Bot',
- description: `Building a Telegram Bot with Edge Functions.`,
- href: '/guides/functions/examples/telegram-bot',
- },
- {
- name: 'Upload File',
- description: `Process multipart/form-data.`,
- href: 'https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/file-upload-storage',
- },
- {
- name: 'Upstash Redis',
- description: `Build an Edge Functions Counter with Upstash Redis.`,
- href: '/guides/functions/examples/upstash-redis',
- },
- {
- name: 'Rate Limiting',
- description: `Rate Limiting Edge Functions with Upstash Redis.`,
- href: '/guides/functions/examples/rate-limiting',
- },
- {
- name: 'Slack Bot Mention Edge Function',
- description: `Slack Bot handling Slack mentions in Edge Function`,
- href: '/guides/functions/examples/slack-bot-mention',
- },
- ].map((x) => (
- <div className="col-span-4" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title={x.name}>
- {x.description}
- </GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-4">
+ <Link href="/guides/functions/auth" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="With supabase-js">
+ Use the Supabase client inside your Edge Function.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/kysely-postgres" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Type-Safe SQL with Kysely"
+ >
+ Combining Kysely with Deno Postgres gives you a convenient developer experience for
+ interacting directly with your Postgres database.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/sentry-monitoring" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Monitoring with Sentry"
+ >
+ Monitor Edge Functions with the Sentry Deno SDK.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/cors" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="With CORS headers"
+ >
+ Send CORS headers for invoking from the browser.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link
+ href="https://github.com/supabase-community/expo-stripe-payments-with-supabase-functions"
+ passHref
+ >
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="React Native with Stripe"
+ >
+ Full example for using Supabase and Stripe, with Expo.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link
+ href="https://github.com/supabase-community/flutter-stripe-payments-with-supabase-functions"
+ passHref
+ >
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Flutter with Stripe"
+ >
+ Full example for using Supabase and Stripe, with Flutter.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link
+ href="https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/restful-tasks/index.ts"
+ passHref
+ >
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Building a RESTful Service API"
+ >
+ Learn how to use HTTP methods and paths to build a RESTful service for managing tasks.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link
+ href="https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/read-storage/index.ts"
+ passHref
+ >
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Working with Supabase Storage"
+ >
+ An example on reading a file from Supabase Storage.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/og-image" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Open Graph Image Generation"
+ >
+ Generate Open Graph images with Deno and Supabase Edge Functions.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link
+ href="https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/og-image-with-storage-cdn"
+ passHref
+ >
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="OG Image Generation & Storage CDN Caching"
+ >
+ Cache generated images with Supabase Storage CDN.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link
+ href="https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/location"
+ passHref
+ >
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Get User Location"
+ >
+ Get user location data from user's IP address.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/cloudflare-turnstile" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Cloudflare Turnstile"
+ >
+ Protecting Forms with Cloudflare Turnstile.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/connect-to-postgres" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Connect to Postgres"
+ >
+ Connecting to Postgres from Edge Functions.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/github-actions" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="GitHub Actions">
+ Deploying Edge Functions with GitHub Actions.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link
+ href="https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/oak-server"
+ passHref
+ >
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Oak Server Middleware"
+ >
+ Request Routing with Oak server middleware.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/examples/huggingface-image-captioning" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Hugging Face">
+ Access 100,000+ Machine Learning models.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/amazon-bedrock-image-generator" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Amazon Bedrock">
+ Amazon Bedrock Image Generator
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/ai/examples/openai" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="OpenAI">
+ Using OpenAI in Edge Functions.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/stripe-webhooks" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Stripe Webhooks">
+ Handling signed Stripe Webhooks with Edge Functions.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/send-emails" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Send emails">
+ Send emails in Edge Functions with Resend.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link
+ href="https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/streams"
+ passHref
+ >
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Web Stream">
+ Server-Sent Events in Edge Functions.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/screenshots" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Puppeteer">
+ Generate screenshots with Puppeteer.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/discord-bot" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Discord Bot">
+ Building a Slash Command Discord Bot with Edge Functions.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/telegram-bot" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Telegram Bot">
+ Building a Telegram Bot with Edge Functions.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link
+ href="https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/file-upload-storage"
+ passHref
+ >
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Upload File">
+ Process multipart/form-data.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/upstash-redis" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Upstash Redis">
+ Build an Edge Functions Counter with Upstash Redis.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/rate-limiting" passHref>
+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title="Rate Limiting">
+ Rate Limiting Edge Functions with Upstash Redis.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-4">
+ <Link href="/guides/functions/examples/slack-bot-mention" passHref>
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Slack Bot Mention Edge Function"
+ >
+ Slack Bot handling Slack mentions in Edge Function
+ </GlassPanel>
+ </Link>
+ </div>
</div>
diff --git a/apps/docs/content/guides/getting-started.mdx b/apps/docs/content/guides/getting-started.mdx
index 45807648272..7559d93015f 100644
--- a/apps/docs/content/guides/getting-started.mdx
+++ b/apps/docs/content/guides/getting-started.mdx
@@ -9,43 +9,28 @@ hideToc: true
<div>
- <div className="grid grid-cols-12 gap-6 not-prose">
- {[
- {
- title: 'Build with AI tools',
- description: 'Develop with Supabase AI-first using plugins, MCP, and skills.',
- hasLightIcon: true,
- href: '/guides/ai',
- },
- {
- title: 'API Keys',
- hasLightIcon: true,
- href: '/guides/getting-started/api-keys',
- description: 'Learn about the different API keys in Supabase and how to use them.',
- },
- {
- title: 'Local Development',
- hasLightIcon: true,
- href: '/guides/cli/getting-started',
- description: 'Use the Supabase CLI to develop locally and collaborate between teams.',
- }
- ].map((resource) => {
- return (
- <Link
- href={`${resource.href}`}
- key={resource.title}
- className={'col-span-12 md:col-span-4'}
- passHref
- >
- <GlassPanel {...resource} background={false} showIconBg={true}>
- {resource.description}
- </GlassPanel>
- </Link>
- )
-
-})}
-
- </div>
+<div className="grid grid-cols-12 gap-6 not-prose">
+ <Link href="/guides/ai" className="col-span-12 md:col-span-4" passHref>
+ <GlassPanel
+ title="Build with AI tools"
+ hasLightIcon={true}
+ background={false}
+ showIconBg={true}
+ >
+ Develop with Supabase AI-first using plugins, MCP, and skills.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/api-keys" className="col-span-12 md:col-span-4" passHref>
+ <GlassPanel title="API Keys" hasLightIcon={true} background={false} showIconBg={true}>
+ Learn about the different API keys in Supabase and how to use them.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/cli/getting-started" className="col-span-12 md:col-span-4" passHref>
+ <GlassPanel title="Local Development" hasLightIcon={true} background={false} showIconBg={true}>
+ Use the Supabase CLI to develop locally and collaborate between teams.
+ </GlassPanel>
+ </Link>
+</div>
</div>
@@ -54,41 +39,45 @@ hideToc: true
### Use cases
<div className="grid lg:grid-cols-12 gap-6 not-prose">
- {[
- {
- title: 'AI, Vectors, and embeddings',
- href: '/guides/ai#examples',
- description: `Build AI-enabled applications using our Vector toolkit.`,
- icon: '/docs/img/icons/openai_logo',
- hasLightIcon: true,
- },
- {
- title: 'Subscription Payments (SaaS)',
- href: 'https://github.com/vercel/nextjs-subscription-payments#nextjs-subscription-payments-starter',
- description: `Clone, deploy, and fully customize a SaaS subscription application with Next.js.`,
- icon: '/docs/img/icons/nextjs-icon',
- },
- {
- title: 'Partner Gallery',
- href: 'https://github.com/supabase-community/partner-gallery-example#supabase-partner-gallery-example',
- description: `Postgres full-text search, image storage, and more.`,
- icon: '/docs/img/icons/nextjs-icon',
- },
- ].map((item) => {
- return (
- <Link href={`${item.href}`} key={item.title} passHref className={'col-span-4'}>
- <GlassPanel
- title={item.title}
- span="col-span-6"
- background={false}
- icon={item.icon}
- hasLightIcon={item.hasLightIcon}
- >
- {item.description}
- </GlassPanel>
- </Link>
- )
- })}
+ <Link href="/guides/ai#examples" passHref className="col-span-4">
+ <GlassPanel
+ title="AI, Vectors, and embeddings"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/openai_logo"
+ hasLightIcon={true}
+ >
+ Build AI-enabled applications using our Vector toolkit.
+ </GlassPanel>
+ </Link>
+ <Link
+ href="https://github.com/vercel/nextjs-subscription-payments#nextjs-subscription-payments-starter"
+ passHref
+ className="col-span-4"
+ >
+ <GlassPanel
+ title="Subscription Payments (SaaS)"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/nextjs-icon"
+ >
+ Clone, deploy, and fully customize a SaaS subscription application with Next.js.
+ </GlassPanel>
+ </Link>
+ <Link
+ href="https://github.com/supabase-community/partner-gallery-example#supabase-partner-gallery-example"
+ passHref
+ className="col-span-4"
+ >
+ <GlassPanel
+ title="Partner Gallery"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/nextjs-icon"
+ >
+ Postgres full-text search, image storage, and more.
+ </GlassPanel>
+ </Link>
</div>
### Framework quickstarts
@@ -96,130 +85,142 @@ hideToc: true
<$Show if="docs:framework_quickstarts">
<div className="grid lg:grid-cols-12 gap-6 not-prose">
- {[
- {
- title: 'React',
- href: '/guides/getting-started/quickstarts/reactjs',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a React app.',
- icon: '/docs/img/icons/react-icon',
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- {
- title: 'Next.js',
- href: '/guides/getting-started/quickstarts/nextjs',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Next.js app.',
- icon: '/docs/img/icons/nextjs-icon',
- hasLightIcon: true,
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- {
- title: 'Nuxt',
- href: '/guides/getting-started/quickstarts/nuxtjs',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Nuxt app.',
- icon: '/docs/img/icons/nuxt-icon',
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- {
- title: 'Hono',
- href: '/guides/getting-started/quickstarts/hono',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, secure it with auth, and query the data from a Hono app.',
- icon: '/docs/img/icons/hono-icon',
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- {
- title: 'RedwoodJS',
- href: '/guides/getting-started/quickstarts/redwoodjs',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database using Prisma migration and seeds, and query the data from a RedwoodJS app.',
- icon: '/docs/img/icons/redwood-icon',
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- {
- title: 'Flutter',
- href: '/guides/getting-started/quickstarts/flutter',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Flutter app.',
- icon: '/docs/img/icons/flutter-icon',
- enabled: isFeatureEnabled('sdk:dart'),
- },
- {
- title: 'iOS SwiftUI',
- href: '/guides/getting-started/quickstarts/ios-swiftui',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from an iOS app.',
- icon: '/docs/img/icons/swift-icon',
- enabled: isFeatureEnabled('sdk:swift'),
- },
- {
- title: 'Android Kotlin',
- href: '/guides/getting-started/quickstarts/kotlin',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from an Android Kotlin app.',
- icon: '/docs/img/icons/kotlin-icon',
- enabled: isFeatureEnabled('sdk:kotlin'),
- },
- {
- title: 'SvelteKit',
- href: '/guides/getting-started/quickstarts/sveltekit',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a SvelteKit app.',
- icon: '/docs/img/icons/svelte-icon',
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- {
- title: 'SolidJS',
- href: '/guides/getting-started/quickstarts/solidjs',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a SolidJS app.',
- icon: '/docs/img/icons/solidjs-icon',
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- {
- title: 'Vue',
- href: '/guides/getting-started/quickstarts/vue',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Vue app.',
- icon: '/docs/img/icons/vuejs-icon',
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- {
- title: 'TanStack Start',
- href: '/guides/getting-started/quickstarts/tanstack',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a TanStack Start app.',
- icon: '/docs/img/icons/tanstack-icon',
- hasLightIcon: true,
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- {
- title: 'Refine',
- href: '/guides/getting-started/quickstarts/refine',
- description:
- 'Learn how to create a Supabase project, add some sample data to your database, and query the data from a Refine app.',
- icon: '/docs/img/icons/refine-icon',
- enabled: isFeatureEnabled('docs:framework_quickstarts'),
- },
- ]
- .filter((item) => item.enabled !== false)
- .map((item) => {
- return (
- <Link href={`${item.href}`} key={item.title} passHref className={'col-span-4'}>
- <GlassPanel
- title={item.title}
- span="col-span-6"
- background={false}
- icon={item.icon}
- hasLightIcon={item.hasLightIcon}
- >
- {item.description}
- </GlassPanel>
- </Link>
- )
- })}
+ <Link href="/guides/getting-started/quickstarts/reactjs" passHref className="col-span-4">
+ <GlassPanel
+ title="React"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/react-icon"
+ >
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from a React app.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/quickstarts/nextjs" passHref className="col-span-4">
+ <GlassPanel
+ title="Next.js"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/nextjs-icon"
+ hasLightIcon={true}
+ >
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from a Next.js app.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/quickstarts/nuxtjs" passHref className="col-span-4">
+ <GlassPanel title="Nuxt" span="col-span-6" background={false} icon="/docs/img/icons/nuxt-icon">
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from a Nuxt app.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/quickstarts/hono" passHref className="col-span-4">
+ <GlassPanel title="Hono" span="col-span-6" background={false} icon="/docs/img/icons/hono-icon">
+ Learn how to create a Supabase project, add some sample data to your database, secure it with
+ auth, and query the data from a Hono app.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/quickstarts/redwoodjs" passHref className="col-span-4">
+ <GlassPanel
+ title="RedwoodJS"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/redwood-icon"
+ >
+ Learn how to create a Supabase project, add some sample data to your database using Prisma
+ migration and seeds, and query the data from a RedwoodJS app.
+ </GlassPanel>
+ </Link>
+ <$Show if="sdk:dart">
+ <Link href="/guides/getting-started/quickstarts/flutter" passHref className="col-span-4">
+ <GlassPanel
+ title="Flutter"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/flutter-icon"
+ >
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from a Flutter app.
+ </GlassPanel>
+ </Link>
+ </$Show>
+ <$Show if="sdk:swift">
+ <Link href="/guides/getting-started/quickstarts/ios-swiftui" passHref className="col-span-4">
+ <GlassPanel
+ title="iOS SwiftUI"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/swift-icon"
+ >
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from an iOS app.
+ </GlassPanel>
+ </Link>
+ </$Show>
+ <$Show if="sdk:kotlin">
+ <Link href="/guides/getting-started/quickstarts/kotlin" passHref className="col-span-4">
+ <GlassPanel
+ title="Android Kotlin"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/kotlin-icon"
+ >
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from an Android Kotlin app.
+ </GlassPanel>
+ </Link>
+ </$Show>
+ <Link href="/guides/getting-started/quickstarts/sveltekit" passHref className="col-span-4">
+ <GlassPanel
+ title="SvelteKit"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/svelte-icon"
+ >
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from a SvelteKit app.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/quickstarts/solidjs" passHref className="col-span-4">
+ <GlassPanel
+ title="SolidJS"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/solidjs-icon"
+ >
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from a SolidJS app.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/quickstarts/vue" passHref className="col-span-4">
+ <GlassPanel title="Vue" span="col-span-6" background={false} icon="/docs/img/icons/vuejs-icon">
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from a Vue app.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/quickstarts/tanstack" passHref className="col-span-4">
+ <GlassPanel
+ title="TanStack Start"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/tanstack-icon"
+ hasLightIcon={true}
+ >
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from a TanStack Start app.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/quickstarts/refine" passHref className="col-span-4">
+ <GlassPanel
+ title="Refine"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/refine-icon"
+ >
+ Learn how to create a Supabase project, add some sample data to your database, and query the
+ data from a Refine app.
+ </GlassPanel>
+ </Link>
</div>
</$Show>
@@ -235,90 +236,97 @@ hideToc: true
### Web app demos
<div className="grid lg:grid-cols-12 gap-6 not-prose">
- {
- [
- {
- title: 'Next.js',
- href: '/guides/getting-started/tutorials/with-nextjs',
- description:
- 'Learn how to build a user management app with Next.js and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/nextjs-icon',
- hasLightIcon: true,
- },
- {
- title: 'React',
- href: '/guides/getting-started/tutorials/with-react',
- description:
- 'Learn how to build a user management app with React and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/react-icon',
- },
- {
- title: 'Vue 3',
- href: '/guides/getting-started/tutorials/with-vue-3',
- description:
- 'Learn how to build a user management app with Vue 3 and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/vuejs-icon',
- },
- {
- title: 'Nuxt 3',
- href: '/guides/getting-started/tutorials/with-nuxt-3',
- description:
- 'Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/nuxt-icon',
- },
- {
- title: 'Angular',
- href: '/guides/getting-started/tutorials/with-angular',
- description:
- 'Learn how to build a user management app with Angular and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/angular-icon',
- },
- {
- title: 'RedwoodJS',
- href: '/guides/getting-started/tutorials/with-redwoodjs',
- description:
- 'Learn how to build a user management app with RedwoodJS and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/redwood-icon',
- },
- {
- title: 'Svelte',
- href: '/guides/getting-started/tutorials/with-svelte',
- description:
- 'Learn how to build a user management app with Svelte and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/svelte-icon',
- },
- {
- title: 'SvelteKit',
- href: '/guides/getting-started/tutorials/with-sveltekit',
- description:
- 'Learn how to build a user management app with SvelteKit and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/svelte-icon',
- },
- {
- title: 'Refine',
- href: '/guides/getting-started/tutorials/with-refine',
- description:
- 'Learn how to build a user management app with Refine and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/refine-icon',
- }
- ]
-.map((item) => {
- return (
- <Link href={`${item.href}`} key={item.title} passHref className={'col-span-4'}>
- <GlassPanel
- title={item.title}
- span="col-span-6"
- background={false}
- icon={item.icon}
- hasLightIcon={item.hasLightIcon}
- >
- {item.description}
- </GlassPanel>
- </Link>
- )
-
-})}
-
+ <Link href="/guides/getting-started/tutorials/with-nextjs" passHref className="col-span-4">
+ <GlassPanel
+ title="Next.js"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/nextjs-icon"
+ hasLightIcon={true}
+ >
+ Learn how to build a user management app with Next.js and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/tutorials/with-react" passHref className="col-span-4">
+ <GlassPanel
+ title="React"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/react-icon"
+ >
+ Learn how to build a user management app with React and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/tutorials/with-vue-3" passHref className="col-span-4">
+ <GlassPanel
+ title="Vue 3"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/vuejs-icon"
+ >
+ Learn how to build a user management app with Vue 3 and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/tutorials/with-nuxt-3" passHref className="col-span-4">
+ <GlassPanel
+ title="Nuxt 3"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/nuxt-icon"
+ >
+ Learn how to build a user management app with Nuxt 3 and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/tutorials/with-angular" passHref className="col-span-4">
+ <GlassPanel
+ title="Angular"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/angular-icon"
+ >
+ Learn how to build a user management app with Angular and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/tutorials/with-redwoodjs" passHref className="col-span-4">
+ <GlassPanel
+ title="RedwoodJS"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/redwood-icon"
+ >
+ Learn how to build a user management app with RedwoodJS and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/tutorials/with-svelte" passHref className="col-span-4">
+ <GlassPanel
+ title="Svelte"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/svelte-icon"
+ >
+ Learn how to build a user management app with Svelte and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/tutorials/with-sveltekit" passHref className="col-span-4">
+ <GlassPanel
+ title="SvelteKit"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/svelte-icon"
+ >
+ Learn how to build a user management app with SvelteKit and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/tutorials/with-refine" passHref className="col-span-4">
+ <GlassPanel
+ title="Refine"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/refine-icon"
+ >
+ Learn how to build a user management app with Refine and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
</div>
</$Show>
@@ -327,90 +335,105 @@ hideToc: true
### Mobile tutorials
<div className="grid lg:grid-cols-12 gap-6 not-prose">
- {[
- {
- title: 'Flutter',
- href: '/guides/getting-started/tutorials/with-flutter',
- description:
- 'Learn how to build a user management app with Flutter and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/flutter-icon',
- enabled: isFeatureEnabled('sdk:dart')
- },
- {
- title: 'Expo React Native',
- href: '/guides/getting-started/tutorials/with-expo-react-native',
- description:
- 'Learn how to build a user management app with Expo React Native and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/expo-icon',
- hasLightIcon: true,
- enabled: true
- },
- {
- title: 'Expo React Native Social Auth',
- href: '/guides/getting-started/tutorials/with-expo-react-native-social-auth',
- description:
- 'Learn how to implement social authentication in an app with Expo React Native and Supabase Database and Auth functionality.',
- icon: '/docs/img/icons/expo-icon',
- hasLightIcon: true
- },
- {
- title: 'Android Kotlin',
- href: '/guides/getting-started/tutorials/with-kotlin',
- description:
- 'Learn how to build a product management app with Android and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/kotlin-icon',
- enabled: isFeatureEnabled('sdk:kotlin')
- },
- {
- title: 'iOS Swift',
- href: '/guides/getting-started/tutorials/with-swift',
- description:
- 'Learn how to build a user management app with iOS and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/swift-icon',
- enabled: isFeatureEnabled('sdk:swift')
- },
- {
- title: 'Ionic React',
- href: '/guides/getting-started/tutorials/with-ionic-react',
- description:
- 'Learn how to build a user management app with Ionic React and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/ionic-icon',
- enabled: true
- },
- {
- title: 'Ionic Vue',
- href: '/guides/getting-started/tutorials/with-ionic-vue',
- description:
- 'Learn how to build a user management app with Ionic Vue and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/ionic-icon',
- enabled: true
- },
- {
- title: 'Ionic Angular',
- href: '/guides/getting-started/tutorials/with-ionic-angular',
- description:
- 'Learn how to build a user management app with Ionic Angular and Supabase Database, Auth, and Storage functionality.',
- icon: '/docs/img/icons/ionic-icon',
- enabled: true
- }
- ]
-.filter((item) => item.enabled !== false)
-.map((item) => {
- return (
- <Link href={`${item.href}`} key={item.title} passHref className={'col-span-4'}>
- <GlassPanel
- title={item.title}
- span="col-span-6"
- background={false}
- icon={item.icon}
- hasLightIcon={item.hasLightIcon}
- >
- {item.description}
- </GlassPanel>
- </Link>
- )
-
-})}
-
+ <$Show if="sdk:dart">
+ <Link href="/guides/getting-started/tutorials/with-flutter" passHref className="col-span-4">
+ <GlassPanel
+ title="Flutter"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/flutter-icon"
+ >
+ Learn how to build a user management app with Flutter and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ </$Show>
+ <Link
+ href="/guides/getting-started/tutorials/with-expo-react-native"
+ passHref
+ className="col-span-4"
+ >
+ <GlassPanel
+ title="Expo React Native"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/expo-icon"
+ hasLightIcon={true}
+ >
+ Learn how to build a user management app with Expo React Native and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link
+ href="/guides/getting-started/tutorials/with-expo-react-native-social-auth"
+ passHref
+ className="col-span-4"
+ >
+ <GlassPanel
+ title="Expo React Native Social Auth"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/expo-icon"
+ hasLightIcon={true}
+ >
+ Learn how to implement social authentication in an app with Expo React Native and Supabase Database and Auth functionality.
+ </GlassPanel>
+ </Link>
+ <$Show if="sdk:kotlin">
+ <Link href="/guides/getting-started/tutorials/with-kotlin" passHref className="col-span-4">
+ <GlassPanel
+ title="Android Kotlin"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/kotlin-icon"
+ >
+ Learn how to build a product management app with Android and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ </$Show>
+ <$Show if="sdk:swift">
+ <Link href="/guides/getting-started/tutorials/with-swift" passHref className="col-span-4">
+ <GlassPanel
+ title="iOS Swift"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/swift-icon"
+ >
+ Learn how to build a user management app with iOS and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ </$Show>
+ <Link href="/guides/getting-started/tutorials/with-ionic-react" passHref className="col-span-4">
+ <GlassPanel
+ title="Ionic React"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/ionic-icon"
+ >
+ Learn how to build a user management app with Ionic React and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/getting-started/tutorials/with-ionic-vue" passHref className="col-span-4">
+ <GlassPanel
+ title="Ionic Vue"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/ionic-icon"
+ >
+ Learn how to build a user management app with Ionic Vue and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
+ <Link
+ href="/guides/getting-started/tutorials/with-ionic-angular"
+ passHref
+ className="col-span-4"
+ >
+ <GlassPanel
+ title="Ionic Angular"
+ span="col-span-6"
+ background={false}
+ icon="/docs/img/icons/ionic-icon"
+ >
+ Learn how to build a user management app with Ionic Angular and Supabase Database, Auth, and Storage functionality.
+ </GlassPanel>
+ </Link>
</div>
</$Show>
diff --git a/apps/docs/content/guides/realtime.mdx b/apps/docs/content/guides/realtime.mdx
index 9a4331929cb..cd79fccadff 100644
--- a/apps/docs/content/guides/realtime.mdx
+++ b/apps/docs/content/guides/realtime.mdx
@@ -25,35 +25,35 @@ Check the [Getting Started](/docs/guides/realtime/getting_started) guide to get
## Examples
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {[
- {
- name: 'Multiplayer.dev',
- description: 'Showcase application displaying cursor movements and chat messages using Broadcast.',
- href: 'https://multiplayer.dev',
- },
- {
- name: 'Chat',
- description: 'Supabase UI chat component using Broadcast to send message between users.',
- href: 'https://supabase.com/ui/docs/nextjs/realtime-chat'
- },
- {
- name: 'Avatar Stack',
- description: 'Supabase UI avatar stack component using Presence to track connected users.',
- href: 'https://supabase.com/ui/docs/nextjs/realtime-avatar-stack'
- },
- {
- name: 'Realtime Cursor',
- description: "Supabase UI realtime cursor component using Broadcast to share users' cursors to build collaborative applications.",
- href: 'https://supabase.com/ui/docs/nextjs/realtime-cursor'
- }
-].map((x) => (
- <div className="col-span-6" key={x.href}>
- <Link href={x.href} target="_blank" passHref>
- <GlassPanel title={x.name}>{x.description}</GlassPanel>
+ <div className="col-span-6">
+ <Link href="https://multiplayer.dev" target="_blank" passHref>
+ <GlassPanel title="Multiplayer.dev">
+ Showcase application displaying cursor movements and chat messages using Broadcast.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-6">
+ <Link href="https://supabase.com/ui/docs/nextjs/realtime-chat" target="_blank" passHref>
+ <GlassPanel title="Chat">
+ Supabase UI chat component using Broadcast to send message between users.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-6">
+ <Link href="https://supabase.com/ui/docs/nextjs/realtime-avatar-stack" target="_blank" passHref>
+ <GlassPanel title="Avatar Stack">
+ Supabase UI avatar stack component using Presence to track connected users.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-6">
+ <Link href="https://supabase.com/ui/docs/nextjs/realtime-cursor" target="_blank" passHref>
+ <GlassPanel title="Realtime Cursor">
+ Supabase UI realtime cursor component using Broadcast to share users' cursors to build
+ collaborative applications.
+ </GlassPanel>
</Link>
</div>
-))}
-
</div>
## Resources
@@ -61,22 +61,19 @@ Check the [Getting Started](/docs/guides/realtime/getting_started) guide to get
Find the source code and documentation in the Supabase GitHub repository.
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {[
- {
- name: 'Supabase Realtime',
- description: 'View the source code.',
- href: 'https://github.com/supabase/realtime',
- },
- {
- name: 'Realtime: Multiplayer Edition',
- description: 'Read more about Supabase Realtime.',
- href: 'https://supabase.com/blog/supabase-realtime-multiplayer-general-availability',
- },
- ].map((x) => (
- <div className="col-span-6" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel title={x.name}>{x.description}</GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-6">
+ <Link href="https://github.com/supabase/realtime" passHref>
+ <GlassPanel title="Supabase Realtime">View the source code.</GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-6">
+ <Link
+ href="https://supabase.com/blog/supabase-realtime-multiplayer-general-availability"
+ passHref
+ >
+ <GlassPanel title="Realtime: Multiplayer Edition">
+ Read more about Supabase Realtime.
+ </GlassPanel>
+ </Link>
+ </div>
</div>
diff --git a/apps/docs/content/guides/resources.mdx b/apps/docs/content/guides/resources.mdx
index 609505dfb81..3ebd7d7c6f8 100644
--- a/apps/docs/content/guides/resources.mdx
+++ b/apps/docs/content/guides/resources.mdx
@@ -10,39 +10,18 @@ hideToc: true
<div>
- <div className="grid grid-cols-12 gap-6 not-prose">
- {
- [
- {
- title: 'Examples',
- hasLightIcon: true,
- href: '/guides/resources/examples',
- description: 'Official GitHub examples, curated content from the community, and more.',
- },
- {
- title: 'Glossary',
- hasLightIcon: true,
- href: '/guides/resources/glossary',
- description: 'Definitions for terminology and acronyms used in the Supabase documentation.',
- }
- ]
-.map((resource) => {
- return (
- <Link
- href={`${resource.href}`}
- key={resource.title}
- className={'col-span-12 md:col-span-4'}
- passHref
- >
- <GlassPanel {...resource} background={false} showIconBg={true}>
- {resource.description}
- </GlassPanel>
- </Link>
- )
-
-})}
-
- </div>
+<div className="grid grid-cols-12 gap-6 not-prose">
+ <Link href="/guides/resources/examples" className="col-span-12 md:col-span-4" passHref>
+ <GlassPanel title="Examples" hasLightIcon={true} background={false} showIconBg={true}>
+ Official GitHub examples, curated content from the community, and more.
+ </GlassPanel>
+ </Link>
+ <Link href="/guides/resources/glossary" className="col-span-12 md:col-span-4" passHref>
+ <GlassPanel title="Glossary" hasLightIcon={true} background={false} showIconBg={true}>
+ Definitions for terminology and acronyms used in the Supabase documentation.
+ </GlassPanel>
+ </Link>
+</div>
</div>
@@ -53,88 +32,159 @@ hideToc: true
</div>
- <div className="grid grid-cols-12 gap-6 not-prose">
- {
- [
- {
- title: 'Auth0',
- icon: '/docs/img/icons/auth0-icon',
- href: '/guides/resources/migrating-to-supabase/auth0',
- description: 'Move your auth users from Auth0 to a Supabase project.',
- hasLightIcon: true,
- },
- {
- title: 'Firebase Auth',
- icon: '/docs/img/icons/firebase-icon',
- href: '/guides/resources/migrating-to-supabase/firebase-auth',
- description: 'Move your auth users from a Firebase project to a Supabase project.',
- },
- {
- title: 'Firestore Data',
- icon: '/docs/img/icons/firebase-icon',
- href: '/guides/resources/migrating-to-supabase/firestore-data',
- description: 'Migrate the contents of a Firestore collection to a single Postgres table.',
- },
- {
- title: 'Firebase Storage',
- icon: '/docs/img/icons/firebase-icon',
- href: '/guides/resources/migrating-to-supabase/firebase-storage',
- description: 'Convert your Firebase Storage files to Supabase Storage.'
- },
- {
- title: 'Heroku',
- icon: '/docs/img/icons/heroku-icon',
- href: '/guides/resources/migrating-to-supabase/heroku',
- description: 'Migrate your Heroku Postgres database to Supabase.'
- },
- {
- title: 'Render',
- icon: '/docs/img/icons/render-icon',
- href: '/guides/resources/migrating-to-supabase/render',
- description: 'Migrate your Render Postgres database to Supabase.'
- },
- {
- title: 'Amazon RDS',
- icon: '/docs/img/icons/aws-rds-icon',
- href: '/guides/resources/migrating-to-supabase/amazon-rds',
- description: 'Migrate your Amazon RDS database to Supabase.'
- },
- {
- title: 'Postgres',
- icon: '/docs/img/icons/postgres-icon',
- href: '/guides/resources/migrating-to-supabase/postgres',
- description: 'Migrate your Postgres database to Supabase.'
- },
- {
- title: 'MySQL',
- icon: '/docs/img/icons/mysql-icon',
- href: '/guides/resources/migrating-to-supabase/mysql',
- description: 'Migrate your MySQL database to Supabase.'
- },
- {
- title: 'Microsoft SQL Server',
- icon: '/docs/img/icons/mssql-icon',
- href: '/guides/resources/migrating-to-supabase/mssql',
- description: 'Migrate your Microsoft SQL Server database to Supabase.'
- }
- ]
-.map((product) => {
- return (
- <Link
- href={`${product.href}`}
- key={product.title}
- className={product.span ?? 'col-span-6 md:col-span-3'}
- passHref
- >
- <IconPanel {...product} background={true} showIconBg={true} showLink={true}>
- {product.description}
- </IconPanel>
- </Link>
- )
-
-})}
-
- </div>
+<div className="grid grid-cols-12 gap-6 not-prose">
+ <Link
+ href="/guides/resources/migrating-to-supabase/auth0"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="Auth0"
+ icon="/docs/img/icons/auth0-icon"
+ hasLightIcon={true}
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Move your auth users from Auth0 to a Supabase project.
+ </IconPanel>
+ </Link>
+ <Link
+ href="/guides/resources/migrating-to-supabase/firebase-auth"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="Firebase Auth"
+ icon="/docs/img/icons/firebase-icon"
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Move your auth users from a Firebase project to a Supabase project.
+ </IconPanel>
+ </Link>
+ <Link
+ href="/guides/resources/migrating-to-supabase/firestore-data"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="Firestore Data"
+ icon="/docs/img/icons/firebase-icon"
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Migrate the contents of a Firestore collection to a single Postgres table.
+ </IconPanel>
+ </Link>
+ <Link
+ href="/guides/resources/migrating-to-supabase/firebase-storage"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="Firebase Storage"
+ icon="/docs/img/icons/firebase-icon"
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Convert your Firebase Storage files to Supabase Storage.
+ </IconPanel>
+ </Link>
+ <Link
+ href="/guides/resources/migrating-to-supabase/heroku"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="Heroku"
+ icon="/docs/img/icons/heroku-icon"
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Migrate your Heroku Postgres database to Supabase.
+ </IconPanel>
+ </Link>
+ <Link
+ href="/guides/resources/migrating-to-supabase/render"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="Render"
+ icon="/docs/img/icons/render-icon"
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Migrate your Render Postgres database to Supabase.
+ </IconPanel>
+ </Link>
+ <Link
+ href="/guides/resources/migrating-to-supabase/amazon-rds"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="Amazon RDS"
+ icon="/docs/img/icons/aws-rds-icon"
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Migrate your Amazon RDS database to Supabase.
+ </IconPanel>
+ </Link>
+ <Link
+ href="/guides/resources/migrating-to-supabase/postgres"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="Postgres"
+ icon="/docs/img/icons/postgres-icon"
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Migrate your Postgres database to Supabase.
+ </IconPanel>
+ </Link>
+ <Link
+ href="/guides/resources/migrating-to-supabase/mysql"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="MySQL"
+ icon="/docs/img/icons/mysql-icon"
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Migrate your MySQL database to Supabase.
+ </IconPanel>
+ </Link>
+ <Link
+ href="/guides/resources/migrating-to-supabase/mssql"
+ className="col-span-6 md:col-span-3"
+ passHref
+ >
+ <IconPanel
+ title="Microsoft SQL Server"
+ icon="/docs/img/icons/mssql-icon"
+ background={true}
+ showIconBg={true}
+ showLink={true}
+ >
+ Migrate your Microsoft SQL Server database to Supabase.
+ </IconPanel>
+ </Link>
+</div>
</div>
@@ -145,57 +195,64 @@ hideToc: true
</div>
- <div className="grid grid-cols-12 gap-6 not-prose">
- {
- [
- {
- title: 'Managing Indexes',
- hasLightIcon: true,
- href: '/guides/database/postgres/indexes',
- description: 'Improve query performance using various index types in Postgres.'
- },
- {
- title: 'Cascade Deletes',
- hasLightIcon: true,
- href: '/guides/database/postgres/cascade-deletes',
- description: 'Understand the types of foreign key constraint deletes.'
- },
- {
- title: 'Drop all tables in schema',
- hasLightIcon: true,
- href: '/guides/database/postgres/dropping-all-tables-in-schema',
- description: 'Delete all tables in a given schema.'
- },
- {
- title: 'Select first row per group',
- hasLightIcon: true,
- href: '/guides/database/postgres/first-row-in-group',
- description: 'Retrieve the first row in each distinct group.'
- },
- {
- title: 'Print Postgres version',
- hasLightIcon: true,
- href: '/guides/database/postgres/which-version-of-postgres',
- description: 'Find out which version of Postgres you are running.'
- }
- ]
-.map((resource) => {
- return (
- <Link
- href={`${resource.href}`}
- key={resource.title}
- className={'col-span-12 md:col-span-4'}
- passHref
- >
- <GlassPanel {...resource} background={false} showIconBg={true}>
- {resource.description}
- </GlassPanel>
- </Link>
- )
-
-})}
-
- </div>
+<div className="grid grid-cols-12 gap-6 not-prose">
+ <Link href="/guides/database/postgres/indexes" className="col-span-12 md:col-span-4" passHref>
+ <GlassPanel title="Managing Indexes" hasLightIcon={true} background={false} showIconBg={true}>
+ Improve query performance using various index types in Postgres.
+ </GlassPanel>
+ </Link>
+ <Link
+ href="/guides/database/postgres/cascade-deletes"
+ className="col-span-12 md:col-span-4"
+ passHref
+ >
+ <GlassPanel title="Cascade Deletes" hasLightIcon={true} background={false} showIconBg={true}>
+ Understand the types of foreign key constraint deletes.
+ </GlassPanel>
+ </Link>
+ <Link
+ href="/guides/database/postgres/dropping-all-tables-in-schema"
+ className="col-span-12 md:col-span-4"
+ passHref
+ >
+ <GlassPanel
+ title="Drop all tables in schema"
+ hasLightIcon={true}
+ background={false}
+ showIconBg={true}
+ >
+ Delete all tables in a given schema.
+ </GlassPanel>
+ </Link>
+ <Link
+ href="/guides/database/postgres/first-row-in-group"
+ className="col-span-12 md:col-span-4"
+ passHref
+ >
+ <GlassPanel
+ title="Select first row per group"
+ hasLightIcon={true}
+ background={false}
+ showIconBg={true}
+ >
+ Retrieve the first row in each distinct group.
+ </GlassPanel>
+ </Link>
+ <Link
+ href="/guides/database/postgres/which-version-of-postgres"
+ className="col-span-12 md:col-span-4"
+ passHref
+ >
+ <GlassPanel
+ title="Print Postgres version"
+ hasLightIcon={true}
+ background={false}
+ showIconBg={true}
+ >
+ Find out which version of Postgres you are running.
+ </GlassPanel>
+ </Link>
+</div>
</div>
diff --git a/apps/docs/content/guides/self-hosting.mdx b/apps/docs/content/guides/self-hosting.mdx
index 9f16ea9ba99..f5923055c7b 100644
--- a/apps/docs/content/guides/self-hosting.mdx
+++ b/apps/docs/content/guides/self-hosting.mdx
@@ -34,23 +34,20 @@ The fastest and recommended way to self-host Supabase is to use Docker.
There are several other options to deploy Supabase. If you're interested in helping these projects, visit our [Community](/contribute) page.
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {selfHostingCommunity.map((x) => (
- <div className="md:col-span-6 xl:col-span-3" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel
- title={
- <span className="flex items-center gap-2">
- {x.name}
- </span>
- }
- >
- {x.description}
- </GlassPanel>
- </Link>
- </div>
-
-))}
-
+ <div className="md:col-span-6 xl:col-span-3">
+ <Link href="https://github.com/supabase-community/supabase-kubernetes" passHref>
+ <GlassPanel title={<span className="flex items-center gap-2">Kubernetes</span>}>
+ Helm charts to deploy a Supabase on Kubernetes.
+ </GlassPanel>
+ </Link>
+ </div>
+ <div className="md:col-span-6 xl:col-span-3">
+ <Link href="https://github.com/supabase-community/supabase-traefik" passHref>
+ <GlassPanel title={<span className="flex items-center gap-2">Traefik</span>}>
+ A self-hosted Supabase setup with Traefik as a reverse proxy.
+ </GlassPanel>
+ </Link>
+ </div>
</div>
## About self-hosting
diff --git a/apps/docs/content/guides/storage.mdx b/apps/docs/content/guides/storage.mdx
index 51b8a466b64..81643f11439 100644
--- a/apps/docs/content/guides/storage.mdx
+++ b/apps/docs/content/guides/storage.mdx
@@ -71,15 +71,20 @@ Specialized storage for vector embeddings and similarity search operations. Desi
Check out all of the Storage [templates and examples](https://github.com/supabase/supabase/tree/master/examples/storage) in our GitHub repository.
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {storageExamples.map((x) => (
- <div className="col-span-12" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title={x.name}>
- {x.description}
- </GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-12">
+ <Link
+ href="https://github.com/supabase/supabase/tree/master/examples/storage/resumable-upload-uppy"
+ passHref
+ >
+ <GlassPanel
+ icon={'/docs/img/icons/github-icon'}
+ hasLightIcon={true}
+ title="Resumable Uploads with Uppy"
+ >
+ Use Uppy to upload files to Supabase Storage using the TUS protocol (resumable uploads).
+ </GlassPanel>
+ </Link>
+ </div>
</div>
## Resources
@@ -87,22 +92,16 @@ Check out all of the Storage [templates and examples](https://github.com/supabas
Find the source code and documentation in the Supabase GitHub repository.
<div className="grid md:grid-cols-12 gap-4 not-prose">
- {[
- {
- name: 'Supabase Storage API',
- description: 'View the source code.',
- href: 'https://github.com/supabase/storage-api',
- },
- {
- name: 'OpenAPI Spec',
- description: 'See the Swagger Documentation for Supabase Storage.',
- href: 'https://supabase.github.io/storage/',
- },
- ].map((x) => (
- <div className="col-span-6" key={x.href}>
- <Link href={x.href} passHref>
- <GlassPanel title={x.name}>{x.description}</GlassPanel>
- </Link>
- </div>
- ))}
+ <div className="col-span-6">
+ <Link href="https://github.com/supabase/storage-api" passHref>
+ <GlassPanel title="Supabase Storage API">View the source code.</GlassPanel>
+ </Link>
+ </div>
+ <div className="col-span-6">
+ <Link href="https://supabase.github.io/storage/" passHref>
+ <GlassPanel title="OpenAPI Spec">
+ See the Swagger Documentation for Supabase Storage.
+ </GlassPanel>
+ </Link>
+ </div>
</div>
diff --git a/apps/docs/features/docs/MdxBase.tsx b/apps/docs/features/docs/MdxBase.tsx
index 0123fb24108..d3561125655 100644
--- a/apps/docs/features/docs/MdxBase.tsx
+++ b/apps/docs/features/docs/MdxBase.tsx
@@ -1,6 +1,5 @@
import { preprocessMdxWithDefaults } from '~/features/directives/utils'
import { components } from '~/features/docs/MdxBase.shared'
-import { guidesData } from '~/lib/guidesData'
import { SerializeOptions } from '~/types/next-mdx-remote-serialize'
import { isFeatureEnabled } from 'common'
import { MDXRemote } from 'next-mdx-remote-client/rsc'
@@ -39,7 +38,7 @@ const MDXRemoteBase = async ({
} = mdxOptions
const finalOptions = {
- scope: { isFeatureEnabled, ...guidesData },
+ scope: { isFeatureEnabled },
...mdxOptions,
...otherOptions,
mdxOptions: {
diff --git a/apps/docs/internals/generate-guides-markdown.ts b/apps/docs/internals/generate-guides-markdown.ts
index 7e5f135e114..0e283f27aaa 100644
--- a/apps/docs/internals/generate-guides-markdown.ts
+++ b/apps/docs/internals/generate-guides-markdown.ts
@@ -63,40 +63,85 @@ function convertStepHike(content: string): string {
}
/**
- * For getting-started.mdx: replaces `{[ ...objects ].map(...)}` resource-card
- * grids with a markdown bullet list of `[title](href), description`. Without
- * this, the rendered output leaves raw JS code in the markdown since stripping
- * JSX components doesn't touch JS expressions wrapped in `{...}`.
+ * Extracts a `title` prop value from a JSX opening-tag's attribute text.
+ * Supports `title="..."`, `title='...'`, and `title={<jsx>...</jsx>}` forms.
+ * For JSX titles, strips inline tags and collapses whitespace so the text
+ * content remains.
*/
-function convertResourceLists(content: string): string {
- return content.replace(/\{\s*\[\s*\{[\s\S]*?\},?\s*\][\s\S]*?\}\)\}/g, (block) => {
- const arrMatch = block.match(/\[([\s\S]+?)\]\s*\.(?:filter|map)\b/)
- if (!arrMatch) return block
-
- // Collect top-level { ... } object literals from the array body.
- const arr = arrMatch[1]
- const objs: string[] = []
+function extractTitleAttr(attrs: string): string | null {
+ const strMatch = attrs.match(/\btitle=(?:"([^"]+)"|'([^']+)')/)
+ if (strMatch) return strMatch[1] ?? strMatch[2]
+
+ const exprIdx = attrs.indexOf('title={')
+ if (exprIdx === -1) return null
+
+ let i = exprIdx + 'title={'.length
+ const inner: string[] = []
+ let depth = 1
+ while (i < attrs.length && depth > 0) {
+ const ch = attrs[i]
+ if (ch === '{') depth++
+ else if (ch === '}') {
+ depth--
+ if (depth === 0) break
+ }
+ inner.push(ch)
+ i++
+ }
+ return inner
+ .join('')
+ .replace(/<[^>]+>/g, ' ')
+ .replace(/\s+/g, ' ')
+ .trim()
+}
+
+/**
+ * Converts `<Link href="..."><GlassPanel|IconPanel title="...">desc</...></Link>`
+ * blocks into markdown bullet lines: `- [title](href). description`. Without
+ * this, the rendered output keeps prop syntax (className, passHref, etc.) since
+ * stripping JSX tags discards inner text from props but leaves panel children
+ * floating without context. Applied to all guides so resource-card grids render
+ * consistently in the markdown view.
+ */
+function convertLinkPanels(content: string): string {
+ return content.replace(/<Link\b([\s\S]*?)>([\s\S]*?)<\/Link>/g, (full, linkAttrs, body) => {
+ const hrefMatch = linkAttrs.match(/\bhref="([^"]+)"/)
+ if (!hrefMatch) return full
+ const href = hrefMatch[1]
+
+ const panelOpen = body.match(/<(GlassPanel|IconPanel)\b/)
+ if (!panelOpen) return full
+ const panelName = panelOpen[1]
+ const panelStart = panelOpen.index ?? 0
+
+ // Walk past the opening tag, respecting JSX expression braces so attribute
+ // values like `title={<span>...</span>}` don't terminate parsing early.
+ let i = panelStart + panelOpen[0].length
let depth = 0
- let start = -1
- for (let i = 0; i < arr.length; i++) {
- if (arr[i] === '{') {
- if (depth === 0) start = i
- depth++
- } else if (arr[i] === '}' && --depth === 0 && start !== -1) {
- objs.push(arr.slice(start, i + 1))
- start = -1
- }
+ while (i < body.length) {
+ const ch = body[i]
+ if (ch === '{') depth++
+ else if (ch === '}') depth--
+ else if (ch === '>' && depth === 0) break
+ i++
}
+ if (i >= body.length) return full
+
+ const panelAttrs = body.slice(panelStart + panelOpen[0].length, i)
+ const closingTag = `</${panelName}>`
+ const closeIdx = body.indexOf(closingTag, i)
+ if (closeIdx === -1) return full
+
+ const title = extractTitleAttr(panelAttrs)
+ if (!title) return full
+
+ const description = body
+ .slice(i + 1, closeIdx)
+ .replace(/<[^>]+>/g, ' ')
+ .replace(/\s+/g, ' ')
+ .trim()
- return objs
- .map((o) => {
- const title = o.match(/title:\s*['"`]([^'"`]+)['"`]/)?.[1]
- const href = o.match(/href:\s*['"`]([^'"`]+)['"`]/)?.[1]
- const desc = o.match(/description:\s*[`'"]([^`'"]+)[`'"]/)?.[1]
- return title && href ? `- [${title}](${href})${desc ? `. ${desc}` : ''}` : ''
- })
- .filter(Boolean)
- .join('\n')
+ return `- [${title}](${href})${description ? `. ${description}` : ''}`
})
}
@@ -165,11 +210,8 @@ async function generate() {
const withPartials = await inlinePartials(rawContent)
const withSteps = convertStepHike(withPartials)
- const withLists =
- filePath === 'content/guides/getting-started.mdx'
- ? convertResourceLists(withSteps)
- : withSteps
- const processed = stripJsxTags(withLists)
+ const withLinks = convertLinkPanels(withSteps)
+ const processed = stripJsxTags(withLinks)
const header = [
data.title ? `# ${data.title}` : '',
diff --git a/apps/docs/lib/guidesData.ts b/apps/docs/lib/guidesData.ts
deleted file mode 100644
index 2bf5c7ccc37..00000000000
--- a/apps/docs/lib/guidesData.ts
+++ /dev/null
@@ -1,102 +0,0 @@
-/**
- * Data used in guide MDX files.
- *
- * This data is passed to MDX files via scope to avoid using `export const`
- * within MDX content, which is not supported by next-mdx-remote.
- *
- * @see https://github.com/hashicorp/next-mdx-remote#import--export
- */
-
-export const guidesData = {
- // apps/docs/content/guides/self-hosting.mdx
- selfHostingCommunity: [
- {
- name: 'Kubernetes',
- description: 'Helm charts to deploy a Supabase on Kubernetes.',
- href: 'https://github.com/supabase-community/supabase-kubernetes',
- },
- {
- name: 'Traefik',
- description: 'A self-hosted Supabase setup with Traefik as a reverse proxy.',
- href: 'https://github.com/supabase-community/supabase-traefik',
- },
- ],
-
- // apps/docs/content/guides/ai.mdx
- aiExamples: [
- {
- name: 'Headless Vector Search',
- description:
- 'A toolkit to perform vector similarity search on your knowledge base embeddings.',
- href: '/guides/ai/examples/headless-vector-search',
- },
- {
- name: 'Image Search with OpenAI CLIP',
- description: 'Implement image search with the OpenAI CLIP Model and Supabase Vector.',
- href: '/guides/ai/examples/image-search-openai-clip',
- },
- {
- name: 'Hugging Face inference',
- description: 'Generate image captions using Hugging Face.',
- href: '/guides/ai/examples/huggingface-image-captioning',
- },
- {
- name: 'OpenAI completions',
- description: 'Generate GPT text completions using OpenAI in Edge Functions.',
- href: '/guides/ai/examples/openai',
- },
- {
- name: 'Building ChatGPT Plugins',
- description: 'Use Supabase as a Retrieval Store for your ChatGPT plugin.',
- href: '/guides/ai/examples/building-chatgpt-plugins',
- },
- {
- name: 'Vector search with Next.js and OpenAI',
- description:
- 'Learn how to build a ChatGPT-style doc search powered by Next.js, OpenAI, and Supabase.',
- href: '/guides/ai/examples/nextjs-vector-search',
- },
- ],
-
- aiIntegrations: [
- {
- name: 'OpenAI',
- description:
- 'OpenAI is an AI research and deployment company. Supabase provides a simple way to use OpenAI in your applications.',
- href: '/guides/ai/examples/building-chatgpt-plugins',
- },
- {
- name: 'Amazon Bedrock',
- description:
- 'A fully managed service that offers a choice of high-performing foundation models from leading AI companies.',
- href: '/guides/ai/integrations/amazon-bedrock',
- },
- {
- name: 'Hugging Face',
- description:
- "Hugging Face is an open-source provider of NLP technologies. Supabase provides a simple way to use Hugging Face's models in your applications.",
- href: '/guides/ai/hugging-face',
- },
- {
- name: 'LangChain',
- description:
- 'LangChain is a language-agnostic, open-source, and self-hosted API for text translation, summarization, and sentiment analysis.',
- href: '/guides/ai/langchain',
- },
- {
- name: 'LlamaIndex',
- description: 'LlamaIndex is a data framework for your LLM applications.',
- href: '/guides/ai/integrations/llamaindex',
- },
- ],
-
- // apps/docs/content/guides/storage.mdx
- storageExamples: [
- {
- name: 'Resumable Uploads with Uppy',
- description:
- 'Use Uppy to upload files to Supabase Storage using the TUS protocol (resumable uploads).',
- href: 'https://github.com/supabase/supabase/tree/master/examples/storage/resumable-upload-uppy',
- },
- ],
-}
diff --git a/supa-mdx-lint/Rule003Spelling.toml b/supa-mdx-lint/Rule003Spelling.toml
index aab030e4956..579d8852c89 100644
--- a/supa-mdx-lint/Rule003Spelling.toml
+++ b/supa-mdx-lint/Rule003Spelling.toml
@@ -175,6 +175,7 @@ allow_list = [
"Authy",
"B-tree",
"Better Stack",
+ "Berri",
"Basejump",
"BigQuery",
"Bitbucket",
@@ -187,6 +188,7 @@ allow_list = [
"CAPTCHA",
"Cartes Bancaires",
"[Cc]ertbot",
+ "chatbot",
"ChatGPT",
"Citus",
"ClickHouse",
@@ -228,6 +230,7 @@ allow_list = [
"FastMCP",
"Fiberplane",
"Figma",
+ "Firecrawl",
"Firestore",
"Fivetran",
"Floyd-Warshall",
@@ -290,6 +293,7 @@ allow_list = [
"Mailpit",
"Mailtrap",
"Mansueli",
+ "Markprompt",
"Metabase",
"[Mm]in[Ii][Oo]",
"[Mm]itigations",
@@ -498,6 +502,7 @@ allow_list = [
"vCPUs",
"vecs",
"vs",
+ "[Ww]alkthrough",
"watchOS",
"WebCrypto",
"[Xx]min",