The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix headings
dannykng8e40e45c12a0
diff --git a/apps/docs/docs/guides/api/generating-types.mdx b/apps/docs/docs/guides/api/generating-types.mdxindex d87f197ec0c..8110c2ebfe8 100644--- a/apps/docs/docs/guides/api/generating-types.mdx+++ b/apps/docs/docs/guides/api/generating-types.mdx@@ -6,7 +6,7 @@ description: How to generate types for your API and Supabase libraries.Supabase APIs are generated from your database, which means that we can use database introspection to generate type-safe API definitions.-### Generating types using Supabase CLI+## Generating types using Supabase CLIThe Supabase CLI is a single binary Go application that provides everything you need to setup a local development environment.@@ -16,13 +16,13 @@ You can [install the CLI](https://www.npmjs.com/package/supabase) via npm or othnpm i supabase@">=1.8.1" --save-dev```-Login with your Personal Access Token+Login with your Personal Access Token:```bashnpx supabase login```-Generate types for your project to produce the file `types/supabase.ts`+Generate types for your project to produce the `types/supabase.ts` file:```bashnpx supabase gen types typescript --project-id "$PROJECT_ID" --schema public > types/supabase.tsdiff --git a/apps/docs/docs/guides/auth/auth-captcha.mdx b/apps/docs/docs/guides/auth/auth-captcha.mdxindex 0990634b619..225c899d614 100644--- a/apps/docs/docs/guides/auth/auth-captcha.mdx+++ b/apps/docs/docs/guides/auth/auth-captcha.mdx@@ -7,11 +7,9 @@ description: Add Captcha Protection to your Supabase projectimport Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-## hCaptcha guide-Supabase provides you with the option of adding captcha to your sign-in, sign-up, and password reset forms. This keeps your website safe from bots and malicious scripts. Supabase authentication has support for [hCaptcha](https://www.hcaptcha.com/).-### Sign up for hCaptcha+## Sign up for hCaptchaGo to the [hCaptcha](https://www.hcaptcha.com/) website and sign up for an account. On the welcome page, copy the **Sitekey** and **Secret key**.@@ -27,7 +25,7 @@ In the Settings page, look for the **Sitekey** section and copy the key.-### Enable hCaptcha protection for your Supabase project+## Enable hCaptcha protection for your Supabase projectNavigate to the **[Authentication](https://app.supabase.com/project/_/settings/auth)** page in the Supabase Dashboard and find the **Enable hCaptcha protection** toggle under the **Security and Protection** section.@@ -35,7 +33,7 @@ Navigate to the **[Authentication](https://app.supabase.com/project/_/settings/aEnter your hCaptcha **Secret key** and click **Save**.-### Add the hCaptcha frontend component+## Add the hCaptcha frontend componentThe frontend requires some changes to provide the captcha on-screen for the user. This example uses React and the hCaptcha React component, but hCaptcha can be used with any JavaScript framework.diff --git a/apps/docs/docs/guides/cli.mdx b/apps/docs/docs/guides/cli.mdxindex 2b0ba5f697d..337fa5b42c0 100644--- a/apps/docs/docs/guides/cli.mdx+++ b/apps/docs/docs/guides/cli.mdx@@ -48,13 +48,13 @@ scoop install supabaseThe CLI is available through [Homebrew](https://brew.sh) and Linux packages.-### Homebrew+#### Homebrew```shbrew install supabase/tap/supabase```-### Linux packages+#### Linux packagesLinux packages are provided in [Releases](https://github.com/supabase/cli/releases).To install, download the `.apk`/`.deb`/`.rpm` file depending on your package managerdiff --git a/apps/docs/docs/guides/database/full-text-search.mdx b/apps/docs/docs/guides/database/full-text-search.mdxindex 03e7a5a0e8e..0f597589e5d 100644--- a/apps/docs/docs/guides/database/full-text-search.mdx+++ b/apps/docs/docs/guides/database/full-text-search.mdx@@ -56,7 +56,7 @@ valuesThe functions we'll cover in this guide are:-### `to_tsvector()`+### `to_tsvector()` {#to-tsvector}Converts your data into searchable "tokens". `to_tsvector()` stands for "to text search vector". For example:@@ -68,14 +68,14 @@ select to_tsvector('green eggs and ham')Collectively these tokens are called a "document" which Postgres can use for comparisons.-### `to_tsquery()`+### `to_tsquery()` {#to-tsquery}Converts a query string into "tokens" to match. `to_tsquery()` stands for "to text search query".This conversion step is important because we will want to "fuzzy match" on keywords.For example if a user searches for "eggs", and a column has the value "egg", we probably still want to return a match.-### Match: `@@`+### Match: `@@` {#match}The `@@` symbol is the "match" symbol for Full Text Search. It returns any matches between a `to_tsvector` result and a `to_tsquery` result.@@ -450,7 +450,7 @@ final result = await clientVisit [PostgreSQL: Text Search Functions and Operators](https://www.postgresql.org/docs/current/functions-textsearch.html)to learn about additional query operators you can use to do more advanced `full text queries`, such as:-### Proximity: `<->`+### Proximity: `<->` {#proximity}The proximity symbol is useful for searching for terms that are a certain "distance" apart.For example, to find the phrase `big dreams`, where the a match for "big" is followed immediately by a match for "dreams":@@ -539,7 +539,7 @@ final result = await client</TabPanel></Tabs>-### Negation: `!`+### Negation: `!` {#negation}The negation symbol can be used to find phrases which _don't_ contain a search term.For example, to find records that have the word `big` but not `little`:diff --git a/apps/docs/docs/guides/database/managing-passwords.mdx b/apps/docs/docs/guides/database/managing-passwords.mdxindex b7cba2b6354..e100a41ee4d 100644--- a/apps/docs/docs/guides/database/managing-passwords.mdx+++ b/apps/docs/docs/guides/database/managing-passwords.mdx@@ -11,7 +11,7 @@ Your PostgreSQL database is the core of your Supabase project, so it's importantIf you use special symbols in your postgres password, you must remember to [percent-encode](https://en.wikipedia.org/wiki/Percent-encoding) your password later if using the postgres connection string e.g. `postgresql://postgres:p%[email protected]:5432/postgres`-### Changing your project password+## Changing your project passwordWhen you created your project you were also asked to enter a password. This is actually the password for your database, specifically for the `postgres` user.You can update this from the Dashboard under the [database settings](https://app.supabase.com/project/_/settings/database) page.diff --git a/apps/docs/docs/guides/storage.mdx b/apps/docs/docs/guides/storage.mdxindex b3568bcd72b..3e788be8419 100644--- a/apps/docs/docs/guides/storage.mdx+++ b/apps/docs/docs/guides/storage.mdx@@ -10,17 +10,17 @@ import TabItem from '@theme/TabItem'Supabase Storage makes it simple to store and serve large files.-### Files+## FilesFiles can be any sort of media file. This includes images, GIFs, and videos. It is best practice to store files outside of your database because of their sizes. For security, HTML files are returned as plain text.-### Folders+## FoldersFolders are a way to organize your files (just like on your computer).There is no right or wrong way toorganize your files. You can store them in whichever folder structure suits your project.-### Buckets+## BucketsBuckets are distinct containers for files and folders. You can think of them like "super folders".Generally you would create distinct buckets for different Security and Access Rules. For example, you might