The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Rename class to className
Joshen Lim38c1c510e982
diff --git a/apps/docs/docs/guides/api.mdx b/apps/docs/docs/guides/api.mdxindex fcc10d60d83..68974f7c1da 100644--- a/apps/docs/docs/guides/api.mdx+++ b/apps/docs/docs/guides/api.mdx@@ -30,7 +30,7 @@ It provides everything you need from a CRUD API:- Works with Postgres Functions- Works with the Postgres security model - including Row Level Security, Roles, and Grants.-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/rPAJJFdtPw0"frameBorder="1"diff --git a/apps/docs/docs/guides/auth.mdx b/apps/docs/docs/guides/auth.mdxindex 3003a03f491..1d60ab88fbb 100644--- a/apps/docs/docs/guides/auth.mdx+++ b/apps/docs/docs/guides/auth.mdx@@ -17,7 +17,7 @@ Postgres is at the heart of everything we do, and the Auth system follows this pHere's a quick, 2 minute tour of the Auth features built-in to Supabase:-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/6ow_jW4epf8"frameBorder="1"@@ -39,7 +39,7 @@ You can authenticate your users in several ways:We provide a suite of Providers and login methods, as well as [Auth helpers](/docs/guides/auth/auth-helpers/).-<div class="container" style={{ padding: 0 }}>+<div className="container" style={{ padding: 0 }}><AuthProviders /></div>diff --git a/apps/docs/docs/guides/auth/auth-helpers.mdx b/apps/docs/docs/guides/auth/auth-helpers.mdxindex 11592214024..df49cce5ccf 100644--- a/apps/docs/docs/guides/auth/auth-helpers.mdx+++ b/apps/docs/docs/guides/auth/auth-helpers.mdx@@ -5,50 +5,40 @@ description: A collection of framework-specific Auth utilities for working withsidebar_label: Overview----import ButtonCard from '@site/src/components/ButtonCard'-A collection of framework-specific Auth utilities for working with Supabase.-<div class="container" style={{ padding: 0 }}>- <div class="grid grid-cols-12 gap-4">+<div className="container" style={{ padding: 0 }}>+ <div className="grid grid-cols-12 gap-4">{/* Auth UI */}- <div class="col-span-6">+ <div className="col-span-6"><ButtonCard- class="card"to={'/guides/auth/auth-helpers/auth-ui'}title={'Auth UI'}description={'A pre-built React component for authenticating users.'}- style={{ height: '100%' }}/></div>{/* Next.js */}- <div class="col-span-6">+ <div className="col-span-6"><ButtonCard- class="card"to={'/guides/auth/auth-helpers/nextjs'}title={'Next.js'}description={'Helpers for authenticating users in Next.js applications.'}- style={{ height: '100%' }}/></div>{/* SvelteKit */}- <div class="col-span-6">+ <div className="col-span-6"><ButtonCard- class="card"to={'/guides/auth/auth-helpers/sveltekit'}title={'SvelteKit'}description={'Helpers for authenticating users in SvelteKit applications.'}- style={{ height: '100%' }}/></div>{/* Remix */}- <div class="col-span-6">+ <div className="col-span-6"><ButtonCard- class="card"to={'/guides/auth/auth-helpers/remix'}title={'Remix'}description={'Helpers for authenticating users in Remix applications.'}- style={{ height: '100%' }}/></div></div>diff --git a/apps/docs/docs/guides/auth/auth-twilio.mdx b/apps/docs/docs/guides/auth/auth-twilio.mdxindex 429582dd9ea..6868eca32ec 100644--- a/apps/docs/docs/guides/auth/auth-twilio.mdx+++ b/apps/docs/docs/guides/auth/auth-twilio.mdx@@ -30,7 +30,7 @@ What you'll need:## Video-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/akScoPO01bc"frameBorder="1"diff --git a/apps/docs/docs/guides/auth/row-level-security.mdx b/apps/docs/docs/guides/auth/row-level-security.mdxindex 97d714140cd..376660938f9 100644--- a/apps/docs/docs/guides/auth/row-level-security.mdx+++ b/apps/docs/docs/guides/auth/row-level-security.mdx@@ -8,7 +8,7 @@ When you need granular authorization rules, nothing beats PostgreSQL's [Row Leve[Policies](https://www.postgresql.org/docs/current/sql-createpolicy.html) are PostgreSQL's rule engine. They are incredibly powerful and flexible, allowing you to write complex SQL rules which fit your unique business needs.-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/Ow_Uzedfohk"frameBorder="1"diff --git a/apps/docs/docs/guides/database/database-webhooks.mdx b/apps/docs/docs/guides/database/database-webhooks.mdxindex 96c51011d2f..d7c19aa2cf7 100644--- a/apps/docs/docs/guides/database/database-webhooks.mdx+++ b/apps/docs/docs/guides/database/database-webhooks.mdx@@ -9,7 +9,6 @@ import TabItem from '@theme/TabItem'Database Webhooks allow you to send real-time data from your database to another system whenever a table event occurs.-You can hook into three table events: `INSERT`, `UPDATE`, and `DELETE`. All events are fired _after_ a database row is changed.Database Webhooks are very similar to triggers, and that's because Database Webhooks are just a convenience wrapper around triggers@@ -23,7 +22,7 @@ Database Webhooks were previously known as Function Hooks.</Admonition>-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/codAs9-NeHM"frameBorder="1"diff --git a/apps/docs/docs/guides/database/extensions/http.mdx b/apps/docs/docs/guides/database/extensions/http.mdxindex d70a5f16e52..13c4718aba7 100644--- a/apps/docs/docs/guides/database/extensions/http.mdx+++ b/apps/docs/docs/guides/database/extensions/http.mdx@@ -11,7 +11,7 @@ The `http` extension allows you to call RESTful endpoints within Postgres.## Quick demo-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/rARgrELRCwY"frameBorder="1"diff --git a/apps/docs/docs/guides/database/functions.mdx b/apps/docs/docs/guides/database/functions.mdxindex 2fc6a94ff7f..097e3c0ac98 100644--- a/apps/docs/docs/guides/database/functions.mdx+++ b/apps/docs/docs/guides/database/functions.mdx@@ -12,7 +12,7 @@ These functions live inside your database, and they can be [used with the API](.## Quick demo-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/MJZCCpCYEqk"frameBorder="1"@@ -314,7 +314,7 @@ GRANT EXECUTE ON FUNCTION hello_world TO service_role;### Create Database Functions-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/MJZCCpCYEqk"frameBorder="1"@@ -325,7 +325,7 @@ GRANT EXECUTE ON FUNCTION hello_world TO service_role;### Call Database Functions using JavaScript-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/I6nnp9AINJk"frameBorder="1"@@ -336,7 +336,7 @@ GRANT EXECUTE ON FUNCTION hello_world TO service_role;### Using Database Functions to call an external API-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/rARgrELRCwY"frameBorder="1"diff --git a/apps/docs/docs/guides/database/tables.mdx b/apps/docs/docs/guides/database/tables.mdxindex fd81b8e802e..2d79d60c5db 100644--- a/apps/docs/docs/guides/database/tables.mdx+++ b/apps/docs/docs/guides/database/tables.mdx@@ -276,7 +276,7 @@ For example if you had the following situations:><TabPanel id="dashboard" label="Dashboard">-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/TKwF3IGij5c"frameBorder="1"diff --git a/apps/docs/docs/guides/examples.mdx b/apps/docs/docs/guides/examples.mdxindex 30fc3eff526..0bc057bc305 100644--- a/apps/docs/docs/guides/examples.mdx+++ b/apps/docs/docs/guides/examples.mdx@@ -14,7 +14,7 @@ We have a [set of examples](https://github.com/supabase/supabase/tree/master/exaBy [Traversy Media](https://www.youtube.com/watch?v=7uKQBl9uZ00).-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/7uKQBl9uZ00"frameBorder="1"@@ -27,7 +27,7 @@ By [Traversy Media](https://www.youtube.com/watch?v=7uKQBl9uZ00).By [@jlengstorf](https://twitter.com/jlengstorf) and [@jonmeyers_io](https://twitter.com/jonmeyers_io).-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/8vqY1KT4TLU"frameBorder="1"@@ -40,7 +40,7 @@ By [@jlengstorf](https://twitter.com/jlengstorf) and [@jonmeyers_io](https://twiBy [Fireship](https://www.youtube.com/watch?v=WiwfiVdfRIc).-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/WiwfiVdfRIc"frameBorder="1"diff --git a/apps/docs/docs/guides/functions.mdx b/apps/docs/docs/guides/functions.mdxindex b4dc7ee1fad..5d8982b94e4 100644--- a/apps/docs/docs/guides/functions.mdx+++ b/apps/docs/docs/guides/functions.mdx@@ -21,7 +21,7 @@ Edge Functions are developed using [Deno](https://deno.com), which offers a fewLearn how to develop Edge Functions in less than 7 minutes:-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/rzglqRdZUQE"frameBorder="1"diff --git a/apps/docs/docs/guides/functions/examples.mdx b/apps/docs/docs/guides/functions/examples.mdxindex 609b970d08c..12b0f47484d 100644--- a/apps/docs/docs/guides/functions/examples.mdx+++ b/apps/docs/docs/guides/functions/examples.mdx@@ -6,6 +6,6 @@ description: Useful Supabase Edge Functions ExamplesYou can find a list of useful [Edge Function Examples](https://github.com/supabase/supabase/tree/master/examples/edge-functions) in our GitHub repository.-<div class="container" style={{ padding: 0 }}>+<div className="container" style={{ padding: 0 }}><FunctionsExamples /></div>diff --git a/apps/docs/docs/guides/integrations/fezto.mdx b/apps/docs/docs/guides/integrations/fezto.mdxindex c46cc6a4d66..1eb93afc4b7 100644--- a/apps/docs/docs/guides/integrations/fezto.mdx+++ b/apps/docs/docs/guides/integrations/fezto.mdx@@ -6,7 +6,7 @@ description: 'Create an app automatically from your Supabase Postgres using Open[Frontend Zero to One is](https://www.fezto.xyz) is a service which creates an app for your Supabase Postgres database on-the-fly without any drag and drop, using the OpenAPI spec provided by PostgREST.-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/GOC6a0_AlgI"frameBorder="0"diff --git a/apps/docs/docs/guides/integrations/polyscale.mdx b/apps/docs/docs/guides/integrations/polyscale.mdxindex add9a2c536d..613ba1d5ba2 100644--- a/apps/docs/docs/guides/integrations/polyscale.mdx+++ b/apps/docs/docs/guides/integrations/polyscale.mdx@@ -10,7 +10,7 @@ This guide explains how to connect Supabase to a PolyScale cache.The video below illustrates how to get connected. Or you can read the steps below.-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube.com/embed/ZQ8TG-A-CIw?rel=0"frameborder="0"diff --git a/apps/docs/docs/guides/integrations/snaplet.mdx b/apps/docs/docs/guides/integrations/snaplet.mdxindex 92fe9b4a550..440579a4c7d 100644--- a/apps/docs/docs/guides/integrations/snaplet.mdx+++ b/apps/docs/docs/guides/integrations/snaplet.mdx@@ -12,7 +12,7 @@ Let's get started!Follow along in the video below as the founder of Snaplet, Peter Pistorius, takes you through the entire process. Otherwise, you can skip the video and dive into the step-by-step guide.-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube.com/embed/oPtMMhdhEP4?rel=0"frameborder="0"diff --git a/apps/docs/docs/guides/migrations/heroku.mdx b/apps/docs/docs/guides/migrations/heroku.mdxindex 1cc4d043521..2e0cda43f1a 100644--- a/apps/docs/docs/guides/migrations/heroku.mdx+++ b/apps/docs/docs/guides/migrations/heroku.mdx@@ -11,7 +11,7 @@ Alternatively, use the [Heroku to Supabase migration tool](https://migrate.supab## Quick demo-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/xsRhPMphtZ4"frameBorder="1"diff --git a/apps/docs/docs/guides/realtime/quickstart.mdx b/apps/docs/docs/guides/realtime/quickstart.mdxindex 5be89689639..55f6061a5e4 100644--- a/apps/docs/docs/guides/realtime/quickstart.mdx+++ b/apps/docs/docs/guides/realtime/quickstart.mdx@@ -7,7 +7,7 @@ sidebar_label: QuickstartLearn how to build [multiplayer.dev](https://multiplayer.dev), a collaborative app that demonstrates Broadcast, Presence, and Postgres CDC using [Realtime](/docs/guides/realtime).-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/BelYEMJ2N00"frameBorder="1"diff --git a/apps/docs/docs/guides/storage.mdx b/apps/docs/docs/guides/storage.mdxindex 0611579a973..b3568bcd72b 100644--- a/apps/docs/docs/guides/storage.mdx+++ b/apps/docs/docs/guides/storage.mdx@@ -26,7 +26,7 @@ Buckets are distinct containers for files and folders. You can think of them likGenerally you would create distinct buckets for different Security and Access Rules. For example, you mightkeep all video files in a "video" bucket, and profile pictures in an "avatar" bucket.-<div class="video-container">+<div className="video-container"><iframesrc="https://www.youtube-nocookie.com/embed/J9mTPY8rIXE"frameBorder="1"diff --git a/apps/docs/docs/learn/auth-deep-dive/google-oauth.md b/apps/docs/docs/learn/auth-deep-dive/google-oauth.mdxsimilarity index 94%rename from apps/docs/docs/learn/auth-deep-dive/google-oauth.mdrename to apps/docs/docs/learn/auth-deep-dive/google-oauth.mdxindex 129ce770fd2..2f290198ada 100644--- a/apps/docs/docs/learn/auth-deep-dive/google-oauth.md+++ b/apps/docs/docs/learn/auth-deep-dive/google-oauth.mdx@@ -10,8 +10,13 @@ How to add Google OAuth Logins to your Supabase Application.### Watch-<div class="video-container">-<iframe src="https://www.youtube-nocookie.com/embed/_XM9ziOzWk4" frameBorder="1" allow="accelerometer;autoplay; clipboard-write encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>+<div className="video-container">+ <iframe+ src="https://www.youtube-nocookie.com/embed/_XM9ziOzWk4"+ frameBorder="1"+ allow="accelerometer;autoplay; clipboard-write encrypted-media; gyroscope; picture-in-picture"+ allowFullScreen+ ></iframe></div>### Logging in with external OAuth providersdiff --git a/apps/docs/docs/learn/auth-deep-dive/gotrue.md b/apps/docs/docs/learn/auth-deep-dive/gotrue.mdxsimilarity index 99%rename from apps/docs/docs/learn/auth-deep-dive/gotrue.mdrename to apps/docs/docs/learn/auth-deep-dive/gotrue.mdxindex 3b780f254fd..e73941687c4 100644--- a/apps/docs/docs/learn/auth-deep-dive/gotrue.md+++ b/apps/docs/docs/learn/auth-deep-dive/gotrue.mdx@@ -10,7 +10,7 @@ How to restrict table access to authenticated users, row level policies, and ema### Watch-<div class="video-container">+<div className="video-container"><iframe src="https://www.youtube.com/embed/neqfYym_84k" frameBorder="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe></div>diff --git a/apps/docs/docs/learn/auth-deep-dive/jwts.md b/apps/docs/docs/learn/auth-deep-dive/jwts.mdxsimilarity index 99%rename from apps/docs/docs/learn/auth-deep-dive/jwts.mdrename to apps/docs/docs/learn/auth-deep-dive/jwts.mdxindex d2b084e3a6e..e1d0cebc6de 100644--- a/apps/docs/docs/learn/auth-deep-dive/jwts.md+++ b/apps/docs/docs/learn/auth-deep-dive/jwts.mdx@@ -10,7 +10,7 @@ An introduction to JWTs and how they are used in Supabase Auth### Watch-<div class="video-container">+<div className="video-container"><iframe src="https://www.youtube-nocookie.com/embed/v3Exg5YpJvE" frameBorder="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe></div>diff --git a/apps/docs/docs/learn/auth-deep-dive/policies.md b/apps/docs/docs/learn/auth-deep-dive/policies.mdxsimilarity index 99%rename from apps/docs/docs/learn/auth-deep-dive/policies.mdrename to apps/docs/docs/learn/auth-deep-dive/policies.mdxindex 32c02e223ea..08635dcabfc 100644--- a/apps/docs/docs/learn/auth-deep-dive/policies.md+++ b/apps/docs/docs/learn/auth-deep-dive/policies.mdx@@ -10,7 +10,7 @@ How to restrict table access to authenticated users, row level policies, and ema### Watch-<div class="video-container">+<div className="video-container"><iframe src="https://www.youtube-nocookie.com/embed/0LvCOlELs5U" frameBorder="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe></div>diff --git a/apps/docs/docs/learn/auth-deep-dive/row-level-security.md b/apps/docs/docs/learn/auth-deep-dive/row-level-security.mdxsimilarity index 99%rename from apps/docs/docs/learn/auth-deep-dive/row-level-security.mdrename to apps/docs/docs/learn/auth-deep-dive/row-level-security.mdxindex 41f7f56b2b1..946d50e7e7d 100644--- a/apps/docs/docs/learn/auth-deep-dive/row-level-security.md+++ b/apps/docs/docs/learn/auth-deep-dive/row-level-security.mdx@@ -10,7 +10,7 @@ Learn how to restrict access to your database tables by enabling Row Level Secur### Watch-<div class="video-container">+<div className="video-container"><iframe src="https://www.youtube-nocookie.com/embed/qY_iQ10IUhs" frameBorder="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe></div>diff --git a/apps/docs/docs/reference/javascript/v1/initializing.mdx b/apps/docs/docs/reference/javascript/v1/initializing.mdxindex 711f03f2aed..46d057e1cca 100644--- a/apps/docs/docs/reference/javascript/v1/initializing.mdx+++ b/apps/docs/docs/reference/javascript/v1/initializing.mdx@@ -29,7 +29,7 @@ and is the easiest way to interact with everything we offer within the Supabase<code>string</code></span></h4>- <div class="method-list-item-description">+ <div className="method-list-item-description">The unique Supabase URL which is supplied when you create a new project in your project dashboard.@@ -49,7 +49,7 @@ The unique Supabase URL which is supplied when you create a new project in your<code>string</code></span></h4>- <div class="method-list-item-description">+ <div className="method-list-item-description">The unique Supabase Key which is supplied when you create a new project in your project dashboard.@@ -69,7 +69,7 @@ The unique Supabase Key which is supplied when you create a new project in your<code>SupabaseClientOptions</code></span></h4>- <div class="method-list-item-description">+ <div className="method-list-item-description">No description provided.@@ -87,10 +87,7 @@ No description provided.import { createClient } from '@supabase/supabase-js'// Create a single supabase client for interacting with your database-const supabase = createClient(- 'https://xyzcompany.supabase.co',- 'public-anon-key'-)+const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')```### With additional parameters@@ -105,11 +102,7 @@ const options = {persistSession: true,detectSessionInUrl: true,}-const supabase = createClient(- 'https://xyzcompany.supabase.co',- 'public-anon-key',- options-)+const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', options)```### API schemas@@ -118,13 +111,9 @@ const supabase = createClient(import { createClient } from '@supabase/supabase-js'// Provide a custom schema. Defaults to "public".-const supabase = createClient(- 'https://xyzcompany.supabase.co',- 'public-anon-key',- {- schema: 'other_schema',- }-)+const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {+ schema: 'other_schema',+})```By default the API server points to the `public` schema. You can enable other database schemas within the Dashboard.@@ -137,13 +126,9 @@ Note: each client connection can only access a single schema, so the code above```jsimport { createClient } from '@supabase/supabase-js'-const supabase = createClient(- 'https://xyzcompany.supabase.co',- 'public-anon-key',- {- fetch: fetch.bind(globalThis),- }-)+const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {+ fetch: fetch.bind(globalThis),+})````supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests,