Skip to content

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

fix: standardize headings sentence case in docs (#19954)

Charis671b05bc4b07
diff --git a/apps/docs/pages/guides/ai/choosing-compute-addon.mdx b/apps/docs/pages/guides/ai/choosing-compute-addon.mdx
index 047017f9e98..384e16543a3 100644
--- a/apps/docs/pages/guides/ai/choosing-compute-addon.mdx
+++ b/apps/docs/pages/guides/ai/choosing-compute-addon.mdx
@@ -21,7 +21,7 @@ The number of dimensions in your embeddings is the most important factor in choo
## HNSW
-### 384 Dimensions
+### 384 dimensions
This benchmark uses the dbpedia-entities-openai-1M dataset containing 1,000,000 embeddings of text, regenerated for 384 dimension embeddings. Each embedding is generated using [gte-small](https://huggingface.co/Supabase/gte-small).
@@ -52,7 +52,7 @@ Accuracy was 0.99 for benchmarks.
</TabPanel>
</Tabs>
-### 960 Dimensions
+### 960 dimensions
This benchmark uses the [gist-960](http://corpus-texmex.irisa.fr/) dataset, which contains 1,000,000 embeddings of images. Each embedding is 960 dimensions.
@@ -85,7 +85,7 @@ QPS can also be improved by increasing [`m` and `ef_construction`](/docs/guides/
</TabPanel>
</Tabs>
-### 1536 Dimensions
+### 1536 dimensions
This benchmark uses the [dbpedia-entities-openai-1M](https://huggingface.co/datasets/KShivendu/dbpedia-entities-openai-1M) dataset, which contains 1,000,000 embeddings of text. And 224,482 embeddings from [Wikipedia articles](https://huggingface.co/datasets/Supabase/wikipedia-en-embeddings) for compute add-ons `large` and below. Each embedding is 1536 dimensions created with the [OpenAI Embeddings API](https://platform.openai.com/docs/guides/embeddings).
@@ -136,7 +136,7 @@ It is possible to upload more vectors to a single table if Memory allows it (for
## IVFFlat
-### 384 Dimensions
+### 384 dimensions
This benchmark uses the dbpedia-entities-openai-1M dataset containing 1,000,000 embeddings of text, regenerated for 384 dimension embeddings. Each embedding is generated using [gte-small](https://huggingface.co/Supabase/gte-small).
@@ -181,7 +181,7 @@ This benchmark uses the dbpedia-entities-openai-1M dataset containing 1,000,000
</TabPanel>
</Tabs>
-### 960 Dimensions
+### 960 dimensions
This benchmark uses the [gist-960](http://corpus-texmex.irisa.fr/) dataset, which contains 1,000,000 embeddings of images. Each embedding is 960 dimensions.
@@ -210,7 +210,7 @@ This benchmark uses the [gist-960](http://corpus-texmex.irisa.fr/) dataset, whic
</TabPanel>
</Tabs>
-### 1536 Dimensions
+### 1536 dimensions
This benchmark uses the [dbpedia-entities-openai-1M](https://huggingface.co/datasets/KShivendu/dbpedia-entities-openai-1M) dataset, which contains 1,000,000 embeddings of text. Each embedding is 1536 dimensions created with the [OpenAI Embeddings API](https://platform.openai.com/docs/guides/embeddings).
@@ -322,7 +322,7 @@ You can increase the Requests per Second by increasing `m` and `ef_construction`
Check out more tips and the complete step-by-step guide in [Going to Production for AI applications](going-to-prod).
-## Benchmark Methodology
+## Benchmark methodology
We follow techniques outlined in the [ANN Benchmarks](https://github.com/erikbern/ann-benchmarks) methodology. A Python test runner is responsible for uploading the data, creating the index, and running the queries. The pgvector engine is implemented using [vecs](https://github.com/supabase/vecs), a Python client for pgvector.
diff --git a/apps/docs/pages/guides/ai/examples/building-chatgpt-plugins.mdx b/apps/docs/pages/guides/ai/examples/building-chatgpt-plugins.mdx
index 0a66b90a9d6..39a81955b67 100644
--- a/apps/docs/pages/guides/ai/examples/building-chatgpt-plugins.mdx
+++ b/apps/docs/pages/guides/ai/examples/building-chatgpt-plugins.mdx
@@ -21,7 +21,7 @@ A [Retrieval Plugin](https://github.com/openai/chatgpt-retrieval-plugin) is a Py
It allows ChatGPT to dynamically pull relevant information into conversations from your data sources. This could be PDF documents, Confluence, or Notion knowledge bases.
-## Example: Chat with Postgres Docs
+## Example: Chat with Postgres docs
Let’s build an example where we can “ask ChatGPT questions” about the Postgres documentation. Although ChatGPT already knows about the Postgres documentation because it is publicly available, this is a simple example which demonstrates how to work with PDF files.
@@ -74,7 +74,7 @@ export PG_HOST=<postgres_host_url>
export PG_PASSWORD=<postgres_password>
```
-### Step 4: Run Postgres Locally
+### Step 4: Run Postgres locally
To start quicker you may use Supabase CLI to spin everything up locally as it already includes pgvector from the start. Install `supabase-cli`, go to the `examples/providers` folder in the repo and run:
diff --git a/apps/docs/pages/guides/ai/examples/huggingface-image-captioning.mdx b/apps/docs/pages/guides/ai/examples/huggingface-image-captioning.mdx
index 163422ee325..29dfde30de1 100644
--- a/apps/docs/pages/guides/ai/examples/huggingface-image-captioning.mdx
+++ b/apps/docs/pages/guides/ai/examples/huggingface-image-captioning.mdx
@@ -30,7 +30,7 @@ We can combine Hugging Face with [Supabase Storage](https://supabase.com/storage
- Deploy the function to Supabase: `supabase functions deploy huggingface-image-captioning`.
- Create the Database Webhook in the [Supabase Dashboard](https://supabase.com/dashboard/project/_/database/hooks) to trigger the `huggingface-image-captioning` function anytime a record is added to the `storage.objects` table.
-## Generate TypeScript Types
+## Generate TypeScript types
To generate the types.ts file for the storage and public schemas, run the following command in the terminal:
diff --git a/apps/docs/pages/guides/ai/examples/image-search-openai-clip.mdx b/apps/docs/pages/guides/ai/examples/image-search-openai-clip.mdx
index f76227dab3f..40f9859aa26 100644
--- a/apps/docs/pages/guides/ai/examples/image-search-openai-clip.mdx
+++ b/apps/docs/pages/guides/ai/examples/image-search-openai-clip.mdx
@@ -16,7 +16,7 @@ The [OpenAI CLIP Model](https://github.com/openai/CLIP) was trained on a variety
You can find the full application code as a Python Poetry project on [GitHub](https://github.com/supabase/supabase/tree/master/examples/ai/image_search#image-search-with-supabase-vector).
-## Create a new Python Project with Poetry
+## Create a new Python project with Poetry
[Poetry](https://python-poetry.org/) provides packaging and dependency management for Python. If you haven't already, install poetry via pip:
@@ -46,7 +46,7 @@ supabase start
This will start up the Supabase stack locally and print out a bunch of environment details, including your local `DB URL`. Make a note of that for later user.
-## Install the Dependencies
+## Install the dependencies
We will need to add the following dependencies to our project:
@@ -134,7 +134,7 @@ search = "image_search.main:search"
After activating the virtual environtment with `poetry shell` you can now run your seed script via `poetry run seed`. You can inspect the generated embeddings in your local database by visiting the local Supabase dashboard at [localhost:54323](http://localhost:54323/project/default/editor), selecting the `vecs` schema, and the `image_vectors` database.
-## Perform an Image Search from a Text Query
+## Perform an image search from a text query
With Supabase Vector we can easily query our embeddings. We can use either an image as search input or alternative we can generate an embedding from a string input and use that as the query input:
diff --git a/apps/docs/pages/guides/ai/examples/nextjs-vector-search.mdx b/apps/docs/pages/guides/ai/examples/nextjs-vector-search.mdx
index 2a0d73938e9..2d6986fb92c 100644
--- a/apps/docs/pages/guides/ai/examples/nextjs-vector-search.mdx
+++ b/apps/docs/pages/guides/ai/examples/nextjs-vector-search.mdx
@@ -322,7 +322,7 @@ With our database set up, we need to process and store all `.mdx` files in the `
</StepHikeCompact>
-## Create Text Completion with OpenAI API
+## Create text completion with OpenAI API
Anytime a user asks a question, we need to create an embedding for their question, perform a similarity search, and then send a text completion request to the OpenAI API with the query and then context content merged together into a prompt.
@@ -527,7 +527,7 @@ const handleConfirm = React.useCallback(
)
```
-## Learn More
+## Learn more
Want to learn more about the awesome tech that is powering this?
diff --git a/apps/docs/pages/guides/ai/going-to-prod.mdx b/apps/docs/pages/guides/ai/going-to-prod.mdx
index 4c5dd6b304d..bf133b70b10 100644
--- a/apps/docs/pages/guides/ai/going-to-prod.mdx
+++ b/apps/docs/pages/guides/ai/going-to-prod.mdx
@@ -84,7 +84,7 @@ You can find more examples of how `lists` and `probes` constants affect accuracy
/>
</div>
-## Performance Tips when using indexes
+## Performance tips when using indexes
First, a few generic tips which you can pick and choose from:
diff --git a/apps/docs/pages/guides/ai/hugging-face.mdx b/apps/docs/pages/guides/ai/hugging-face.mdx
index dc77e055c39..0b36104c8e8 100644
--- a/apps/docs/pages/guides/ai/hugging-face.mdx
+++ b/apps/docs/pages/guides/ai/hugging-face.mdx
@@ -15,7 +15,7 @@ There are 3 ways to use Hugging Face models in your application:
1. [Generate embeddings](/docs/guides/ai/quickstarts/generate-text-embeddings) directly in Edge Functions using Transformers.js.
1. Use Hugging Face's hosted [Inference API](https://huggingface.co/inference-api) to execute AI tasks remotely on Hugging Face servers. This guide will walk you through this approach.
-## AI Tasks
+## AI tasks
Below are some of the types of tasks you can perform with Hugging Face:
@@ -27,7 +27,7 @@ Below are some of the types of tasks you can perform with Hugging Face:
- [Translation](https://huggingface.co/tasks/translation)
- [Fill in the blank](https://huggingface.co/tasks/fill-mask)
-### Computer Vision
+### Computer vision
- [Image to text](https://huggingface.co/tasks/image-to-text)
- [Text to image](https://huggingface.co/tasks/text-to-image)
diff --git a/apps/docs/pages/guides/ai/integrations/roboflow.mdx b/apps/docs/pages/guides/ai/integrations/roboflow.mdx
index 8797fa600a3..568fd734608 100644
--- a/apps/docs/pages/guides/ai/integrations/roboflow.mdx
+++ b/apps/docs/pages/guides/ai/integrations/roboflow.mdx
@@ -12,13 +12,13 @@ In this guide, we will walk through two examples of using [Roboflow Inference](h
<DatabaseSetup />
-## Save Computer Vision Predictions
+## Save computer vision predictions
Once you have a trained vision model, you need to create business logic for your application. In many cases, you want to save inference results to a file.
The steps below show you how to run a vision model locally and save predictions to Supabase.
-### Preparation: Set up a Model
+### Preparation: Set up a model
Before you begin, you will need an object detection model trained on your data.
@@ -28,7 +28,7 @@ All models have an infinitely scalable API through which you can query your mode
For this guide, we will use a demo [rock, paper, scissors](https://universe.roboflow.com/roboflow-58fyf/rock-paper-scissors-sxsw) model.
-### Step 1: Install and Start Roboflow Inference
+### Step 1: Install and start Roboflow Inference
You will deploy our model locally using Roboflow Inference, a computer vision inference server.
@@ -42,7 +42,7 @@ pip install inference inference-cli inference-sdk && inference server start
An inference server will be available at `http://localhost:9001`.
-### Step 2: Run Inference on an Image
+### Step 2: Run inference on an image
You can run inference on images and videos. Let's run inference on an image.
@@ -76,7 +76,7 @@ When you run the code above, a list of predictions will be printed to the consol
{'time': 0.05402109300121083, 'image': {'width': 640, 'height': 480}, 'predictions': [{'x': 312.5, 'y': 392.0, 'width': 255.0, 'height': 110.0, 'confidence': 0.8620790839195251, 'class': 'Paper', 'class_id': 0}]}
```
-### Step 3: Save Results in Supabase
+### Step 3: Save results in Supabase
To save results in Supabase, add the following code to your script:
@@ -110,17 +110,17 @@ Here is an example result:
data=[{'predictions': {'time': 0.08492901099998562, 'image': {'width': 640, 'height': 480}, 'predictions': [{'x': 312.5, 'y': 392.0, 'width': 255.0, 'height': 110.0, 'confidence': 0.8620790839195251, 'class': 'Paper', 'class_id': 0}]}}, {'predictions': {'time': 0.08818970100037404, 'image': {'width': 640, 'height': 480}, 'predictions': [{'x': 312.5, 'y': 392.0, 'width': 255.0, 'height': 110.0, 'confidence': 0.8620790839195251, 'class': 'Paper', 'class_id': 0}]}}] count=None
```
-## Calculate and Save CLIP Embeddings
+## Calculate and save CLIP embeddings
You can use the Supabase vector database functionality to store and query CLIP embeddings.
Roboflow Inference provides a HTTP interface through which you can calculate image and text embeddings using CLIP.
-### Step 1: Install and Start Roboflow Inference
+### Step 1: Install and start Roboflow Inference
See [Step #1: Install and Start Roboflow Inference](#step-1-install-and-start-roboflow-inference) above to install and start Roboflow Inference.
-### Step 2: Run CLIP on an Image
+### Step 2: Run CLIP on an image
Create a new Python file and add the following code:
@@ -168,7 +168,7 @@ Above, replace:
You can also calculate CLIP embeddings in the cloud by setting `SERVER_URL` to `https://infer.roboflow.com`.
-### Step 3: Save Embeddings in Supabase
+### Step 3: Save embeddings in Supabase
You can store your image embeddings in Supabase using the Supabase `vecs` Python package:
diff --git a/apps/docs/pages/guides/ai/langchain.mdx b/apps/docs/pages/guides/ai/langchain.mdx
index f86f2381031..967bf23e14e 100644
--- a/apps/docs/pages/guides/ai/langchain.mdx
+++ b/apps/docs/pages/guides/ai/langchain.mdx
@@ -111,7 +111,7 @@ export const run = async () => {
}
```
-### Simple Metadata Filtering
+### Simple metadata filtering
Given the above `match_documents` Postgres function, you can also pass a filter parameter to only return documents with a specific metadata field value. This filter parameter is a JSON object, and the `match_documents` function will use the Postgres JSONB Containment operator `@>` to filter documents by the metadata field values you specify. See details on the [Postgres JSONB Containment operator](https://www.postgresql.org/docs/current/datatype-json.html#JSON-CONTAINMENT) for more information.
@@ -150,7 +150,7 @@ export const run = async () => {
}
```
-### Advanced Metadata Filtering
+### Advanced metadata filtering
You can also use query builder-style filtering ([similar to how the Supabase JavaScript library works](https://supabase.com/docs/reference/javascript/using-filters)) instead of passing an object. Note that since the filter properties will be in the metadata column, you need to use arrow operators (`->` for integer or `->>` for text) as defined in [Postgrest API documentation](https://postgrest.org/en/stable/references/api/tables_views.html?highlight=operators#json-columns) and specify the data type of the property (e.g. the column should look something like `metadata->some_int_value::int`).
diff --git a/apps/docs/pages/guides/ai/rag-with-permissions.mdx b/apps/docs/pages/guides/ai/rag-with-permissions.mdx
index cf0dcf4aa7b..c5b27f20d42 100644
--- a/apps/docs/pages/guides/ai/rag-with-permissions.mdx
+++ b/apps/docs/pages/guides/ai/rag-with-permissions.mdx
@@ -78,7 +78,7 @@ order by document_sections.embedding <#> embedding;
The above example only configures `select` access to users. If you wanted, you could create more RLS policies for inserts, updates, and deletes in order to apply the same permission logic for those other operations. See [Row Level Security](/docs/guides/database/postgres/row-level-security) for a more in-depth guide on RLS policies.
-## Alternative Scenarios
+## Alternative scenarios
Every app has its own unique requirements and may differ from the above example. Here are some alternative scenarios we often see and how they are implemented in Supabase.
@@ -189,7 +189,7 @@ Since we're managing users and authentication outside of Supabase, we have two o
1. Make a direct Postgres connection to the Supabase DB and set the current user every request
2. Issue a custom JWT from your system and use it to authenticate with the REST API
-#### Direct Postgres Connection
+#### Direct Postgres connection
You can directly connect to your Supabase Postgres DB using the [connection info](/dashboard/project/_/settings/database) on your project's database settings page. To use RLS with this method, we use a custom session variable that contains the current user's ID:
diff --git a/apps/docs/pages/guides/ai/vecs-python-client.mdx b/apps/docs/pages/guides/ai/vecs-python-client.mdx
index 05b36f72bf8..071da52f43d 100644
--- a/apps/docs/pages/guides/ai/vecs-python-client.mdx
+++ b/apps/docs/pages/guides/ai/vecs-python-client.mdx
@@ -77,7 +77,7 @@ docs.query(
)
```
-## Deep Dive
+## Deep dive
For a more in-depth guide on `vecs` collections, see [API](/docs/guides/ai/python/api).
diff --git a/apps/docs/pages/guides/api.mdx b/apps/docs/pages/guides/api.mdx
index 21b68b980fb..2286f601d54 100644
--- a/apps/docs/pages/guides/api.mdx
+++ b/apps/docs/pages/guides/api.mdx
@@ -43,7 +43,7 @@ Reference:
- [Docs](https://postgrest.org/)
- [Source Code](https://github.com/PostgREST/postgrest)
-## API URL and Keys
+## API URL and keys
You can find the API URL and Keys in the [Dashboard](https://supabase.com/dashboard/project/_/settings/api).
diff --git a/apps/docs/pages/guides/api/creating-routes.mdx b/apps/docs/pages/guides/api/creating-routes.mdx
index 9881edafb89..32e98f2962e 100644
--- a/apps/docs/pages/guides/api/creating-routes.mdx
+++ b/apps/docs/pages/guides/api/creating-routes.mdx
@@ -51,7 +51,7 @@ create table
</TabPanel>
</Tabs>
-## API URL and Keys
+## API URL and keys
Every Supabase project has a unique API URL. Your API is secured behind an API gateway which requires an API Key for every request.
diff --git a/apps/docs/pages/guides/api/data-apis.mdx b/apps/docs/pages/guides/api/data-apis.mdx
index a0a4c7b9836..acf7186c869 100644
--- a/apps/docs/pages/guides/api/data-apis.mdx
+++ b/apps/docs/pages/guides/api/data-apis.mdx
@@ -8,7 +8,7 @@ export const meta = {
Supabase's auto-generated Data APIs let you perform operations on your database using REST API calls. You can read, write, and delete data, and even call functions, without writing an intermediate layer to translate between your app and Postgres.
-## How to use the Data APIs
+## How to use the data APIs
The Data APIs are auto-generated HTTP REST endpoints. You can call them in the same way as any HTTP endpoint, for example, using `curl` from the command line or `fetch` from the browser. For convenience, you can use the Supabase client libraries. The client libraries perform the HTTP call for you, while also handling authentication, parsing responses, and maintaining type safety.
diff --git a/apps/docs/pages/guides/api/rest/client-libs.mdx b/apps/docs/pages/guides/api/rest/client-libs.mdx
index aa967a4b9eb..6c09295c8cd 100644
--- a/apps/docs/pages/guides/api/rest/client-libs.mdx
+++ b/apps/docs/pages/guides/api/rest/client-libs.mdx
@@ -9,14 +9,14 @@ export const meta = {
Supabase provides client libraries for the REST and Realtime APIs. Some libraries are officially supported, and some are contributed by the community.
-## Official Libraries
+## Official libraries
| `Language` | `Source Code` | `Documentation` |
| --------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| Javascript/Typescript | [supabase-js](https://github.com/supabase/supabase-js) | [Docs](https://supabase.com/docs/reference/javascript/introduction) |
| Dart/Flutter | [supabase-flutter](https://github.com/supabase/supabase-flutter/tree/main/packages/supabase_flutter) | [Docs](https://supabase.com/docs/reference/dart/introduction) |
-## Community Libraries
+## Community libraries
| `Language` | `Source Code` | `Documentation` |
| ----------------------- | -------------------------------------------------------------------------------- | --------------------------------------------------------------- |
diff --git a/apps/docs/pages/guides/api/rest/generating-types.mdx b/apps/docs/pages/guides/api/rest/generating-types.mdx
index ac14bc5ba50..3d185e87fde 100644
--- a/apps/docs/pages/guides/api/rest/generating-types.mdx
+++ b/apps/docs/pages/guides/api/rest/generating-types.mdx
@@ -84,7 +84,7 @@ import { Database } from './database.types'
const supabase = createClient<Database>(process.env.SUPABASE_URL, process.env.SUPABASE_ANON_KEY)
```
-## Helper types for Tables and Joins
+## Helper types for tables and joins
You can use the following helper types to make the generated TypeScript types easier to use.
diff --git a/apps/docs/pages/guides/auth.mdx b/apps/docs/pages/guides/auth.mdx
index 151941810df..c3cf0065265 100644
--- a/apps/docs/pages/guides/auth.mdx
+++ b/apps/docs/pages/guides/auth.mdx
@@ -121,7 +121,7 @@ const { data, error } = await supabase.from('users').select('user_id, name')
// Still => { id: 'd0714948', name: 'Jane' }
```
-### How It Works
+### How it works
1. A user signs up. Supabase creates a new user in the `auth.users` table.
2. Supabase returns a new JWT, which contains the user's `UUID`.
@@ -131,7 +131,7 @@ const { data, error } = await supabase.from('users').select('user_id, name')
Supabase provides a special function in Postgres, `auth.uid()`, which extracts the user's UID from the JWT. This is especially useful when creating policies.
-## User Management
+## User management
Supabase provides multiple endpoints to authenticate and manage your users:
diff --git a/apps/docs/pages/guides/auth/auth-email-templates.mdx b/apps/docs/pages/guides/auth/auth-email-templates.mdx
index cd323634d5e..b06142dfbcb 100644
--- a/apps/docs/pages/guides/auth/auth-email-templates.mdx
+++ b/apps/docs/pages/guides/auth/auth-email-templates.mdx
@@ -28,7 +28,7 @@ The templating system provides the following variables for use:
## Limitations
-### Email Prefetching
+### Email prefetching
Certain email providers may have spam detection or other security features that prefetch URL links from incoming emails (e.g. [Safe Links in Microsoft Defender for Office 365](https://learn.microsoft.com/en-us/microsoft-365/security/office-365-security/safe-links-about?view=o365-worldwide)).
In this scenario, the `{{ .ConfirmationURL }}` sent will be consumed instantly which leads to a "Token has expired or is invalid" error.
@@ -47,7 +47,7 @@ To guard against this:
The user should be brought to a page on your site where they can confirm the action by clicking a button.
The button should contain the actual confirmation link which can be obtained from parsing the `confirmation_url={{ .ConfirmationURL }}` query parameter in the URL.
-### Email Tracking
+### Email tracking
If you are using an external email provider that enables "email tracking", the links inside the Supabase email templates will be overwritten and won't perform as expected. We recommend disabling email tracking to ensure email links are not overwritten.
diff --git a/apps/docs/pages/guides/auth/auth-helpers.mdx b/apps/docs/pages/guides/auth/auth-helpers.mdx
index 2b1f873044d..e8b59ff4a37 100644
--- a/apps/docs/pages/guides/auth/auth-helpers.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers.mdx
@@ -48,7 +48,7 @@ Working with server-side frameworks is slightly different to client-side framewo
The Auth Helpers are in `beta`. They are usable in their current state, but it's likely that there will be breaking changes.
-## Additional Links
+## Additional links
- [Source code](https://github.com/supabase/auth-helpers)
- [Known bugs and issues](https://github.com/supabase/auth-helpers/issues)
diff --git a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx
index 9dfb3964754..b832b27be0c 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/auth-ui.mdx
@@ -59,7 +59,7 @@ const App = () => (
)
```
-### Social Providers
+### Social providers
The Auth component also supports login with [official social providers](../../auth#providers).
@@ -96,7 +96,7 @@ Options are available via `queryParams`:
/>
```
-### Provider Scopes
+### Provider scopes
Provider Scopes can be requested through `providerScope`;
@@ -115,7 +115,7 @@ Provider Scopes can be requested through `providerScope`;
/>
```
-### Supported Views
+### Supported views
The Auth component is currently shipped with the following views:
diff --git a/apps/docs/pages/guides/auth/auth-helpers/flutter-auth-ui.mdx b/apps/docs/pages/guides/auth/auth-helpers/flutter-auth-ui.mdx
index 13af6fb5ddd..fe5b99f2786 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/flutter-auth-ui.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/flutter-auth-ui.mdx
@@ -22,7 +22,7 @@ dependencies:
supabase_auth_ui: ^0.1.0+2
```
-### Initialize the Flutter Auth Package
+### Initialize the Flutter Auth package
```dart
import 'package:flutter/material.dart';
@@ -65,7 +65,7 @@ SupaEmailAuth(
)
```
-### Magic Link Auth
+### Magic link Auth
Use SupaMagicAuth widget to create a magic link signIn form.
diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx
index cd7710d0e87..51966eaa264 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs-pages.mdx
@@ -44,7 +44,7 @@ NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
```
-## Basic Setup
+## Basic setup
<Tabs
scrollable
@@ -114,7 +114,7 @@ export default MyApp
You can now determine if a user is authenticated by checking that the `user` object returned by the `useUser()` hook is defined.
-### Code Exchange API Route
+### Code Exchange API route
The `Code Exchange` API route is required for the [server-side auth flow](https://supabase.com/docs/guides/auth/server-side-rendering) implemented by the Next.js Auth Helpers. It exchanges an auth `code` for the user's `session`, which is set as a cookie for future requests made to Supabase.
@@ -594,7 +594,7 @@ export default ProtectedRoute
</TabPanel>
</Tabs>
-## Auth with Next.js Middleware
+## Auth with Next.js middleware
As an alternative to protecting individual pages you can use a [Next.js Middleware](https://nextjs.org/docs/middleware) to protect the entire directory or those that match the config object. In the following example, all requests to `/middleware-protected/*` will check whether a user is signed in, if successful the request will be forwarded to the destination route, otherwise the user will be redirected:
@@ -631,11 +631,11 @@ export const config = {
}
```
-## Migration Guide
+## Migration guide
### Migrating to v0.7.X
-#### PKCE Auth Flow
+#### PKCE Auth flow
PKCE is the new server-side auth flow implemented by the Next.js Auth Helpers. It requires a new API route for `/api/auth/callback` that exchanges an auth `code` for the user's `session`.
@@ -655,7 +655,7 @@ supabase.auth.signUp({
})
```
-#### Deprecated Functions
+#### Deprecated functions
With v0.7.x of the Next.js Auth Helpers a new naming convention has been implemented for createClient functions. The `createBrowserSupabaseClient` and `createServerSupabaseClient` functions have been marked as deprecated, and will be removed in a future version of the Auth Helpers.
diff --git a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx
index 97e2d13d1a7..c5cfb0c434c 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/nextjs.mdx
@@ -31,13 +31,13 @@ If you are using the `pages` directory, check out [Auth Helpers in Next.js Pages
</Admonition>
-## Install Next.js Auth Helpers library
+## Install Next.js Auth helpers library
```sh Terminal
npm install @supabase/auth-helpers-nextjs @supabase/supabase-js
```
-## Declare Environment Variables
+## Declare environment variables
Retrieve your project's URL and anon key from your [API settings](https://supabase.com/dashboard/project/_/settings/api), and create a `.env.local` file with the following environment variables:
@@ -46,7 +46,7 @@ NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
```
-## Managing session with Middleware
+## Managing session with middleware
When using the Supabase client on the server, you must perform extra steps to ensure the user's auth session remains active. Since the user's session is tracked in a cookie, we need to read this cookie and update it if necessary.
@@ -384,7 +384,7 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javasc
The combination of [Server Components](https://nextjs.org/docs/getting-started/react-essentials#server-components) and [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers) can be used to trigger the authentication process from form submissions.
-#### Sign Up Route
+#### Sign up route
<Tabs
scrollable
@@ -470,7 +470,7 @@ Returning a `301` status redirects from a POST to a GET route
</Admonition>
-#### Login Route
+#### Login route
<Tabs
scrollable
@@ -550,7 +550,7 @@ Returning a `301` status redirects from a POST to a GET route
</Admonition>
-#### Logout Route
+#### Logout route
<Tabs
scrollable
@@ -612,7 +612,7 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javasc
</TabPanel>
</Tabs>
-#### Login Page
+#### Login page
<Tabs
scrollable
@@ -661,7 +661,7 @@ export default function Login() {
</TabPanel>
</Tabs>
-## Creating a Supabase Client
+## Creating a Supabase client
There are 5 ways to access the Supabase client with the Next.js Auth Helpers:
@@ -673,7 +673,7 @@ There are 5 ways to access the Supabase client with the Next.js Auth Helpers:
This allows for the Supabase client to be easily instantiated in the correct context. All you need to change is the context in the middle `create[ClientComponent|ServerComponent|ServerAction|RouteHandler|Middleware]Client` and the Auth Helpers will take care of the rest.
-### Client Components
+### Client components
<div className="video-container">
<iframe
@@ -772,7 +772,7 @@ The `createClientComponentClient` function implements a [Singleton pattern](http
const supabase = createClientComponentClient({ isSingleton: false })
```
-### Server Components
+### Server components
<div className="video-container">
<iframe
@@ -845,7 +845,7 @@ Check out the [Next.js auth example repo](https://github.com/supabase/supabase/t
</Admonition>
-### Server Actions
+### Server actions
<div className="video-container">
<iframe
@@ -935,7 +935,7 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javasc
</TabPanel>
</Tabs>
-### Route Handlers
+### Route handlers
<div className="video-container">
<iframe
@@ -1004,13 +1004,13 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javasc
See [refreshing session example](/docs/guides/auth/auth-helpers/nextjs#managing-session-with-middleware) above.
-### Edge Runtime
+### Edge runtime
The Next.js Edge Runtime allows you to host Server Components and Route Handlers from Edge nodes, serving the routes as close as possible to your user's location.
A route can be configured to use the Edge Runtime by exporting a `runtime` variable set to `edge`. Additionally, the `cookies()` function must be called from the Edge route, before creating a Supabase Client.
-#### Server Components
+#### Server components
<Tabs
scrollable
@@ -1074,7 +1074,7 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javasc
</TabPanel>
</Tabs>
-#### Route Handlers
+#### Route handlers
<Tabs
scrollable
@@ -1139,11 +1139,11 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javasc
</TabPanel>
</Tabs>
-### Static Routes
+### Static routes
Server Components and Route Handlers are static by default - data is fetched once at build time and the value is cached. Since the request to Supabase now happens at build time, there is no user, session or cookie to pass along with the request to Supabase. Therefore, the `createClient` function from `supabase-js` can be used to fetch data for static routes.
-#### Server Components
+#### Server components
<Tabs
scrollable
@@ -1197,7 +1197,7 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javasc
</TabPanel>
</Tabs>
-#### Route Handlers
+#### Route handlers
<Tabs
scrollable
@@ -1266,11 +1266,11 @@ TypeScript types can be [generated with the Supabase CLI](/docs/reference/javasc
- [Protected Routes](https://github.com/supabase/supabase/tree/master/examples/auth/nextjs/app/[id]/page.tsx)
- [Conditional Rendering in Client Components with SSR](https://github.com/supabase/supabase/tree/master/examples/auth/nextjs/app/login-form.tsx)
-## Migration Guide
+## Migration guide
### Migrating to v0.7.X
-#### PKCE Auth Flow
+#### PKCE Auth flow
PKCE is the new server-side auth flow implemented by the Next.js Auth Helpers. It requires a new Route Handler for `/auth/callback` that exchanges an auth `code` for the user's `session`.
@@ -1290,7 +1290,7 @@ supabase.auth.signUp({
})
```
-#### Deprecated Functions
+#### Deprecated functions
With v0.7.x of the Next.js Auth Helpers a new naming convention has been implemented for createClient functions. The `createMiddlewareSupabaseClient`, `createBrowserSupabaseClient`, `createServerComponentSupabaseClient` and `createRouteHandlerSupabaseClient` functions have been marked as deprecated, and will be removed in a future version of the Auth Helpers.
@@ -1299,7 +1299,7 @@ With v0.7.x of the Next.js Auth Helpers a new naming convention has been impleme
- `createServerComponentSupabaseClient` has been replaced with `createServerComponentClient`
- `createRouteHandlerSupabaseClient` has been replaced with `createRouteHandlerClient`
-#### createClientComponentClient returns singleton
+#### `createClientComponentClient` returns singleton
You no longer need to implement logic to ensure there is only a single instance of the Supabase Client shared across all Client Components - this is now the default and handled by the `createClientComponentClient` function. Call it as many times as you want!
diff --git a/apps/docs/pages/guides/auth/auth-helpers/remix.mdx b/apps/docs/pages/guides/auth/auth-helpers/remix.mdx
index 30a9fc3391f..d8fd0a47fdc 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/remix.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/remix.mdx
@@ -45,7 +45,7 @@ SUPABASE_URL=YOUR_SUPABASE_URL
SUPABASE_ANON_KEY=YOUR_SUPABASE_ANON_KEY
```
-### Code Exchange Route
+### Code Exchange route
The `Code Exchange` route is required for the [server-side auth flow](https://supabase.com/docs/guides/auth/server-side-rendering) implemented by the Remix Auth Helpers. It exchanges an auth `code` for the user's `session`, which is set as a cookie for future requests made to Supabase.
@@ -275,7 +275,7 @@ export const action = async ({ request }: ActionArgs) => {
</TabPanel>
</Tabs>
-## Session and User
+## Session and user
You can determine if a user is authenticated by checking their session using the `getSession` function.
@@ -759,11 +759,11 @@ export default function Index() {
> Ensure you have [enabled replication](https://supabase.com/dashboard/project/_/database/replication) on the table you are subscribing to.
-## Migration Guide
+## Migration guide
### Migrating to v0.2.0
-#### PKCE Auth Flow
+#### PKCE Auth flow
PKCE is the new server-side auth flow implemented by the Remix Auth Helpers. It requires a new `loader` route for `/auth/callback` that exchanges an auth `code` for the user's `session`.
diff --git a/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx b/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx
index cbef5d91bb2..980f3f9dbcd 100644
--- a/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx
+++ b/apps/docs/pages/guides/auth/auth-helpers/sveltekit.mdx
@@ -17,7 +17,7 @@ This submodule provides convenience helpers for implementing user authentication
## Configuration
-### Install SvelteKit Auth Helpers library
+### Install SvelteKit Auth helpers library
This library supports Node.js `^16.15.0`.
@@ -25,7 +25,7 @@ This library supports Node.js `^16.15.0`.
npm install @supabase/auth-helpers-sveltekit @supabase/supabase-js
```
-### Declare Environment Variables
+### Declare environment variables
Retrieve your project's URL and anon key from your [API settings](https://supabase.com/dashboard/project/_/settings/api), and create a `.env.local` file with the following environment variables:
@@ -35,7 +35,7 @@ PUBLIC_SUPABASE_URL=https://your-project.supabase.co
PUBLIC_SUPABASE_ANON_KEY=your-anon-key
```
-### Creating a Supabase Client
+### Creating a Supabase client
<Tabs
scrollable
@@ -128,7 +128,7 @@ Note that we are specifying filterSerializedResponseHeaders here. We need to tel
</Admonition>
-### Code Exchange Route
+### Code Exchange route
The `Code Exchange` route is required for the [server-side auth flow](https://supabase.com/docs/guides/auth/server-side-rendering) implemented by the SvelteKit Auth Helpers. It exchanges an auth `code` for the user's `session`, which is set as a cookie for future requests made to Supabase.
@@ -254,7 +254,7 @@ export const load = async ({ locals: { getSession } }) => {
</TabPanel>
</Tabs>
-#### Shared Load functions and pages
+#### Shared load functions and pages
To utilize Supabase in shared load functions and within pages, it is essential to create a Supabase client in the root layout load.
@@ -366,7 +366,7 @@ We need to create an event listener in the root `+layout.svelte` file in order t
The usage of `invalidate` tells SvelteKit that the root `+layout.ts` load function should be executed whenever the session updates to keep the page store in sync.
-#### Sign in / Sign up / Sign out
+#### Sign in / sign up / sign out
We can access the supabase instance in our `+page.svelte` file through the data object.
@@ -544,7 +544,7 @@ export const GET = async ({ locals: { supabase, getSession } }) => {
If you visit `/api/protected-route` without a valid session cookie, you will get a 401 response.
-### Protecting Actions
+### Protecting actions
Wrap an Action to check that the user has a valid session. If they're not logged in the session is `null`.
@@ -827,11 +827,11 @@ export const actions = {
}
```
-## Migration Guide [#migration]
+## Migration guide [#migration]
### Migrate to 0.10
-#### PKCE Auth Flow
+#### PKCE Auth flow
Proof Key for Code Exchange (PKCE) is the new server-side auth flow implemented by the SvelteKit Auth Helpers. It requires a server endpoint for `/auth/callback` that exchanges an auth `code` for the user's `session`.
@@ -1422,7 +1422,7 @@ declare namespace App {
</TabPanel>
</Tabs>
-#### withPageAuth [#migration-with-page-auth-0-8]
+#### `withPageAuth` [#migration-with-page-auth-0-8]
<Tabs
scrollable
@@ -1501,7 +1501,7 @@ export const load: PageLoad = async (event) => {
</TabPanel>
</Tabs>
-#### withApiAuth [#migration-with-api-auth-0-8]
+#### `withApiAuth` [#migration-with-api-auth-0-8]
<Tabs
scrollable
@@ -1818,7 +1818,7 @@ declare namespace App {
</TabPanel>
</Tabs>
-#### withPageAuth
+#### `withPageAuth`
<Tabs
scrollable
@@ -1895,7 +1895,7 @@ export const load: PageLoad = withAuth(async ({ session, getSupabaseClient }) =>
</TabPanel>
</Tabs>
-#### withApiAuth
+#### `withApiAuth`
<Tabs
scrollable
@@ -1960,7 +1960,7 @@ export const GET: RequestHandler = withAuth(async ({ session, getSupabaseClient
</TabPanel>
</Tabs>
-## Additional Links
+## Additional links
- [Auth Helpers Source code](https://github.com/supabase/auth-helpers)
- [SvelteKit example](https://github.com/supabase/auth-helpers/tree/main/examples/sveltekit)
diff --git a/apps/docs/pages/guides/auth/auth-hooks.mdx b/apps/docs/pages/guides/auth/auth-hooks.mdx
index f2b5489cfad..321ab2ccd4e 100644
--- a/apps/docs/pages/guides/auth/auth-hooks.mdx
+++ b/apps/docs/pages/guides/auth/auth-hooks.mdx
@@ -31,9 +31,9 @@ You can use hooks at specific points along an Auth flow to perform custom behavi
You can connect a hook to Supabase Auth to signal to Supabase Auth that it should make use of the hook.
-## Create a Hook
+## Create a hook
-### What is a Hook
+### What is a hook
A hook is a [Postgres Function](https://www.postgresql.org/docs/current/sql-createfunction.html) with a single argument -- the `event` of type [JSONB]() -- and which returns a JSONB object.
@@ -124,11 +124,11 @@ When an error is returned, the error is propagated from the hook to Supabase Aut
Ensure that your hooks complete within **2 seconds** to avoid any errors.
-### Connect a Hook
+### Connect a hook
In the dashboard, navigate to [`Authentication > Hooks (Beta)`](/dashboard/project/_/auth/hooks) and select the appropriate PostgreSQL function from the dropdown menu.
-## Hook: MFA Verification Attempt
+## Hook: MFA verification attempt
You can add additional checks to the [Supabase MFA implementation](/docs/guides/auth/auth-mfa) with hooks. For example, you can:
@@ -268,7 +268,7 @@ revoke all
</TabPanel>
</Tabs>
-## Hook: Password Verification Attempt
+## Hook: Password verification attempt
Your company wishes to increase security beyond the requirements of the default password implementation in order to fulfill security or compliance requirements. You plan to track the status of a password sign-in attempt and take action via an email or a restriction on logins where necessary.
@@ -513,7 +513,7 @@ revoke all
</TabPanel>
</Tabs>
-## Hook: Custom Access Token
+## Hook: Custom access token
The custom access token hook runs before a token is issued and allows you to add additional claims based on the authentication method used.
diff --git a/apps/docs/pages/guides/auth/auth-identity-linking.mdx b/apps/docs/pages/guides/auth/auth-identity-linking.mdx
index d564dba6e20..e7477981a84 100644
--- a/apps/docs/pages/guides/auth/auth-identity-linking.mdx
+++ b/apps/docs/pages/guides/auth/auth-identity-linking.mdx
@@ -7,7 +7,7 @@ export const meta = {
subtitle: 'Manage the identities associated with your user',
}
-## The User Identity
+## The user identity
The user identity represents an authentication method associated to the user. For example, if a user signs in using their email, an email identity will be associated with the user.
@@ -39,7 +39,7 @@ In order for automatic linking to correctly identify the user for linking, Supab
Users that signed up with [SAML SSO](/docs/guides/auth/sso/auth-sso-saml) will not be considered as targets for automatic linking.
-### Manual linking (Beta)
+### Manual linking (beta)
<Tabs
scrollable
diff --git a/apps/docs/pages/guides/auth/auth-password-reset.mdx b/apps/docs/pages/guides/auth/auth-password-reset.mdx
index 476c61f2a2f..7490f1edb1f 100644
--- a/apps/docs/pages/guides/auth/auth-password-reset.mdx
+++ b/apps/docs/pages/guides/auth/auth-password-reset.mdx
@@ -53,7 +53,7 @@ If you are on one of the Kotlin targets that have built-in support for redirect
The email link you receive will work like a magic link. This way when you click the link you will be logged into the website. Since we passed a redirect URL to the [`.resetPasswordForEmail`](https://supabase.com/docs/reference/javascript/auth-resetpasswordforemail) method the user should be sent to the update password page.
-### Update Password
+### Update password
<Tabs
scrollable
@@ -214,7 +214,7 @@ That's it! `supabase-kt` will take care of parsing and importing the session. Ot
</TabPanel>
</Tabs>
-### Update Password
+### Update password
<Tabs
scrollable
diff --git a/apps/docs/pages/guides/auth/auth-smtp.mdx b/apps/docs/pages/guides/auth/auth-smtp.mdx
index ba45916b7c3..918e20b144d 100644
--- a/apps/docs/pages/guides/auth/auth-smtp.mdx
+++ b/apps/docs/pages/guides/auth/auth-smtp.mdx
@@ -19,7 +19,7 @@ Beyond rate limits, an SMTP server might also help with:
- Analytics and Tracking
- Compliance and Anti Spam measures
-## How to Set up SMTP
+## How to set up SMTP
Head over to [Auth Settings Page](https://supabase.com/dashboard/project/_/settings/auth) and hit "Enable Custom SMTP" under the SMTP Provider section.
@@ -27,11 +27,11 @@ Fill in fields below with the relevant details obtained from your custom SMTP pr
![SMTP settings](/docs/img/guides/auth-smtp/smtp.png)
-## How to update Email Rate Limits
+## How to update email rate limits
After adding a custom SMTP provider, you can head over to [Auth > Rate Limits](https://supabase.com/dashboard/project/_/auth/rate-limits) to configure the rate limits for sending emails.
-### SMTP Providers
+### SMTP providers
You can use Supabase Auth with any major SMTP provider of your choosing. Some SMTP providers you could consider using are:
diff --git a/apps/docs/pages/guides/auth/auth-user-management.mdx b/apps/docs/pages/guides/auth/auth-user-management.mdx
index aa2e9c9d1bd..edc65197f44 100644
--- a/apps/docs/pages/guides/auth/auth-user-management.mdx
+++ b/apps/docs/pages/guides/auth/auth-user-management.mdx
@@ -7,7 +7,7 @@ export const meta = {
subtitle: 'Manage your users with Supabase Auth',
}
-## The User Object
+## The user object
The user object stores all the information related to a user in your application. The user object can be retrieved using one of these methods:
diff --git a/apps/docs/pages/guides/auth/managing-user-data.mdx b/apps/docs/pages/guides/auth/managing-user-data.mdx
index 08218011bb3..2735f05f837 100644
--- a/apps/docs/pages/guides/auth/managing-user-data.mdx
+++ b/apps/docs/pages/guides/auth/managing-user-data.mdx
@@ -34,7 +34,7 @@ Primary keys are **guaranteed not to change**. Columns, indices, constraints or
</Admonition>
-## Deleting Users
+## Deleting users
You may delete users directly or via the management console at Authentication > Users. Note that deleting a user from the `auth.users` table does not automatically sign out a user. As Supabase makes use of JSON Web Tokens (JWT), a user's JWT will remain "valid" until it has expired. Should you wish to immediately revoke access for a user, do consider making use of a Row Level Security policy as described below.
@@ -46,7 +46,7 @@ You will encounter an error when you try to delete an Auth user that owns any St
</Admonition>
-## Exporting Users
+## Exporting users
As Supabase is built on top of PostgreSQL, you can query the `auth.users` and `auth.identities` table via the `SQL Editor` tab to extract all users:
@@ -139,7 +139,7 @@ If you need to fetch a full list of user profiles, we supply a `service_key` whi
Make sure you _NEVER_ expose this publicly. But it can be used on the server-side to fetch all of the profiles.
-## Accessing User Metadata
+## Accessing user metadata
You can assign metadata to users on sign up:
diff --git a/apps/docs/pages/guides/auth/native-mobile-login.mdx b/apps/docs/pages/guides/auth/native-mobile-login.mdx
index 321e7575d40..c5883ab7bad 100644
--- a/apps/docs/pages/guides/auth/native-mobile-login.mdx
+++ b/apps/docs/pages/guides/auth/native-mobile-login.mdx
@@ -42,7 +42,7 @@ There are several reasons why you might want to add social login to your applica
</div>
-## Provider Tokens
+## Provider tokens
Just like with Oauth, you will receive a copy of the provider token in case you need to use it further. For example, you can use the Google provider token to access Google APIs on behalf of your user.
diff --git a/apps/docs/pages/guides/auth/passwordless-login/auth-email-otp.mdx b/apps/docs/pages/guides/auth/passwordless-login/auth-email-otp.mdx
index 1e3478d716f..38857d78245 100644
--- a/apps/docs/pages/guides/auth/passwordless-login/auth-email-otp.mdx
+++ b/apps/docs/pages/guides/auth/passwordless-login/auth-email-otp.mdx
@@ -8,7 +8,7 @@ export const meta = {
Email one-time passwords (OTP) are a form of passwordless login where users key in a six digit code sent to their email address to log in to their accounts. By default, a user can only request an OTP once every 60 seconds and they expire after 24 hours.
-## Setting up Email OTP
+## Setting up email OTP
To set up email OTP for your Supabase app:
diff --git a/apps/docs/pages/guides/auth/phone-login/twilio.mdx b/apps/docs/pages/guides/auth/phone-login/twilio.mdx
index 0a29cd6bc73..4c04a088fb8 100644
--- a/apps/docs/pages/guides/auth/phone-login/twilio.mdx
+++ b/apps/docs/pages/guides/auth/phone-login/twilio.mdx
@@ -402,7 +402,7 @@ and the response should also be the same as above:
The user does not have a password therefore will need to sign in via this method each time they want to access your service.
-## WhatsApp OTP Logins
+## WhatsApp OTP logins
In some cases, you may wish to use WhatsApp as a delivery channel instead. Here are some examples our users have cited:
diff --git a/apps/docs/pages/guides/auth/row-level-security.mdx b/apps/docs/pages/guides/auth/row-level-security.mdx
index d1a3f2787bb..2201c26e97b 100644
--- a/apps/docs/pages/guides/auth/row-level-security.mdx
+++ b/apps/docs/pages/guides/auth/row-level-security.mdx
@@ -65,7 +65,7 @@ using ( true );
```
-## Helper Functions
+## Helper functions
Supabase provides some helper functions that make it easier to write Policies.
diff --git a/apps/docs/pages/guides/auth/server-side-rendering.mdx b/apps/docs/pages/guides/auth/server-side-rendering.mdx
index 0cf7a39608f..4d01f8e1605 100644
--- a/apps/docs/pages/guides/auth/server-side-rendering.mdx
+++ b/apps/docs/pages/guides/auth/server-side-rendering.mdx
@@ -201,7 +201,7 @@ Even though refresh tokens are long-lived, there is no guarantee that a user has
A good practice is to handle unauthorized errors by deferring rendering the page in the browser instead of in the server. Some user information is contained in the access token though, so in certain cases, you may be able to use this potentially stale information to render a page.
-## Frequently Asked Questions
+## Frequently asked questions
### No session on the server side with Next.js route prefetching?
diff --git a/apps/docs/pages/guides/auth/server-side/overview.mdx b/apps/docs/pages/guides/auth/server-side/overview.mdx
index 9bfb35cd722..18e4c186f9a 100644
--- a/apps/docs/pages/guides/auth/server-side/overview.mdx
+++ b/apps/docs/pages/guides/auth/server-side/overview.mdx
@@ -9,7 +9,7 @@ export const meta = {
When using Supabase with server-side languages and frameworks - such as Next.js, SvelteKit and Remix - it is important to configure your Supabase client to use cookies for storing user sessions. We have developed an `@supabase/ssr` package to make this process as simple as possible. This package is currently in `beta`. Adoption is recommended but be aware that the API is still unstable and may have breaking changes in the future.
-## Framework Quickstarts
+## Framework quickstarts
<div className="grid lg:grid-cols-12 gap-6 not-prose">
{quickstarts.map((item) => {
diff --git a/apps/docs/pages/guides/auth/social-login.mdx b/apps/docs/pages/guides/auth/social-login.mdx
index 5c1c2edb302..f5e9b16a66c 100644
--- a/apps/docs/pages/guides/auth/social-login.mdx
+++ b/apps/docs/pages/guides/auth/social-login.mdx
@@ -42,7 +42,7 @@ Supabase supports a suite of social providers. Follow these guides to configure
</div>
-## Provider Tokens
+## Provider tokens
You can use the provider token and provider refresh token returned to make API calls to the OAuth provider. For example, you can use the Google provider token to access Google APIs on behalf of your user.
diff --git a/apps/docs/pages/guides/auth/social-login/auth-apple.mdx b/apps/docs/pages/guides/auth/social-login/auth-apple.mdx
index 47349e5ead1..3714d17c2f9 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-apple.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-apple.mdx
@@ -70,7 +70,7 @@ When developing with Expo, you can test Sign in with Apple via the Expo Go app,
<AppleSecretGenerator />
- ## Using Sign in with Apple JS
+ ## Using sign in with Apple JS
[Sign in with Apple JS](https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js) is an official Apple framework for authenticating Apple users on websites. Although it can be used in web-based apps, those use cases will benefit more with the OAuth flow described above. We recommend using this method on classic websites only.
@@ -120,7 +120,7 @@ When developing with Expo, you can test Sign in with Apple via the Expo Go app,
<TabPanel id="react-native" label="Expo React Native">
- ## Using Native Sign in with Apple in Expo
+ ## Using native sign in with Apple in Expo
When working with Expo, you can use the [Expo AppleAuthentication](https://docs.expo.dev/versions/latest/sdk/apple-authentication/) library to obtain and ID token that you can pass to supabase-js [`signInWithIdToken` method](/docs/reference/javascript/auth-signinwithidtoken).
@@ -200,7 +200,7 @@ When developing with Expo, you can test Sign in with Apple via the Expo Go app,
<TabPanel id="flutter" label="Flutter">
- ## Using Native Sign in with Apple in Flutter
+ ## Using native sign in with Apple in Flutter
You can perform Apple sign in using the [sign_in_with_apple](https://pub.dev/packages/sign_in_with_apple) package on Flutter.
Follow the instructions in the package README to set up native Apple sign in on iOS and macOS.
@@ -253,7 +253,7 @@ When developing with Expo, you can test Sign in with Apple via the Expo Go app,
<TabPanel id="swift" label="Swift">
- ## Using Native Sign in with Apple in Swift
+ ## Using native sign in with Apple in Swift
For apps written in Swift, follow the [Apple Developer docs](https://developer.apple.com/documentation/sign_in_with_apple/implementing_user_authentication_with_sign_in_with_apple) for obtaining the ID token and then pass it to the [Swift client's `signInWithIdToken`](https://github.com/supabase-community/gotrue-swift/blob/main/Examples/Shared/Sources/SignInWithAppleView.swift#L36) method.
@@ -313,7 +313,7 @@ When developing with Expo, you can test Sign in with Apple via the Expo Go app,
<TabPanel id="kotlin" label="Kotlin">
- ## Using Native Sign in with Apple in Kotlin
+ ## Using native sign in with Apple in Kotlin
When using [Compose Multiplatform](https://github.com/JetBrains/compose-multiplatform/), you can use the [compose-auth](https://supabase.com/docs/reference/kotlin/installing) plugin. On iOS it uses Native Apple Login automatically and on other platforms it uses `gotrue.signInWith(Apple)`.
diff --git a/apps/docs/pages/guides/auth/social-login/auth-azure.mdx b/apps/docs/pages/guides/auth/social-login/auth-azure.mdx
index 2e5633ebed4..1fde454fc36 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-azure.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-azure.mdx
@@ -31,7 +31,7 @@ Setting up OAuth with Azure consists of four broad steps:
![Register an application.](/docs/img/guides/auth-azure/azure-register-app.png)
-## Obtain a Client ID and Secret
+## Obtain a client ID and secret
- Once your app has been registered, the client ID can be found under the [list of app registrations](https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps) under the column titled _Application (client) ID_.
- You can also find it in the app overview screen.
@@ -46,7 +46,7 @@ Setting up OAuth with Azure consists of four broad steps:
![Obtain the client secret](/docs/img/guides/auth-azure/azure-client-secret.png)
-## Guarding Against Unverified Email Domains
+## Guarding against unverified email domains
Microsoft Entra ID can send out unverified email domains in certain cases. This may open up your project to a vulnerability where a malicious user can impersonate already existing accounts on your project.
@@ -97,7 +97,7 @@ Configure this in the following way:
```
- Select _Save_ to apply the new configuration.
-## Configure a Tenant URL (Optional)
+## Configure a tenant URL (optional)
A Microsoft Entra tenant is the directory of users who are allowed to access your project. This section depends on what your OAuth registration uses for _Supported account types._
diff --git a/apps/docs/pages/guides/auth/social-login/auth-bitbucket.mdx b/apps/docs/pages/guides/auth/social-login/auth-bitbucket.mdx
index 4f4d9515da3..a0284543d47 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-bitbucket.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-bitbucket.mdx
@@ -42,7 +42,7 @@ Setting up Bitbucket logins for your application consists of 3 parts:
- Click on your app name (the name of your new OAuth Consumer)
- Copy your `Key` (`client_key`) and `Secret` (`client_secret`) codes
-## Add your Bitbucket credentials into your Supabase Project
+## Add your Bitbucket credentials into your Supabase project
<SocialProviderSettingsSupabase provider="Bitbucket" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-discord.mdx b/apps/docs/pages/guides/auth/social-login/auth-discord.mdx
index bb2ed32426c..043234a76e5 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-discord.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-discord.mdx
@@ -31,7 +31,7 @@ Setting up Discord logins for your application consists of 3 parts:
<SocialProviderSetup provider="Discord" />
-## Create a Discord Application
+## Create a Discord application
- Click on `New Application` at the top right.
- Enter the name of your application and click `Create`.
@@ -41,7 +41,7 @@ Setting up Discord logins for your application consists of 3 parts:
- Click `Save Changes` at the bottom.
- Copy your `Client ID` and `Client Secret` under `Client information`.
-## Add your Discord credentials into your Supabase Project
+## Add your Discord credentials into your Supabase project
<SocialProviderSettingsSupabase provider="Discord" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-facebook.mdx b/apps/docs/pages/guides/auth/social-login/auth-facebook.mdx
index 6d120c2305b..46e9d05ccb7 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-facebook.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-facebook.mdx
@@ -23,7 +23,7 @@ Setting up Facebook logins for your application consists of 3 parts:
![Facebook Developer Portal.](/docs/img/guides/auth-facebook/facebook-portal.png)
-## Create a Facebook App
+## Create a Facebook app
- Click on `My Apps` at the top right.
- Click `Create App` near the top right.
@@ -33,7 +33,7 @@ Setting up Facebook logins for your application consists of 3 parts:
<SocialProviderSetup provider="Facebook" />
-## Set up Facebook Login for your Facebook App
+## Set up Facebook login for your Facebook app
From the `Add Products to your App` screen:
@@ -51,14 +51,14 @@ Under `Build Your App`, click on `Use Cases` screen. From there, do the followin
- `public_profile` is set by default, so make sure it and `email` have status of **Ready for testing** in the redirected page.
- If not, click the **Add** button in email on right side.
-## Copy your Facebook App ID and Secret
+## Copy your Facebook app ID and secret
- Click `Settings / Basic` in the left sidebar
- Copy your App ID from the top of the `Basic Settings` page
- Under `App Secret` click `Show` then copy your secret
- Make sure all required fields are completed on this screen.
-## Enter your Facebook App ID and Secret into your Supabase Project
+## Enter your Facebook app ID and secret into your Supabase project
<SocialProviderSettingsSupabase provider="Facebook" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-figma.mdx b/apps/docs/pages/guides/auth/social-login/auth-figma.mdx
index 2ae59d16ae5..6e9633a8313 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-figma.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-figma.mdx
@@ -42,7 +42,7 @@ Setting up Figma logins for your application consists of 3 parts:
![Get Figma app credentials](/docs/img/guides/auth-figma/figma_app_credentials.png)
-## Enter your Figma credentials into your Supabase Project
+## Enter your Figma credentials into your Supabase project
<SocialProviderSettingsSupabase provider="Figma" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-github.mdx b/apps/docs/pages/guides/auth/social-login/auth-github.mdx
index 67d591a917f..aba15f2401d 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-github.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-github.mdx
@@ -23,7 +23,7 @@ Setting up GitHub logins for your application consists of 3 parts:
![GitHub Developer Portal.](/docs/img/guides/auth-github/github-portal.png)
-## Create a GitHub Oauth App
+## Create a GitHub OAuth app
Go to the [GitHub Developer Settings](https://github.com/settings/developers) page:
@@ -36,7 +36,7 @@ Go to the [GitHub Developer Settings](https://github.com/settings/developers) pa
<SocialProviderSetup provider="GitHub" />
-## Register a new OAuth application on Github.
+## Register a new OAuth application on GitHub
- Navigate to `Settings`/`Developer settings`/`OAuth Apps`
- Click `Register a new application`. If you've created an app before, click `New OAuth App` here.
@@ -53,7 +53,7 @@ Copy your new OAuth credentials
- Click `Generate a new client secret`.
- Copy and save your `Client secret`.
-## Enter your GitHub credentials into your Supabase Project
+## Enter your GitHub credentials into your Supabase project
<SocialProviderSettingsSupabase provider="GitHub" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-gitlab.mdx b/apps/docs/pages/guides/auth/social-login/auth-gitlab.mdx
index 839666427bf..c08e3c33ab7 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-gitlab.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-gitlab.mdx
@@ -27,7 +27,7 @@ Setting up GitLab logins for your application consists of 3 parts:
<SocialProviderSetup provider="GitLab" />
-## Create your GitLab Application
+## Create your GitLab application
- Click on your `profile logo` (avatar) in the top-right corner.
- Select `Edit profile`.
@@ -39,7 +39,7 @@ Setting up GitLab logins for your application consists of 3 parts:
- Click `Save Application` at the bottom.
- Copy and save your `Application ID` (`client_id`) and `Secret` (`client_secret`) which you'll need later.
-## Add your GitLab credentials into your Supabase Project
+## Add your GitLab credentials into your Supabase project
<SocialProviderSettingsSupabase provider="GitLab" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-google.mdx b/apps/docs/pages/guides/auth/social-login/auth-google.mdx
index 6eea2b0291e..d5562f39290 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-google.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-google.mdx
@@ -73,7 +73,7 @@ Before you can use Sign in with Google, you need to obtain a [Google Cloud Platf
2. Configure the [OAuth Consent Screen](https://console.cloud.google.com/apis/credentials/consent). This information is shown to the user when giving consent to your app. Within _Authorized domains_ make sure you add your Supabase project's domain `<project-id>.supabase.co`. Configure the non-sensitive scopes by making sure the following ones are selected: `.../auth/userinfo.email`, `.../auth/userinfo.profile`, `openid`. If you're selecting other sensitive scopes, your app may require additional verification. In those cases, it's best to use [custom domains](/docs/guides/platform/custom-domains).
3. Finally, add the client ID and secret from step 1 in the [Google provider on the Supabase Dashboard](https://supabase.com/dashboard/project/_/auth/providers).
- ## Using personalized sign-in buttons, One Tap or automatic sign-in
+ ## Using personalized sign-in buttons, one-tap or automatic signin
Most web apps and websites can utilize Google's [personalized sign-in buttons](https://developers.google.com/identity/gsi/web/guides/personalized-button), [One Tap](https://developers.google.com/identity/gsi/web/guides/features) or [automatic sign-in](https://developers.google.com/identity/gsi/web/guides/automatic-sign-in-sign-out) for the best user experience.
@@ -120,7 +120,7 @@ Before you can use Sign in with Google, you need to obtain a [Google Cloud Platf
Use of nonce is recommended, though optional. Make sure each nonce is generated randomly and available both in the `data-nonce` attribute as well as in the `handleSignInWithGoogle` callback function; otherwise the ID token will not be accepted.
- ### Important Note on Nonce Validation
+ ### Important note on nonce validation
Supabase Auth expects the nonce in Google's ID token to be hashed (specifically with SHA-256 and represented as a hexadecimal string).
@@ -160,7 +160,7 @@ Before you can use Sign in with Google, you need to obtain a [Google Cloud Platf
<TabPanel id="react-native" label="Expo React Native">
- ## Using Native Sign in with Google in Expo
+ ## Using native sign in with Google in Expo
Unlike the OAuth flow which requires the use of a web browser, the native Sign in with Google flow on Android uses the [operating system's built-in functionalities](https://developers.google.com/android/reference/com/google/android/gms/auth/api/identity/package-summary) to prompt the user for consent. Note that native sign-in has been rebranded as _One Tap sign-in on Android_ by Google, which you should not confuse with _One Tap sign in for web_, as mentioned below.
@@ -234,7 +234,7 @@ Before you can use Sign in with Google, you need to obtain a [Google Cloud Platf
<TabPanel id="flutter" label="Flutter">
- ## Using Native Sign in with Google in Flutter
+ ## Using native sign in with Google in Flutter
Native Google sign in with Supabase is done through the [google_sign_in](https://pub.dev/packages/google_sign_in) package for iOS and Android. Follow the instructions on the [google_sign_in](https://pub.dev/packages/google_sign_in) package for plugin specific settings.
diff --git a/apps/docs/pages/guides/auth/social-login/auth-kakao.mdx b/apps/docs/pages/guides/auth/social-login/auth-kakao.mdx
index 81088ca30cd..c80537d176b 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-kakao.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-kakao.mdx
@@ -57,7 +57,7 @@ This will serve as the `client_id` when you make API calls to authenticate the u
- Click on `generate code` at the bottom to generate the `Client secret code` -- this will serve as a `client_secret` for your supabase project.
- Make sure you enabled `Client secret code` by selecting `enable` from the `Activation state` section.
-## Additional configurations on Kakao Developers Portal
+## Additional configurations on Kakao Developers portal
- Make sure the Kakao Login is enabled in the `Kakao Login` tab.
- Set following scopes under the "Consent Items": account_email, profile_image, profile_nickname
diff --git a/apps/docs/pages/guides/auth/social-login/auth-keycloak.mdx b/apps/docs/pages/guides/auth/social-login/auth-keycloak.mdx
index 5b6ff1f3e65..7826c312ad5 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-keycloak.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-keycloak.mdx
@@ -23,11 +23,11 @@ Keycloak OAuth consists of five broad steps:
- Obtain the `Secret` from the credentials tab which will be used as the `client secret`.
- Add the callback url of your application to your allowlist.
-## Access your Keycloak Admin console
+## Access your Keycloak admin console
- Login by visiting [`http://localhost:8080`](http://localhost:8080) and clicking on "Administration Console".
-## Create a Keycloak Realm
+## Create a Keycloak realm
- Once you've logged in to the Keycloak console, you can add a realm from the side panel. The default realm should be named "Master".
- After you've added a new realm, you can retrieve the `issuer` from the "OpenID Endpoint Configuration" endpoint. The `issuer` will be used as the `Keycloak URL`.
@@ -35,13 +35,13 @@ Keycloak OAuth consists of five broad steps:
![Add a Keycloak Realm.](/docs/img/guides/auth-keycloak/keycloak-create-realm.png)
-## Create a Keycloak Client
+## Create a Keycloak client
The "Client ID" of the created client will serve as the `client_id` when you make API calls to authenticate the user.
![Add a Keycloak client](/docs/img/guides/auth-keycloak/keycloak-add-client.png)
-## Client Settings
+## Client settings
After you've created the client successfully, ensure that you set the following settings:
@@ -52,7 +52,7 @@ After you've created the client successfully, ensure that you set the following
![Obtain the client id, set the client protocol and access type](/docs/img/guides/auth-keycloak/keycloak-client-id.png)
![Set redirect uri](/docs/img/guides/auth-keycloak/keycloak-redirect-uri.png)
-## Obtain the Client Secret
+## Obtain the client secret
This will serve as the `client_secret` when you make API calls to authenticate the user.
Under the "Credentials" tab, the `Secret` value will be used as the `client secret`.
diff --git a/apps/docs/pages/guides/auth/social-login/auth-linkedin.mdx b/apps/docs/pages/guides/auth/social-login/auth-linkedin.mdx
index 0c6e72bf223..1383fccdb1e 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-linkedin.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-linkedin.mdx
@@ -50,7 +50,7 @@ Ensure that the appropriate scopes have been added under OAuth 2.0 Scopes at the
![Required OAuth 2.0 Scopes](/docs/img/guides/auth-linkedin/oauth-scopes.png)
-## Enter your LinkedIn (OIDC) credentials into your Supabase Project
+## Enter your LinkedIn (OIDC) credentials into your Supabase project
<SocialProviderSettingsSupabase provider="LinkedIn (OIDC)" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-notion.mdx b/apps/docs/pages/guides/auth/social-login/auth-notion.mdx
index e810d6881f7..800e5682792 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-notion.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-notion.mdx
@@ -38,7 +38,7 @@ Setting up Notion logins for your application consists of 3 parts:
<SocialProviderSetup provider="Notion" />
-## Add your Notion credentials into your Supabase Project
+## Add your Notion credentials into your Supabase project
- Once you've created your notion integration, you should be able to retrieve the "OAuth client ID" and "OAuth client secret" from the "OAuth Domain and URIs" tab.
diff --git a/apps/docs/pages/guides/auth/social-login/auth-slack.mdx b/apps/docs/pages/guides/auth/social-login/auth-slack.mdx
index 596fb43f07c..2b9e34f2da7 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-slack.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-slack.mdx
@@ -60,7 +60,7 @@ Under `Scopes`:
- Add the following scopes under the `User Token Scopes`: `profile`, `email`, `openid`. These scopes are the default scopes that Supabase Auth uses to request for user information. You can add any additional scopes that you may need as well.
-## Enter your Slack credentials into your Supabase Project
+## Enter your Slack credentials into your Supabase project
<SocialProviderSettingsSupabase provider="Slack" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-spotify.mdx b/apps/docs/pages/guides/auth/social-login/auth-spotify.mdx
index bf37db3c82e..a4647b8c554 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-spotify.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-spotify.mdx
@@ -46,7 +46,7 @@ Under `Redirect URIs`:
- Click `Add`
- Click `Save` at the bottom
-## Enter your Spotify credentials into your Supabase Project
+## Enter your Spotify credentials into your Supabase project
<SocialProviderSettingsSupabase provider="Spotify" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-twitch.mdx b/apps/docs/pages/guides/auth/social-login/auth-twitch.mdx
index 80ffddcd638..0db9cf7070c 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-twitch.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-twitch.mdx
@@ -32,7 +32,7 @@ Setting up Twitch logins for your application consists of 3 parts:
<SocialProviderSetup provider="Twitch" />
-## Create a Twitch Application
+## Create a Twitch application
![Twitch Developer Console](/docs/img/guides/auth-twitch/twitch-console.png)
@@ -45,7 +45,7 @@ Setting up Twitch logins for your application consists of 3 parts:
- Select a category for your app.
- Check the Captcha box and click `Create`.
-## Retrieve your Twitch OAuth Client ID and Client Secret
+## Retrieve your Twitch OAuth client ID and client secret
- Click `Manage` at the right of your application entry in the list.
@@ -57,7 +57,7 @@ Setting up Twitch logins for your application consists of 3 parts:
![Get Client ID and Secret](/docs/img/guides/auth-twitch/twitch-get-keys.png)
-## Add your Twitch credentials into your Supabase Project
+## Add your Twitch credentials into your Supabase project
<SocialProviderSettingsSupabase provider="Twitch" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-twitter.mdx b/apps/docs/pages/guides/auth/social-login/auth-twitter.mdx
index 0536884319f..f23283d9417 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-twitter.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-twitter.mdx
@@ -48,7 +48,7 @@ Setting up Twitter logins for your application consists of 3 parts:
- Enter your `Privacy policy URL`.
- Click `Save`.
-## Enter your Twitter credentials into your Supabase Project
+## Enter your Twitter credentials into your Supabase project
<SocialProviderSettingsSupabase provider="Twitter" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-workos.mdx b/apps/docs/pages/guides/auth/social-login/auth-workos.mdx
index b01daa20b53..95ff6c4617e 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-workos.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-workos.mdx
@@ -20,25 +20,25 @@ The procedure consists of five broad steps:
- Connect a WorkOS Supported Identity Provider
- Add your WorkOS credentials into your Supabase project
-## Create a WorkOS Organization
+## Create a WorkOS organization
Log in to the dashboard and hop over to the Organizations tab to create and organization
![Create an Organization](/docs/img/guides/auth-workos/workos-create-organization.png)
-## Obtain the Client ID and configure Redirect URI
+## Obtain the client ID and configure redirect URI
Head over to the Configuration tab and configure the redirect URI.The redirect URI should look like `https://<project-ref>.supabase.co/auth/v1/callback`
Note that this is distinct from the redirect URI referred to in the Supabase dashboard
![Fetch Client ID and configure Redirect URI](/docs/img/guides/auth-workos/workos-clientid-redirect-uri.png)
-## Obtain the WorkOS Secret
+## Obtain the WorkOS secret
Head over to the API Keys page and obtain the secret key.
![WorkOS Secret Key](/docs/img/guides/auth-workos/workos-secret-key.png)
-## Connect a WorkOS Supported Identity Provider
+## Connect a WorkOS supported identity provider
Set up the identity provider by visiting the setup link.
@@ -46,7 +46,7 @@ Set up the identity provider by visiting the setup link.
You can pick between any one of the many identity providers that WorkOS supports.
-## Add your WorkOS credentials into your Supabase Project
+## Add your WorkOS credentials into your Supabase project
<SocialProviderSettingsSupabase provider="WorkOS" />
diff --git a/apps/docs/pages/guides/auth/social-login/auth-zoom.mdx b/apps/docs/pages/guides/auth/social-login/auth-zoom.mdx
index 682af543830..9fd1ae7cdd4 100644
--- a/apps/docs/pages/guides/auth/social-login/auth-zoom.mdx
+++ b/apps/docs/pages/guides/auth/social-login/auth-zoom.mdx
@@ -27,7 +27,7 @@ Setting up Zoom logins for your application consists of 3 parts:
<SocialProviderSetup provider="Zoom" />
-## Create a Zoom Oauth App
+## Create a Zoom OAuth app
- Go to [marketplace.zoom.us](https://marketplace.zoom.us/).
- Click on `Sign In` at the top right to log in.
@@ -55,7 +55,7 @@ Under `Scopes`
- Click `Done`
- Click `Continue`
-## Enter your Zoom credentials into your Supabase Project
+## Enter your Zoom credentials into your Supabase project
<SocialProviderSettingsSupabase provider="Zoom" />
diff --git a/apps/docs/pages/guides/auth/sso/auth-sso-saml.mdx b/apps/docs/pages/guides/auth/sso/auth-sso-saml.mdx
index 2e0fccce324..f22da4f3114 100644
--- a/apps/docs/pages/guides/auth/sso/auth-sso-saml.mdx
+++ b/apps/docs/pages/guides/auth/sso/auth-sso-saml.mdx
@@ -362,7 +362,7 @@ supabase sso show <provider-id> --project-ref <your-project>
You can use the `-o json` flag to output the information as JSON, should you need to. Other formats may be supported, please use `--help` to see all available options.
-## Frequently Asked Questions
+## Frequently asked questions
### How do I publish my application to an identity provider's marketplace?
@@ -374,7 +374,7 @@ Please refer to the relevant documentation for each cloud-based identity provide
- [Azure Active Directory App Gallery](https://learn.microsoft.com/en-us/azure/active-directory-b2c/publish-app-to-azure-ad-app-gallery)
- [Google Workspaces Pre-integrated SAML apps catalog](https://support.google.com/a/table/9217027)
-### Why do some users get: SAML Assertion does not contain email address?
+### Why do some users get: SAML assertion does not contain email address?
Identity providers do not have to send back and email address for the user, though they often do. Supabase Auth requires that an email address is present.
diff --git a/apps/docs/pages/guides/cli/customizing-email-templates.mdx b/apps/docs/pages/guides/cli/customizing-email-templates.mdx
index 4702b09ad72..0dfbe88e4ec 100644
--- a/apps/docs/pages/guides/cli/customizing-email-templates.mdx
+++ b/apps/docs/pages/guides/cli/customizing-email-templates.mdx
@@ -9,7 +9,7 @@ export const meta = {
You can customize the email templates for local development [using the `config.toml` settings](/docs/guides/cli/config#auth-config).
-## Configuring Templates
+## Configuring templates
You should provide a relative URL to the `content_path` parameter, pointing to an HTML file which contains the template. For example
diff --git a/apps/docs/pages/guides/cli/local-development.mdx b/apps/docs/pages/guides/cli/local-development.mdx
index 16b048339dd..31e05c8b8a9 100644
--- a/apps/docs/pages/guides/cli/local-development.mdx
+++ b/apps/docs/pages/guides/cli/local-development.mdx
@@ -451,7 +451,7 @@ If you have additional triggers or RLS policies defined on your `auth` schema, y
supabase db pull --schema auth
```
-### Sync Storage buckets
+### Sync storage buckets
Your RLS policies on storage buckets can be pulled locally by specifying `storage` schema. For example,
@@ -461,7 +461,7 @@ supabase db pull --schema storage
The buckets and objects themselves are rows in the storage schema so they won't be pulled automatically.
-### Local Logging
+### Local logging
Local logs rely on the Supabase Analytics Server, and are available in the Studio automatically.
diff --git a/apps/docs/pages/guides/cli/testing-and-linting.mdx b/apps/docs/pages/guides/cli/testing-and-linting.mdx
index f0cbc52923b..030a77a7e8b 100644
--- a/apps/docs/pages/guides/cli/testing-and-linting.mdx
+++ b/apps/docs/pages/guides/cli/testing-and-linting.mdx
@@ -44,7 +44,7 @@ The Supabase CLI uses [Inbucket](https://github.com/inbucket/inbucket) to captur
By default, Inbucket is available at [localhost:54324](http://localhost:54324) when you run `supabase start`. Simply open this URL in your browser to view the emails.
-### Going into Production
+### Going into production
The "default" email provided by Supabase is only for development purposes. It is [heavily restricted](/docs/guides/platform/going-into-prod#auth-rate-limits) to ensure that it is not used for spam. Before going into production, you must configure your own email provider. This is as simple as enabling a new SMTP credentials in your [project settings](https://supabase.com/dashboard/project/_/settings/auth).
diff --git a/apps/docs/pages/guides/database/connecting-to-postgres.mdx b/apps/docs/pages/guides/database/connecting-to-postgres.mdx
index ef19c8f3180..292ab5ee45f 100644
--- a/apps/docs/pages/guides/database/connecting-to-postgres.mdx
+++ b/apps/docs/pages/guides/database/connecting-to-postgres.mdx
@@ -37,7 +37,7 @@ Every Supabase project provides a full Postgres database. You can connect to the
/>
</video>
-## Connection Pooler
+## Connection pooler
Every Supabase project comes with a connection pooler for managing connections to your Postgres database. A connection pooler is useful for managing a large number of _temporary_ connections - for example, if you are using Prisma, Drizzle, Kysely, or anything deployed to a Serverless environment (AWS Lambdas or Edge Functions). You can find the connection pool config in the [Database settings](/dashboard/project/_/settings/database) inside the dashboard:
diff --git a/apps/docs/pages/guides/database/extensions/pg_cron.mdx b/apps/docs/pages/guides/database/extensions/pg_cron.mdx
index 64f063bc7b8..02c15a88180 100644
--- a/apps/docs/pages/guides/database/extensions/pg_cron.mdx
+++ b/apps/docs/pages/guides/database/extensions/pg_cron.mdx
@@ -67,7 +67,7 @@ The schedule uses the standard cron syntax, in which \* means "run every time pe
You can use [crontab.guru](https://crontab.guru/) to help validate your cron schedules.
-### Scheduling System Maintenance
+### Scheduling system maintenance
Be extremely careful when setting up pg_cron jobs for system maintenance tasks as they can have unintended consequences. For instance, scheduling a command to terminate idle connections with `pg_terminate_backend(pid)` can disrupt critical background processes like nightly backups. Often, there is an existing Postgres setting e.g. `idle_session_timeout` that can perform these common maintenance tasks without the risk.
diff --git a/apps/docs/pages/guides/database/extensions/pg_hashids.mdx b/apps/docs/pages/guides/database/extensions/pg_hashids.mdx
index 7b30215d01b..f98f577233d 100644
--- a/apps/docs/pages/guides/database/extensions/pg_hashids.mdx
+++ b/apps/docs/pages/guides/database/extensions/pg_hashids.mdx
@@ -8,7 +8,7 @@ export const meta = {
[pg_hashids](https://github.com/iCyberon/pg_hashids) provides a secure way to generate short, unique, non-sequential ids from numbers. The hashes are intended to be small, easy-to-remember identifiers that can be used to obfuscate data (optionally) with a password, alphabet, and salt. For example, you may wish to hide data like user IDs, order numbers, or tracking codes in favor of `pg_hashid`'s unique identifers.
-## Enable the Extension
+## Enable the extension
<Tabs
scrollable
diff --git a/apps/docs/pages/guides/database/extensions/pgroonga.mdx b/apps/docs/pages/guides/database/extensions/pgroonga.mdx
index 3ca5a1e29ef..502e94ab7d9 100644
--- a/apps/docs/pages/guides/database/extensions/pgroonga.mdx
+++ b/apps/docs/pages/guides/database/extensions/pgroonga.mdx
@@ -102,7 +102,7 @@ The pgroonga index is used to retrieve the result set:
| 2 | 'Groonga is a fast full text search engine that supports all languages.' |
```
-## Full Text Search
+## Full text search
The `&@~` operator performs full text search. It returns any matching results. Unlike `LIKE` operator, pgroonga can search any text that contains the keyword case insensitive.
diff --git a/apps/docs/pages/guides/database/extensions/pgsodium.mdx b/apps/docs/pages/guides/database/extensions/pgsodium.mdx
index 86fa9cd2b99..46346e27c3b 100644
--- a/apps/docs/pages/guides/database/extensions/pgsodium.mdx
+++ b/apps/docs/pages/guides/database/extensions/pgsodium.mdx
@@ -53,7 +53,7 @@ In general, it is a bad idea to over-use column encryption for mundane data or d
Note that Supabase projects are already encrypted at rest by default.
-## Get the Root Encryption Key for your Supabase Project
+## Get the root encryption key for your Supabase project
Encryption requires keys. Keeping the keys in the same database as the encrypted data would be unsafe. For more information about managing the pgsodium root encryption key on your Supabase project see **[encryption key location](#encryption-key-location)**. This key is required to decrypt values stored in [Supabase Vault](/docs/guides/database/vault) and data encrypted with Transparent Column Encryption.
diff --git a/apps/docs/pages/guides/database/extensions/pgtap.mdx b/apps/docs/pages/guides/database/extensions/pgtap.mdx
index acf5ef9f195..709c57db59a 100644
--- a/apps/docs/pages/guides/database/extensions/pgtap.mdx
+++ b/apps/docs/pages/guides/database/extensions/pgtap.mdx
@@ -85,7 +85,7 @@ API:
- [`has_column()`](https://pgtap.org/documentation.html#has_column): Tests whether or not a column exists in a given table, view, materialized view or composite type.
- [`col_is_pk()`](https://pgtap.org/documentation.html#col_is_pk): Tests whether the specified column or columns in a table is/are the primary key for that table.
-## Testing RLS Policies
+## Testing RLS policies
```sql
begin;
@@ -132,7 +132,7 @@ API:
- [`results_eq()`](https://pgtap.org/documentation.html#results_eq)
- [`results_ne()`](https://pgtap.org/documentation.html#results_ne)
-## Testing Functions
+## Testing functions
```sql
prepare hello_expr as select 'hello'
diff --git a/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx b/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx
index 981308602b3..7cc9a02f4dd 100644
--- a/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx
+++ b/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx
@@ -79,7 +79,7 @@ Creates UUID values based solely on random numbers. You can also use Postgres's
select uuid_generate_v4();
```
-### As a Primary Key
+### As a primary key
Automatically create a unique, random ID in a table:
diff --git a/apps/docs/pages/guides/database/extensions/wrappers/overview.mdx b/apps/docs/pages/guides/database/extensions/wrappers/overview.mdx
index 554a597d99f..37476d0ac0c 100644
--- a/apps/docs/pages/guides/database/extensions/wrappers/overview.mdx
+++ b/apps/docs/pages/guides/database/extensions/wrappers/overview.mdx
@@ -17,7 +17,7 @@ Wrappers introduce some new terminology and different workflows.
![FDW](/docs/img/database/fdw-light.png)
-### Remote Servers
+### Remote servers
A Remote Server is an external database, API, or any system containing data that you want to query from your Postgres database. Examples include:
@@ -27,7 +27,7 @@ A Remote Server is an external database, API, or any system containing data that
It's possible to connect to multiple remote servers of the same type. For example, you can connect to two different Firebase projects within the same Supabase database.
-### Foreign Tables
+### Foreign tables
A table in your database which maps to some data inside a Remote Server.
diff --git a/apps/docs/pages/guides/database/full-text-search.mdx b/apps/docs/pages/guides/database/full-text-search.mdx
index 004e4bf92ec..3c00b29a21d 100644
--- a/apps/docs/pages/guides/database/full-text-search.mdx
+++ b/apps/docs/pages/guides/database/full-text-search.mdx
@@ -177,7 +177,7 @@ final result = await client
</TabPanel>
</Tabs>
-## Basic Full Text Queries
+## Basic full text queries
### Search a single column
@@ -407,7 +407,7 @@ final result = await client
Notice how searching for `big` includes results with the word `bigger` (or `biggest`, etc).
-## Creating Indexes
+## Creating indexes
Now that we have Full Text Search working, let's create an `index`. This will allow Postgres to "build" the documents pre-emptively so that they
don't need to be created at the time we execute the query. This will make our queries much faster.
@@ -504,7 +504,7 @@ final result = await client
</TabPanel>
</Tabs>
-## Query Operators
+## Query operators
Visit [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:
diff --git a/apps/docs/pages/guides/database/functions.mdx b/apps/docs/pages/guides/database/functions.mdx
index fe52e20e603..cd6c4b5447b 100644
--- a/apps/docs/pages/guides/database/functions.mdx
+++ b/apps/docs/pages/guides/database/functions.mdx
@@ -32,7 +32,7 @@ and run the SQL queries yourself.
3. Enter the SQL to create or replace your Database function.
4. Click "Run" or cmd+enter (ctrl+enter).
-## Simple Functions
+## Simple functions
Let's create a basic Database Function which returns a string "hello world".
@@ -313,7 +313,7 @@ GRANT EXECUTE ON FUNCTION hello_world TO service_role;
- PostgreSQL Official Docs: [Chapter 9. Functions and Operators](https://www.postgresql.org/docs/current/functions.html)
- PostgreSQL Reference: [CREATE FUNCTION](https://www.postgresql.org/docs/9.1/sql-createfunction.html)
-## Deep Dive
+## Deep dive
### Create Database Functions
diff --git a/apps/docs/pages/guides/database/import-data.mdx b/apps/docs/pages/guides/database/import-data.mdx
index c5eeb72c41e..5ccbf803ed7 100644
--- a/apps/docs/pages/guides/database/import-data.mdx
+++ b/apps/docs/pages/guides/database/import-data.mdx
@@ -24,14 +24,14 @@ If you're importing a large dataset or importing data into production, plan ahea
</Admonition>
-### Option 1: CSV Import via Supabase Dashboard
+### Option 1: CSV import via Supabase dashboard
Supabase dashboard provides a user-friendly way to import data. However, for very large datasets, this method may not be the most efficient choice, given the size limit is 100MB. It's generally better suited for smaller datasets and quick data imports. Consider using alternative methods like pgloader for large-scale data imports.
1. Navigate to the relevant table in the [Table Editor.](/dashboard/project/_/editor)
2. Click on “Insert” then choose "Import Data from CSV" and follow the on-screen instructions to upload your CSV file.
-### Option 2: Bulk Import using pgloader
+### Option 2: Bulk import using pgloader
[pgloader](https://pgloader.io/) is a powerful tool for efficiently importing data into a PostgreSQL database that supports a wide range of source database engines, including MySQL and MS SQL.
@@ -68,7 +68,7 @@ You can use it in conjunction with Supabase by following these steps:
For databases using the Postgres engine, we recommend using the [pg_dump](https://www.postgresql.org/docs/current/app-pgdump.html) and [psql](https://www.postgresql.org/docs/current/app-psql.html) command line tools.
-### Option 3: Using Postgres Copy command
+### Option 3: Using Postgres copy command
Read more about [Bulk data loading.](/docs/guides/database/tables#bulk-data-loading)
diff --git a/apps/docs/pages/guides/database/inspect.mdx b/apps/docs/pages/guides/database/inspect.mdx
index 5b747333c04..296e5a0de5d 100644
--- a/apps/docs/pages/guides/database/inspect.mdx
+++ b/apps/docs/pages/guides/database/inspect.mdx
@@ -50,7 +50,7 @@ supabase link --project-ref <project-id>
Then the CLI will automatically connect to your Supabase project whenever you are in the project folder and you no longer need to provide `—db-url`.
-## Inspection Commands
+## Inspection commands
Below are the db inspection commands provided, grouped by different use cases.
@@ -60,7 +60,7 @@ Some commands might require `pg_stat_statements` to be enabled or a specific Pos
</Admonition>
-### Disk Storage
+### Disk storage
These commands are handy if you are running low on disk storage:
@@ -71,7 +71,7 @@ These commands are handy if you are running low on disk storage:
- [index-sizes](/docs/reference/cli/supabase-inspect-db-index-sizes) - shows the sizes of individual index
- [table-index-sizes](/docs/reference/cli/supabase-inspect-db-table-index-sizes) - shows the sizes of indexes for each table
-### Query Performance
+### Query performance
The commands below are useful if your Postgres database consumes a lot of resources like CPU, RAM or Disk IO. You can also use them to investigate slow queries.
diff --git a/apps/docs/pages/guides/database/joins-and-nesting.mdx b/apps/docs/pages/guides/database/joins-and-nesting.mdx
index fb9f91471ee..c1f1ae42529 100644
--- a/apps/docs/pages/guides/database/joins-and-nesting.mdx
+++ b/apps/docs/pages/guides/database/joins-and-nesting.mdx
@@ -89,7 +89,7 @@ const { data, error } = await supabase.from('countries').select(`
`)
```
-### TypeScript Types for Joins
+### TypeScript types for joins
`supabase-js` always returns a `data` object (for success), and an `error` object (for unsuccessful requests).
diff --git a/apps/docs/pages/guides/database/overview.mdx b/apps/docs/pages/guides/database/overview.mdx
index 251a55a1dfe..cdeaead9c6f 100644
--- a/apps/docs/pages/guides/database/overview.mdx
+++ b/apps/docs/pages/guides/database/overview.mdx
@@ -11,7 +11,7 @@ Every Supabase project comes with a full [Postgres](https://www.postgresql.org/)
## Features
-### Table View
+### Table view
You don't have to be a database expert to start using Supabase. Our table view makes Postgres as easy to use as a spreadsheet.
@@ -39,7 +39,7 @@ You can duplicate your tables, just like you would inside a spreadsheet.
/>
</video>
-### The SQL Editor
+### The SQL editor
Supabase comes with a SQL Editor. You can also save your favorite queries to run later!
diff --git a/apps/docs/pages/guides/database/partitions.mdx b/apps/docs/pages/guides/database/partitions.mdx
index 421d0d6069e..e3c7df72de2 100644
--- a/apps/docs/pages/guides/database/partitions.mdx
+++ b/apps/docs/pages/guides/database/partitions.mdx
@@ -20,14 +20,14 @@ Table partitioning is a technique that allows you to divide a large table into s
Each partition contains a subset of the data based on a specified criteria, such as a range of values or a specific condition. Partitioning can significantly improve query performance and simplify data management for large datasets.
-## Benefits of Table Partitioning
+## Benefits of table partitioning
- **Improved query performance:** allows queries to target specific partitions, reducing the amount of data scanned and improving query execution time.
- **Scalability:** With partitioning, you can add or remove partitions as your data grows or changes, enabling better scalability and flexibility.
- **Efficient data management:** simplifies tasks such as data loading, archiving, and deletion by operating on smaller partitions instead of the entire table.
- **Enhanced maintenance operations:** can optimize vacuuming and indexing, leading to faster maintenance tasks.
-## Partitioning Methods
+## Partitioning methods
Postgres supports various partitioning methods based on how you want to partition your data. The commonly used methods are:
@@ -35,7 +35,7 @@ Postgres supports various partitioning methods based on how you want to partitio
2. **List Partitioning**: Data is divided into partitions based on a specified list of values. For instance, you can partition a customer table by region, where each partition contains customers from a specific region (e.g., one partition for customers in the US, another for customers in Europe).
3. **Hash Partitioning**: Data is distributed across partitions using a hash function. This method provides a way to evenly distribute data among partitions, which can be useful for load balancing. However, it doesn't allow direct querying based on specific values.
-## Creating Partitioned Tables
+## Creating partitioned tables
Let's consider an example of range partitioning for a sales table based on the order date. We'll create monthly partitions to store data for each month:
@@ -64,7 +64,7 @@ create table sales_2000_02
To create a partitioned table you append `partition by range (<column_name>)` to the table creation statement. The column that you are partitioning with _must_ be included in any unique index, which is the reason why we specify a composite primary key here (`primary key (order_date, id)`).
-## Querying Partitioned Tables
+## Querying partitioned tables
To query a partitioned table, you have two options:
@@ -108,7 +108,7 @@ There is no real threshold to determine when you should use partitions. Partitio
Here are simple examples for each of the partitioning types in Postgres.
-### Range Partitioning
+### Range partitioning
Let's consider a range partitioning example for a table that stores sales data based on the order date. We'll create monthly partitions to store data for each month.
@@ -136,7 +136,7 @@ create table sales_2000_02
for values from ('2000-02-01') to ('2000-03-01');
```
-### List Partitioning
+### List partitioning
Let's consider a list partitioning example for a table that stores customer data based on their region. We'll create partitions to store customers from different regions.
@@ -164,7 +164,7 @@ create table customers_asia
for values in ('INDIA', 'CHINA', 'JAPAN');
```
-### Hash Partitioning
+### Hash partitioning
You can use hash partitioning to evenly distribute data.
diff --git a/apps/docs/pages/guides/database/postgres/configuration.mdx b/apps/docs/pages/guides/database/postgres/configuration.mdx
index 517ca19b9af..18866df3eec 100644
--- a/apps/docs/pages/guides/database/postgres/configuration.mdx
+++ b/apps/docs/pages/guides/database/postgres/configuration.mdx
@@ -29,13 +29,13 @@ You can also update the statement timeout for a session:
set statement_timeout to 60000; -- 1 minute in milliseconds
```
-### Statement Optimization
+### Statement optimization
All Supabase projects come with the [`pg_stat_statements`](https://www.postgresql.org/docs/current/pgstatstatements.html) extension installed, which tracks planning and execution statistics for all statements executed against it. These statistics can be used in order to diagnose the performance of your project.
This data can further be used in conjunction with the [`explain`](https://www.postgresql.org/docs/current/using-explain.html) functionality of Postgres to optimize your usage.
-## Managing Timezones
+## Managing timezones
Every Supabase database is set to UTC timezone by default. We strongly recommend keeping it this way, even if your users are in a different location.
This is because it makes it much easier to calculate differences between timezones if you adopt the mental model that "everything in my database is in UTC time".
diff --git a/apps/docs/pages/guides/database/postgres/enums.mdx b/apps/docs/pages/guides/database/postgres/enums.mdx
index 4eb4bbe93a1..f1165aa2bd9 100644
--- a/apps/docs/pages/guides/database/postgres/enums.mdx
+++ b/apps/docs/pages/guides/database/postgres/enums.mdx
@@ -8,7 +8,7 @@ export const meta = {
Enums in Postgres are a custom data type. They allow you to define a set of values (or labels) that a column can hold. They are useful when you have a fixed set of possible values for a column.
-## Creating Enums
+## Creating enums
You can define a Postgres Enum using the `create type` statement. Here's an example:
@@ -24,7 +24,7 @@ create type mood as enum (
In this example, we've created an Enum called "mood" with four possible values.
-## When to use Enums
+## When to use enums
There is a lot of overlap between Enums and foreign keys. Both can be used to define a set of values for a column. However, there are some advantages to using Enums:
@@ -38,7 +38,7 @@ There are also some disadvantages to using Enums:
In general you should only use Enums when the list of values is small, fixed, and unlikely to change often. Things like "a list of continents" or "a list of departments" are good candidates for Enums.
-## Using Enums in tables
+## Using enums in tables
To use the Enum in a table, you can define a column with the Enum type. For example:
@@ -53,7 +53,7 @@ create table person (
Here, the `current_mood` column can only have values from the "mood" Enum.
-### Inserting Data with Enums
+### Inserting data with enums
You can insert data into a table with Enum columns by specifying one of the Enum values:
@@ -65,7 +65,7 @@ values
('Alice', 'happy');
```
-### Querying Data with Enums
+### Querying data with enums
When querying data, you can filter and compare Enum values as usual:
@@ -76,11 +76,11 @@ from person
where current_mood = 'sad';
```
-## Managing Enums
+## Managing enums
You can manage your Enums using the `alter type` statement. Here are some examples:
-### Updating Enum Values
+### Updating enum values
You can update the value of an Enum column:
@@ -91,7 +91,7 @@ set current_mood = 'excited'
where name = 'Alice';
```
-### Adding Enum Values
+### Adding enum values
To add new values to an existing Postgres Enum, you can use the `ALTER TYPE` statement. Here's how you can do it:
@@ -102,7 +102,7 @@ Let's say you have an existing Enum called `mood`, and you want to add a new val
alter type mood add value 'content';
```
-### Removing Enum Values
+### Removing enum values
Even though it is possible, it is unsafe to remove enum values once they have been created. It's better to leave the enum value in place.
@@ -114,7 +114,7 @@ There is no `ALTER TYPE DELETE VALUE` in Postgres. Even if you delete every occu
</Admonition>
-### Getting a list of Enum Values
+### Getting a list of enum values
Check your existing Enum values by querying the enum_range function:
diff --git a/apps/docs/pages/guides/database/postgres/roles.mdx b/apps/docs/pages/guides/database/postgres/roles.mdx
index 9ba3f01f836..1d3b785205a 100644
--- a/apps/docs/pages/guides/database/postgres/roles.mdx
+++ b/apps/docs/pages/guides/database/postgres/roles.mdx
@@ -9,7 +9,7 @@ export const meta = {
Postgres manages database access permissions using the concept of roles. Generally you wouldn't use these roles for your own application - they are mostly for configuring _system access_ to your database. If you want to configure _application access_, then you should use [Row Level Security](/docs/guides/database/postgres/row-level-security).
-## Users vs Roles
+## Users vs roles
In PostgreSQL, roles can function as users or groups of users. Users are roles with login privileges, while groups (also known as role groups) are roles that don't have login privileges but can be used to manage permissions for multiple users.
@@ -46,11 +46,11 @@ If you use special symbols in your Postgres password, you must remember to [perc
When you created your project you were also asked to enter a password. This is actually the password for the `postgres` role in your database. You can update this from the Dashboard under the [database settings](https://supabase.com/dashboard/project/_/settings/database) page. You should _never_ give this to 3rd-party service unless you absolutely trust them. Instead, we recommend that you create a new user for every service that you want to give access too. This will also help you with debugging - you can see every query that each role is executing in your database within `pg_stat_statements`.
-## Granting Permissions
+## Granting permissions
Roles can be granted various permissions on database objects using the `GRANT` command. Permissions include `SELECT`, `INSERT`, `UPDATE`, and `DELETE`. You can configure access to almost any object inside your database - including tables, views, functions, and triggers.
-## Revoking Permissions
+## Revoking permissions
Permissions can be revoked using the `REVOKE` command:
@@ -58,7 +58,7 @@ Permissions can be revoked using the `REVOKE` command:
REVOKE permission_type ON object_name FROM role_name;
```
-## Role Hierarchy
+## Role hierarchy
Roles can be organized in a hierarchy, where one role can inherit permissions from another. This simplifies permission management, as you can define permissions at a higher level and have them automatically apply to all child roles.
@@ -78,7 +78,7 @@ In some cases, you might want to prevent a role from having a child relationship
alter role "child_role_name" noinherit;
```
-## Supabase Roles
+## Supabase roles
Postgres comes with a set of [predefined roles](https://www.postgresql.org/docs/current/predefined-roles.html). Supabase extends this with a default set of roles which are configured on your database when you start a new project:
diff --git a/apps/docs/pages/guides/database/postgres/row-level-security.mdx b/apps/docs/pages/guides/database/postgres/row-level-security.mdx
index aeb34b84e50..5f8be023666 100644
--- a/apps/docs/pages/guides/database/postgres/row-level-security.mdx
+++ b/apps/docs/pages/guides/database/postgres/row-level-security.mdx
@@ -46,13 +46,13 @@ alter table "table_name" enable row level security;
Once you have enabled RLS, no data will be accessible via the [API](/docs/guides/api) when using the public `anon` key, until you create policies.
-## Creating Policies
+## Creating policies
Policies are simply SQL logic that you attach to a Postgres table. You can attach as many policies as you want to each table.
Supabase provides some [helpers](/docs/guides/auth/row-level-security#helper-functions) that simplify RLS if you're using Supabase Auth. We'll use these helpers to illustrate some basic policies:
-### SELECT Policies
+### SELECT policies
You can specify select policies with the `using` clause.
@@ -84,7 +84,7 @@ on profiles
for select using ( auth.uid() = user_id );
```
-### INSERT Policies
+### INSERT policies
You can specify insert policies with the `with check` clause.
@@ -108,7 +108,7 @@ to authenticated -- the Postgres Role (recommended)
with check ( auth.uid() = user_id ); -- the actual Policy
```
-### UPDATE Policies
+### UPDATE policies
You can specify update policies with the `using` clause.
@@ -132,7 +132,7 @@ to authenticated -- the Postgres Role (recommended)
using ( auth.uid() = user_id ); -- the actual Policy
```
-### DELETE Policies
+### DELETE policies
You can specify delete policies with the `using` clause.
@@ -166,7 +166,7 @@ grant bypassrls on "table_name" to "role_name";
This can be useful for system-level access. You should _never_ share login credentials for any Postgres Role with this privilege.
-## RLS Performance Recommendations
+## RLS performance recommendations
Every authorization system has an impact on performance. While row level security is powerful, the performance impact is important to keep in mind. This is especially true for queries that scan every row in a table - like many `select` operations, including those using limit, offset, and ordering.
@@ -351,7 +351,7 @@ If the list exceeds 1000 items, a different approach may be needed or you may ne
| --------------------------------------------------------------------------------------------------- | ----------- | ---------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| [test5-fixed-join](https://github.com/GaryAustin1/RLS-Performance/tree/main/tests/test5-fixed-join) | 9,000 | 20 | 99.78% | <details className="cursor-pointer">Before:<br/>`auth.uid()` in table join on col<br/><br/>After:<br/>col in table join on `auth.uid()`</details> |
-### Specify Roles in your Policies
+### Specify roles in your policies
Always use the Role of inside your policies, specified by the `TO` operator. For example, instead of this query:
diff --git a/apps/docs/pages/guides/database/postgres/triggers.mdx b/apps/docs/pages/guides/database/postgres/triggers.mdx
index 2e1360fadfa..ff102f06153 100644
--- a/apps/docs/pages/guides/database/postgres/triggers.mdx
+++ b/apps/docs/pages/guides/database/postgres/triggers.mdx
@@ -9,7 +9,7 @@ export const meta = {
In Postgres, a trigger executes a set of actions automatically on table events such as INSERTs, UPDATEs, DELETEs, or TRUNCATE operations.
-## Creating a Trigger
+## Creating a trigger
Creating triggers involve 2 parts:
@@ -25,7 +25,7 @@ for each row
execute function trigger_function();
```
-## Trigger Functions
+## Trigger functions
A trigger function is a user-defined [Function](docs/guides/database/functions) that Postgres executes when the trigger is fired.
@@ -70,7 +70,7 @@ Here are some of the key variables and options available within trigger function
- `TG_ARGV`: An array of string arguments provided when creating the trigger.
- `TG_NARGS`: The number of arguments in the `TG_ARGV` array.
-## Types of Triggers
+## Types of triggers
There are two types of trigger, `BEFORE` and `AFTER`:
@@ -103,7 +103,7 @@ There are two options available for executing triggers:
- `for each row`: specifies that the trigger function should be executed once for each affected row.
- `for each statement`: the trigger is executed once for the entire operation (eg, once on insert). This can be more efficient than `for each row` when dealing with multiple rows affected by a single SQL statement, as they allow you to perform calculations or updates on groups of rows at once.
-## Dropping a Trigger
+## Dropping a trigger
You can delete a trigger using the `drop trigger` command:
diff --git a/apps/docs/pages/guides/database/query-optimization.mdx b/apps/docs/pages/guides/database/query-optimization.mdx
index f44b54efc68..f5327e0f1f3 100644
--- a/apps/docs/pages/guides/database/query-optimization.mdx
+++ b/apps/docs/pages/guides/database/query-optimization.mdx
@@ -18,7 +18,7 @@ This is not a comprehensive resource, but rather a helpful starting point for yo
If you're new to query optimization, you may be interested in [index_advisor](/docs/guides/database/extensions/index_advisor), our tool for automatically detecting indexes that improve performance on a given query.
-## Example Query
+## Example query
Consider the following example query that retrieves customer names and purchase dates from two tables:
@@ -74,11 +74,11 @@ Sorting can also be optimized by indexing:
create index idx_orders_date_of_purchase on orders (date_of_purchase);
```
-## Key Concepts
+## Key concepts
Here are some concepts and tools to keep in mind to help you identify the best index for the job, and measure the impact that your index had:
-### Analyze the Query Plan
+### Analyze the query plan
Use the `explain` command to understand the query's execution. Look for slow parts, such as Sequential Scans or high cost numbers. If creating an index does not reduce the cost of the query plan, remove it.
@@ -88,7 +88,7 @@ For example:
explain select * from customers where sign_up_date > 25;
```
-### Use Appropriate Index Types
+### Use appropriate index types
Postgres offers various index types like [B-tree, Hash, GIN, etc](https://www.postgresql.org/docs/current/indexes-types.html). Select the type that best suits your data and query pattern. Using the right index type can make a significant difference. For example, using a BRIN index on a field that always increases and lives within a table that updates infrequently - like `created_at` on an `orders` table - routinely results in indexes that are +10x smaller than the equivalent default B-tree index. That translates into better scalability.
@@ -96,7 +96,7 @@ Postgres offers various index types like [B-tree, Hash, GIN, etc](https://www.po
create index idx_orders_created_at ON customers using brin(created_at);
```
-### Partial Indexes
+### Partial indexes
For queries that frequently target a subset of data, a partial index could be faster and smaller than indexing the entire column. A partial index contains a `where` clause to filter the values included in the index. Note that a query's `where` clause must match the index for it to be used.
@@ -105,7 +105,7 @@ create index idx_orders_status on orders (status)
where status = 'shipped';
```
-### Composite Indexes
+### Composite indexes
If filtering or joining on multiple columns, a composite index prevents Postgres from referring to multiple indexes when identifying the relevant rows.
diff --git a/apps/docs/pages/guides/database/replication.mdx b/apps/docs/pages/guides/database/replication.mdx
index 6d32aebf95b..1ef112030e7 100644
--- a/apps/docs/pages/guides/database/replication.mdx
+++ b/apps/docs/pages/guides/database/replication.mdx
@@ -13,7 +13,7 @@ Replication is a technique for copying the data from one database to another. Su
Replication is done through _publications_, a method of choosing which changes to send to other systems (usually another Postgres database). Publications can be managed in the [Dashboard](https://supabase.com/dashboard) or with SQL.
-## Manage publications in the Dashboard
+## Manage publications in the dashboard
1. Go to the [Database](https://supabase.com/dashboard/project/_/database/tables) page in the Dashboard.
2. Click on **Replication** in the sidebar.
diff --git a/apps/docs/pages/guides/database/tables.mdx b/apps/docs/pages/guides/database/tables.mdx
index e80c5846cde..9590fe48157 100644
--- a/apps/docs/pages/guides/database/tables.mdx
+++ b/apps/docs/pages/guides/database/tables.mdx
@@ -21,7 +21,7 @@ For example, this table has 3 "columns" (`id`, `name`, `description`) and 4 "row
There are a few important differences from a spreadsheet, but it's a good starting point if you're new to Relational databases.
-## Creating Tables
+## Creating tables
When creating a table, it's best practice to add columns at the same time.
@@ -140,7 +140,7 @@ if the default types don't fit your needs. You can use any data type that Postgr
You can "cast" columns from one type to another, however there can be some incompatibilities between types.
For example, if you cast a `timestamp` to a `date`, you will lose all the time information that was previously saved.
-### Primary Keys
+### Primary keys
A table can have a "primary key" - a unique identifier for every row of data. A few tips for Primary Keys:
@@ -260,7 +260,7 @@ psql -h DATABASE_URL -p 5432 -d postgres -U postgres \
If you receive an error `FATAL: password authentication failed for user "postgres"`, reset your database password in the Database Settings and try again.
-## Joining tables with Foreign Keys
+## Joining tables with foreign keys
Tables can be "joined" together using Foreign Keys.
@@ -471,7 +471,7 @@ where courses.code != 'PG101';
Without a view, we would need to go into every dependent query to add the new rule. This would increase in the likelihood of errors and inconsistencies, as well as introducing a lot of effort for a developer. With views, we can alter just the underlying query in the view **transcripts**. The change will be applied to all applications using this view.
-#### Logical Organization
+#### Logical organization
With views, we can give our query a name. This is extremely useful for teams working with the same database. Instead of guessing what a query is supposed to do, a well-named view can easily explain it. For example, by looking at the name of the view **transcripts**, we can infer that the underlying query might involve the **students**, **courses**, and **grades** tables.
@@ -479,7 +479,7 @@ With views, we can give our query a name. This is extremely useful for teams wor
Views can restrict the amount and type of data presented to a user. Instead of allowing a user direct access to a set of tables, we provide them a view instead. We can prevent them from reading sensitive columns by excluding them from the underlying query.
-### Materialized Views
+### Materialized views
A [materialized view](https://www.postgresql.org/docs/12/rules-materializedviews.html) is a form of view but it also stores the results to disk. In subsequent reads of a materialized view, the time taken to return its results would be much faster than a conventional view. This is because the data is readily available for a materialized view while the conventional view executes the underlying query each time it is called.
@@ -515,7 +515,7 @@ refresh materialized view transcripts;
It's up to you how regularly refresh your materialized views, and it's probably different for each view depending on its use-case.
-### Materialized views vs Conventional views
+### Materialized views vs conventional views
Materialized views are useful when execution times for queries or views are too slow. These could likely occur in views or queries involving multiple tables and billions of rows. When using such a view, however, there should be tolerance towards data being outdated. Some use-cases for materialized views are internal dashboards and analytics.
diff --git a/apps/docs/pages/guides/database/vault.mdx b/apps/docs/pages/guides/database/vault.mdx
index cbd759f5557..f8a1df1ba8d 100644
--- a/apps/docs/pages/guides/database/vault.mdx
+++ b/apps/docs/pages/guides/database/vault.mdx
@@ -31,7 +31,7 @@ There are two main parts to the Vault UI, Secrets and Encryption Keys:
You can use the Vault to store secrets - everything from Environment Variables to API Keys. You can then use these secrets anywhere in your database: Postgres [Functions](/docs/guides/database/functions), Triggers, and [Webhooks](/docs/guides/database/webhooks). From a SQL perspective, accessing secrets is as easy as querying a table (or in this case, a view). The underlying secrets tables will be stored in encrypted form.
-## Encryption Keys
+## Encryption keys
These are keys used to encrypt data inside your database. You can create different Encryption Keys for different purposes, for example: one for encrypting user-data, and another for application-data. Each key is encrypted itself using a root encryption key that lives outside of the database. See **[Encryption key location](#encryption-key-location)** for more details.
@@ -161,7 +161,7 @@ Notice how this view has a `decrypted_secret` column that contains the decrypted
You should ensure that you protect access to this view with the appropriate SQL privilege settings at all times, as anyone that has access to the view has access to decrypted secrets.
-### Updating Secrets
+### Updating secrets
A secret can be updated with the `vault.update_secret()` function, this function makes updating secrets easy, just provide the secret UUID as the first argument, and then an updated secret, updated optional unique name, or updated description:
@@ -197,7 +197,7 @@ updated_at | 2022-12-14 02:51:13.938396+00
</details>
-## Deep Dive
+## Deep dive
<div className="video-container">
<iframe
@@ -211,7 +211,7 @@ updated_at | 2022-12-14 02:51:13.938396+00
As we mentioned, the Vault uses pgsodium's Transparent Column Encryption (TCE) to store secrets in an authenticated encrypted form. There are some details around that you may be curious about, what does authenticated mean, and where are encryption keys store? This section explains those details.
-### Authenticated Encryption with Associated Data
+### Authenticated encryption with associated data
The first important feature of TCE is that it uses an [Authenticated Encryption with Associated Data](<https://en.wikipedia.org/wiki/Authenticated_encryption#Authenticated_encryption_with_associated_data_(AEAD)>) encryption algorithm (based on libsodium).
@@ -227,7 +227,7 @@ This is an important safety precaution - there is little value in storing the en
Where are the keys stored? Supabase creates and manages the root keys (from which all key IDs are derived) in our secured backend systems. We keep this root key safe and separate from your data. You remain in control of your keys - a separate API endpoint is available that you can use to access the key if you want to decrypt your data outside of Supabase.
-### Internal Details
+### Internal details
To encrypt data, you need a _key id_. You can use the default key id created automatically for every project, or create your own key ids Using the `pgsodium.create_key()` function. Key ids are used to internally derive the encryption key used to encrypt secrets in the vault. Vault users typically do not have access to the key itself, only the key id.
diff --git a/apps/docs/pages/guides/database/webhooks.mdx b/apps/docs/pages/guides/database/webhooks.mdx
index 94884da8b0f..1f78f2b398f 100644
--- a/apps/docs/pages/guides/database/webhooks.mdx
+++ b/apps/docs/pages/guides/database/webhooks.mdx
@@ -12,7 +12,7 @@ Database Webhooks allow you to send real-time data from your database to another
You can hook into three table events: `INSERT`, `UPDATE`, and `DELETE`. All events are fired _after_ a database row is changed.
-## Webhooks vs Triggers
+## Webhooks vs triggers
Database Webhooks are very similar to triggers, and that's because Database Webhooks are just a convenience wrapper around triggers using the [pg_net](/docs/guides/database/extensions/pgnet) extension. This extension is asynchronous, and therefore will not block your database changes for long-running network requests.
diff --git a/apps/docs/pages/guides/functions/auth.mdx b/apps/docs/pages/guides/functions/auth.mdx
index d50a436d4b0..963c7af0be7 100644
--- a/apps/docs/pages/guides/functions/auth.mdx
+++ b/apps/docs/pages/guides/functions/auth.mdx
@@ -9,7 +9,7 @@ export const meta = {
Edge Functions work seamlessly with [Supabase Auth](/docs/guides/auth).
-## Auth Context
+## Auth context
When a user makes a request to an Edge Function, you can use the Authorization header to set the Auth context in the Supabase client:
diff --git a/apps/docs/pages/guides/functions/cicd-workflow.mdx b/apps/docs/pages/guides/functions/cicd-workflow.mdx
index 9c37a254ada..e218a4cc744 100644
--- a/apps/docs/pages/guides/functions/cicd-workflow.mdx
+++ b/apps/docs/pages/guides/functions/cicd-workflow.mdx
@@ -10,7 +10,7 @@ export const meta = {
You can use the official [`setup-cli` GitHub Action](https://github.com/marketplace/actions/supabase-cli-action) to run Supabase CLI commands in your GitHub Actions.
-## Sample Workflow
+## Sample workflow
The following GitHub Action deploys all Edge Functions any time code is merged into the `main` branch:
@@ -41,7 +41,7 @@ jobs:
- run: supabase functions deploy --project-ref $PROJECT_ID
```
-## Declarative Configuration
+## Declarative configuration
Individual function configuration like [JWT verification](/docs/guides/cli/config#functions.function_name.verify_jwt) and [import map location](/docs/guides/cli/config#functions.function_name.import_map) can be set via the `config.toml` file.
diff --git a/apps/docs/pages/guides/functions/connect-to-postgres.mdx b/apps/docs/pages/guides/functions/connect-to-postgres.mdx
index e788ee8ecc2..b10c1f7c3ee 100644
--- a/apps/docs/pages/guides/functions/connect-to-postgres.mdx
+++ b/apps/docs/pages/guides/functions/connect-to-postgres.mdx
@@ -92,7 +92,7 @@ Deno.serve(async (_req) => {
})
```
-## SSL Connections
+## SSL connections
Deployed edge functions are pre-configured to use SSL for connections to the Supabase database. You don't need to add any extra configurations.
diff --git a/apps/docs/pages/guides/functions/dart-edge.mdx b/apps/docs/pages/guides/functions/dart-edge.mdx
index 17c3da0ff09..66b8c7513a8 100644
--- a/apps/docs/pages/guides/functions/dart-edge.mdx
+++ b/apps/docs/pages/guides/functions/dart-edge.mdx
@@ -74,7 +74,7 @@ supabase:
webhook_handler: 'lib/webhooks.dart'
```
-## Using Supabase Client
+## Using Supabase client
Now let’s try to interact with our Supabase database. We will start by installing the dependencies.
@@ -92,7 +92,7 @@ We also need to use a special HTTP client to HTTP requests in the edge environme
dart pub add edge_http_client
```
-### Initialize SupabaseClient
+### Initialize `SupabaseClient`
At this point, you can initialize a `SupabaseClient` by passing the [EdgeHttpClient](https://pub.dev/packages/edge_http_client). We can access the Supabase credentials through the [environment variables](https://supabase.com/docs/guides/functions/secrets) using `Deno.env.get()` method. Note that [Supabase credentials are available by default](https://supabase.com/docs/guides/functions/secrets), so no configurations are necessary.
diff --git a/apps/docs/pages/guides/functions/debugging.mdx b/apps/docs/pages/guides/functions/debugging.mdx
index 21cc6afd672..40eafd50fa0 100644
--- a/apps/docs/pages/guides/functions/debugging.mdx
+++ b/apps/docs/pages/guides/functions/debugging.mdx
@@ -7,7 +7,7 @@ export const meta = {
subtitle: 'Debugging tips and Edge Function limitations.',
}
-## Logs & Debugging
+## Logs & debugging
Logs are provided for each function invocation, locally and in production.
@@ -70,13 +70,13 @@ There are two debugging tools available: Invocations and Logs. Invocations shows
- Search the [Edge Runtime](https://github.com/supabase/edge-runtime) and [CLI](https://github.com/supabase/cli) repos for the error message, to see if it has been reported before.
- If the output from the commands above does not help you to resolve the issue, please open a support ticket via the Supabase Dashboard (by clicking the "Help" button at the top right) and include all output and details about your commands.
-## Advanced Techniques
+## Advanced techniques
-### Checking Function Boot Time
+### Checking function boot time
Check the logs for the function. In the logs, look for a "Booted" event and note the reported boot time. If available, click on the event to access more details, including the regions from where the function was served. Investigate if the boot time is excessively high (longer than 1 second) and note any patterns or regions where it occurs.
-### Finding Bundle Size
+### Finding bundle size
To find the bundle size of a function, run the following command locally:
@@ -86,7 +86,7 @@ deno info /path/to/function/index.ts
Look for the "size" field in the output which represents the approximate bundle size of the function.You can find the accurate bundle size when you deploy your function via Supabase CLI. If the function is part of a larger application, consider examining the bundle size of the specific function independently.
-### Analyze Dependencies
+### Analyze dependencies
Run `deno info`, providing the path to your input map if you use one.
Review the dependencies listed in the output. Pay attention to any significantly large dependencies, as they can contribute to increased bundle size and potential boot time issues.
diff --git a/apps/docs/pages/guides/functions/deploy.mdx b/apps/docs/pages/guides/functions/deploy.mdx
index df8f56a3dc9..e285c74f8e9 100644
--- a/apps/docs/pages/guides/functions/deploy.mdx
+++ b/apps/docs/pages/guides/functions/deploy.mdx
@@ -24,7 +24,7 @@ See the [CLI Docs](/docs/guides/cli) to learn how to install the Supabase CLI on
</Admonition>
-## Get your Project ID
+## Get your project ID
Get the project ID associated with your function by running:
@@ -74,7 +74,7 @@ supabase functions deploy hello-world --no-verify-jwt
Be careful when using this flag, as it will allow anyone to invoke your Edge Function without a valid JWT. The Supabase client libraries automatically handle authorization.
-## Invoking remote Functions
+## Invoking remote functions
You can now invoke your Edge Function using the project's `ANON_KEY`, which can be found in the [API settings](https://supabase.com/dashboard/project/_/settings/api) of the Supabase Dashboard.
diff --git a/apps/docs/pages/guides/functions/examples/discord-bot.mdx b/apps/docs/pages/guides/functions/examples/discord-bot.mdx
index 14ff7c54163..7b0bbefcd2e 100644
--- a/apps/docs/pages/guides/functions/examples/discord-bot.mdx
+++ b/apps/docs/pages/guides/functions/examples/discord-bot.mdx
@@ -16,7 +16,7 @@ export const meta = {
></iframe>
</div>
-## Create an application on Discord Developer Portal
+## Create an application on Discord Developer portal
1. Go to [https://discord.com/developers/applications](https://discord.com/developers/applications) (login using your discord account if required).
2. Click on **New Application** button available at left side of your profile picture.
@@ -140,7 +140,7 @@ function hexToUint8Array(hex: string) {
}
```
-## Deploy the Slash Command Handler
+## Deploy the Slash Command handler
```bash
supabase functions deploy discord-bot --no-verify-jwt
diff --git a/apps/docs/pages/guides/functions/examples/push-notifications.mdx b/apps/docs/pages/guides/functions/examples/push-notifications.mdx
index 00ca3ebec64..19350620750 100644
--- a/apps/docs/pages/guides/functions/examples/push-notifications.mdx
+++ b/apps/docs/pages/guides/functions/examples/push-notifications.mdx
@@ -10,14 +10,14 @@ export const meta = {
Find the example code on [GitHub](https://github.com/supabase/supabase/blob/master/examples/user-management/expo-push-notifications/).
-## Supabase Setup
+## Supabase setup
- [Create a new Supabase project](https://database.new).
- Link your project: `supabase link --project-ref your-supabase-project-ref`
- Start supabase locally: `supabase start`
- Push up the schema: `supabase db push` (schema is defined in [supabase/migrations](https://github.com/supabase/supabase/blob/master/examples/user-management/expo-push-notifications/supabase/migrations/))
-## Expo Setup
+## Expo setup
To utilize Expo's push notification service, you must configure your app by installing a set of libraries, implementing functions to handle notifications, and setting up credentials for Android and iOS. Follow the official [Expo Push Notifications Setup Guide](https://docs.expo.dev/push-notifications/push-notifications-setup/) to get the credentials for Android and iOS. This project uses [Expo's EAS build](https://docs.expo.dev/build/introduction/) service to simplify this part.
diff --git a/apps/docs/pages/guides/functions/examples/slack-bot-mention.mdx b/apps/docs/pages/guides/functions/examples/slack-bot-mention.mdx
index e3aff2ea780..30705165eb3 100644
--- a/apps/docs/pages/guides/functions/examples/slack-bot-mention.mdx
+++ b/apps/docs/pages/guides/functions/examples/slack-bot-mention.mdx
@@ -8,7 +8,7 @@ export const meta = {
The Slack Bot Mention Edge Function allows you to process mentions in Slack and respond accordingly.
-## Configuring Slack Apps
+## Configuring Slack apps
For your bot to seamlessly interact with Slack, you'll need to configure Slack Apps:
diff --git a/apps/docs/pages/guides/functions/import-maps.mdx b/apps/docs/pages/guides/functions/import-maps.mdx
index df35809a30c..61169b033eb 100644
--- a/apps/docs/pages/guides/functions/import-maps.mdx
+++ b/apps/docs/pages/guides/functions/import-maps.mdx
@@ -33,7 +33,7 @@ import process from 'node:process'
You can learn more about `npm:` specifiers and Node built-in APIs, in [Deno's documentation](https://docs.deno.com/runtime/manual/node/npm_specifiers).
-## Importing Types
+## Importing types
If your [environment is set up properly](/docs/guides/functions/local-development) and the module you're importing is exporting types, the import will have types and autocompletion support.
@@ -50,7 +50,7 @@ To include types for built-in Node APIs, add the following line to the top of yo
/// <reference types="npm:@types/node" />
```
-## Using Import Maps
+## Using import maps
An [Import Map](https://github.com/WICG/import-maps#the-import-map) is similar to a `package.json` file. They are a way to manage your dependencies. Consider this code:
diff --git a/apps/docs/pages/guides/functions/local-development.mdx b/apps/docs/pages/guides/functions/local-development.mdx
index 6b1b6e51ffa..9a7ad164646 100644
--- a/apps/docs/pages/guides/functions/local-development.mdx
+++ b/apps/docs/pages/guides/functions/local-development.mdx
@@ -9,7 +9,7 @@ export const meta = {
We recommend installing the Deno CLI and related tools for local development.
-## Deno Support
+## Deno support
You can follow the [Deno guide](https://deno.com/[email protected]/getting_started/setup_your_environment) for setting up your development environment with your favorite editor/IDE.
@@ -39,7 +39,7 @@ To enable the Deno language server only for the `supabase/functions` folder, add
}
```
-## Multi-root workspaces in VS Code
+## Multi-root workspaces in VSCode
When developing with VS Code inside of an existing application, you can utilize [multi-root workspaces](https://code.visualstudio.com/docs/editor/workspaces#_multiroot-workspaces).
diff --git a/apps/docs/pages/guides/functions/quickstart.mdx b/apps/docs/pages/guides/functions/quickstart.mdx
index 5bb8b7edfac..48e4f73e44c 100644
--- a/apps/docs/pages/guides/functions/quickstart.mdx
+++ b/apps/docs/pages/guides/functions/quickstart.mdx
@@ -118,7 +118,7 @@ Read on for some common development tips.
Here are a few recommendations when developing Edge Functions.
-### Skipping Authorization checks
+### Skipping authorization checks
By default, Edge Functions require a valid JWT in the authorization header. If you want to use Edge Functions without Authorization checks (commonly used for Stripe webhooks), you can pass the `--no-verify-jwt` flag when serving your Edge Functions locally.
@@ -128,7 +128,7 @@ supabase functions serve hello-world --no-verify-jwt
Be careful when using this flag, as it will allow anyone to invoke your Edge Function without a valid JWT. The Supabase client libraries automatically handle authorization.
-### Using HTTP Methods
+### Using HTTP methods
Edge Functions support `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, and `OPTIONS`. A Function can be designed to perform different actions based on a request's HTTP method. See the [example on building a RESTful service](https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/restful-tasks) to learn how to handle different HTTP methods in your Function.
@@ -176,7 +176,7 @@ verify_jwt = false
import_map = './import_map.json'
```
-### Error Handling
+### Error handling
The `supabase-js` library provides several error types that you can use to handle errors that might occur when invoking Edge Functions:
diff --git a/apps/docs/pages/guides/functions/unit-test.mdx b/apps/docs/pages/guides/functions/unit-test.mdx
index 0006dc6869e..8361ba38a95 100644
--- a/apps/docs/pages/guides/functions/unit-test.mdx
+++ b/apps/docs/pages/guides/functions/unit-test.mdx
@@ -115,7 +115,7 @@ Please make sure to replace the placeholders (`supabaseUrl`, `supabaseKey`, `my_
</Admonition>
-## Running Edge Functions Locally
+## Running Edge Functions locally
To locally test and debug Edge Functions, you can utilize the Supabase CLI. Let's explore how to run Edge Functions locally using the Supabase CLI:
diff --git a/apps/docs/pages/guides/getting-started.mdx b/apps/docs/pages/guides/getting-started.mdx
index 9482a244184..eb92573d7a0 100644
--- a/apps/docs/pages/guides/getting-started.mdx
+++ b/apps/docs/pages/guides/getting-started.mdx
@@ -35,7 +35,7 @@ export const meta = {
</div>
-### Use Cases
+### Use cases
<div className="grid lg:grid-cols-12 gap-6 not-prose">
{useCases.map((item) => {
@@ -55,7 +55,7 @@ export const meta = {
})}
</div>
-### Framework Quickstarts
+### Framework quickstarts
<div className="grid lg:grid-cols-12 gap-6 not-prose">
{quickstarts.map((item) => {
@@ -75,7 +75,7 @@ export const meta = {
})}
</div>
-### Web App Tutorials
+### Web app tutorials
<div className="grid lg:grid-cols-12 gap-6 not-prose">
{webapps.map((item) => {
@@ -97,7 +97,7 @@ export const meta = {
</div>
-### Mobile Tutorials
+### Mobile tutorials
<div className="grid lg:grid-cols-12 gap-6 not-prose">
{mobile.map((item) => {
diff --git a/apps/docs/pages/guides/getting-started/architecture.mdx b/apps/docs/pages/guides/getting-started/architecture.mdx
index 70e504fe597..448299322c9 100644
--- a/apps/docs/pages/guides/getting-started/architecture.mdx
+++ b/apps/docs/pages/guides/getting-started/architecture.mdx
@@ -23,7 +23,7 @@ Each Supabase project consists of several tools:
![Supabase Architecture](/docs/img/supabase-architecture.png)
-### PostgreSQL (Database)
+### PostgreSQL (database)
PostgreSQL is the core of Supabase. We do not abstract the PostgreSQL database — you can access it and use it with full privileges. We simply provide tools which makes PostgreSQL as easy to use as Firebase.
@@ -32,7 +32,7 @@ PostgreSQL is the core of Supabase. We do not abstract the PostgreSQL database
- License: [PostgreSQL License](https://www.postgresql.org/about/licence/)
- Language: C
-### Studio (Dashboard)
+### Studio (dashboard)
An open source Dashboard for managing your database and services.
@@ -87,7 +87,7 @@ A modern runtime for JavaScript and TypeScript.
- License: [MIT](https://github.com/denoland/deno/blob/main/LICENSE.md)
- Language: TypeScript / Rust
-### postgres-meta (Database management)
+### `postgres-meta` (database management)
A RESTful API for managing your Postgres. Fetch tables, add roles, and run queries.
@@ -105,7 +105,7 @@ A lightweight connection pooler for PostgreSQL. This is useful for connecting to
- License: [ISC](https://github.com/pgbouncer/pgbouncer/blob/master/COPYRIGHT)
- Language: C
-### Kong (API Gateway)
+### Kong (API gateway)
A cloud-native API gateway, built on top of Nginx.
@@ -114,7 +114,7 @@ A cloud-native API gateway, built on top of Nginx.
- License: [Apache 2.0](https://github.com/Kong/kong/blob/master/LICENSE)
- Language: Lua
-## Product Principles
+## Product principles
It is our goal to provide an architecture that any large-scale company would design for themselves,
and then provide tooling around that architecture that is easy-to-use for indie-developers and small teams.
diff --git a/apps/docs/pages/guides/getting-started/features.mdx b/apps/docs/pages/guides/getting-started/features.mdx
index 28e01945063..12c3e0ae36e 100755
--- a/apps/docs/pages/guides/getting-started/features.mdx
+++ b/apps/docs/pages/guides/getting-started/features.mdx
@@ -10,27 +10,27 @@ This is a non-exhaustive list of features that Supabase provides for every proje
## Database
-### Postgres Database
+### Postgres database
Every project is a full Postgres database. [Docs](/docs/guides/database).
-### Database Extensions
+### Database extensions
Every database comes with a full set of Postgres extensions. [Docs](/docs/guides/database/extensions).
-### Database Functions
+### Database functions
Create custom database functions which you can call from the browser. [Docs](/docs/guides/database/functions).
-### Database Triggers
+### Database triggers
Attach triggers to your tables to handle database changes. [Docs](/docs/guides/auth/managing-user-data#using-triggers).
-### Database Webhooks
+### Database webhooks
Send database changes to any external service using Webhooks. [Link](https://supabase.com/blog/supabase-functions-updates#database-webhooks-alpha).
-### Database Backups
+### Database backups
Projects are backed up daily with the option to upgrade to Point in Time recovery.
@@ -50,19 +50,19 @@ Develop locally and push your changes to your production database using migratio
## Auth
-### Email & Password Logins
+### Email & password logins
Build email logins for your application or website. [Docs](/docs/guides/auth/auth-email).
-### Magic Links
+### Magic links
Build passwordless logins for your application or website.[Docs](/docs/guides/auth/auth-magic-link).
-### Social Logins
+### Social logins
Provide social logins - everything from Apple, to GitHub, to Slack. [Docs](/docs/guides/auth/social-login).
-### Phone Logins
+### Phone logins
Provide phone logins using a third-party SMS provider. [Docs](/docs/guides/auth/phone-login).
@@ -70,17 +70,17 @@ Provide phone logins using a third-party SMS provider. [Docs](/docs/guides/auth/
Control the data each user can access with Postgres Policies. [Docs](/docs/guides/auth/row-level-security).
-### Serverside Auth Helpers
+### Serverside Auth helpers
Helpers for implementing user authentication in popular frameworks like [Next.js](/docs/guides/auth/auth-helpers/nextjs) and [SvelteKit](/docs/guides/auth/auth-helpers/sveltekit)
-### Auth UI Kit
+### Auth UI kit
Build login and registration pages with custom themes. [Docs](/docs/guides/auth/auth-helpers/auth-ui).
<br />
-## APIs & Client libraries
+## APIs & client libraries
### Auto-generated REST API
@@ -90,15 +90,15 @@ RESTful APIs are autogenerated from your database, without a single line of code
Fast GraphQL APIs using our custom Postgres GraphQL extension. [Docs](/docs/guides/graphql/api).
-### Realtime Database changes
+### Realtime database changes
Receive your database changes through websockets. [Docs](/docs/guides/realtime/postgres-changes).
-### User Broadcasting
+### User broadcasting
Send messages between connected users through websockets. [Docs](/docs/guides/realtime/broadcast).
-### User Presence
+### User presence
Synchronize shared state across your users, including online status and typing indicators. [Docs](/docs/guides/realtime/presence).
@@ -123,7 +123,7 @@ Upload large files easily using resumable uploads. [Docs](/docs/guides/storage/u
Cache large files using the Supabase CDN. [Docs](/docs/guides/storage/cdn/fundamentals).
-### Image Transformations
+### Image transformations
Transform images on the fly. [Docs](/docs/guides/storage/serving/image-transformations).
@@ -137,7 +137,7 @@ Globally distributed TypeScript functions to execute custom business logic. [Doc
<br />
-## Project Management
+## Project management
### CLI
@@ -149,7 +149,7 @@ Manage your projects programmatically. [Docs](/docs/reference/api).
<br />
-## Feature Status
+## Feature status
Both Postgres and the Supabase Platform are production-ready. Some tools we offer on top of Postgres are still under development.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx
index 4160e9fce9f..a21b2410a15 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the Angular app from scratch.
@@ -129,7 +129,7 @@ export class SupabaseService {
Optionally, update [src/styles.css](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/angular-user-management/src/styles.css) to style the app.
-### Set up a Login component
+### Set up a login component
Let's set up an Angular component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords.
Create an **AuthComponent** with `ng g c auth` Angular CLI command.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-expo-react-native.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-expo-react-native.mdx
index 859147ec7d7..33eacabd3b3 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-expo-react-native.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-expo-react-native.mdx
@@ -18,7 +18,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the React Native app from scratch.
@@ -162,7 +162,7 @@ These variables are safe to expose in your Expo app since Supabase has
</TabPanel>
</Tabs>
-### Set up a Login component
+### Set up a login component
Let's set up a React Native component to manage logins and sign ups.
Users would be able to sign in with their email and password.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx
index 8be1f9a2f75..2bf0b17035e 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx
@@ -18,7 +18,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the Flutter app from scratch.
@@ -143,7 +143,7 @@ Future<void> main() async {
final supabase = Supabase.instance.client;
```
-### Set up Splash Screen
+### Set up splash screen
Let's create a splash screen that will be shown to users right after they open the app.
This screen retrieves the current session and redirects the user accordingly.
@@ -189,7 +189,7 @@ class _SplashPageState extends State<SplashPage> {
}
```
-### Set up a Login page
+### Set up a login page
Let's create a Flutter widget to manage logins and sign ups.
We'll use Magic Links, so users can sign in with their email without using passwords.
@@ -297,7 +297,7 @@ class _LoginPageState extends State<LoginPage> {
}
```
-### Set up Account page
+### Set up account page
After a user is signed in we can allow them to edit their profile details and manage their account.
Let's create a new widget called `account_page.dart` for that.
@@ -534,7 +534,7 @@ We will be storing the image as a publicly sharable image.
Make sure your `avatars` bucket is set to public, and if it is not, change the publicity by clicking the dot menu that appears when you hover over the bucket name.
You should see an orange `Public` badge next to your bucket name if your bucket is set to public.
-### Adding image uploading feature to Account page
+### Adding image uploading feature to account page
We will use [`image_picker`](https://pub.dev/packages/image_picker) plugin to select an image from the device.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdx
index 582984e16fc..1c082b246cf 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the Angular app from scratch.
@@ -132,7 +132,7 @@ export class SupabaseService {
}
```
-### Set up a Login route
+### Set up a login route
Let's set up a route to manage logins and signups. We'll use Magic Links so users can sign in with their email without using passwords.
Create a **LoginPage** with the `ionic g page login` Ionic CLI command.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-ionic-react.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-react.mdx
index d86e19fe620..fda5709a31f 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-ionic-react.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-react.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the React app from scratch.
@@ -58,7 +58,7 @@ const supabaseAnonKey = process.env.REACT_APP_SUPABASE_ANON_KEY
export const supabase = createClient(supabaseUrl, supabaseAnonKey)
```
-### Set up a Login route
+### Set up a login route
Let's set up a React component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-ionic-vue.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-vue.mdx
index 1085817180a..388c1bea13b 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-ionic-vue.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-vue.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the Vue app from scratch.
@@ -58,7 +58,7 @@ const supabaseAnonKey = process.env.VUE_APP_SUPABASE_ANON_KEY as string;
export const supabase = createClient(supabaseUrl, supabaseAnonKey);
```
-### Set up a Login route
+### Set up a login route
Let's set up a Vue component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx
index 9885de8eed0..d409e27c670 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-kotlin.mdx
@@ -43,7 +43,7 @@ SUPABASE_ANON_KEY=YOUR_SUPABASE_ANON_KEY
SUPABASE_URL=YOUR_SUPABASE_URL
```
-#### Read and set value to BuildConfig
+#### Read and set value to `BuildConfig`
In your `build.gradle` (app) file, create a `Properties` object and read the values from your `local.properties` file by calling the `buildConfigField` method:
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx
index ca68d79bf05..fda0843d508 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the Next.js app from scratch.
@@ -64,7 +64,7 @@ NEXT_PUBLIC_SUPABASE_URL=YOUR_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY=YOUR_SUPABASE_ANON_KEY
```
-### App Styling (Optional)
+### App styling (optional)
An optional step is to update the CSS file `app/globals.css` to make the app look nice.
You can find the full contents of this file [here](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/nextjs-user-management/app/globals.css).
@@ -81,7 +81,7 @@ Install the auth helpers for Next.js
npm install @supabase/auth-helpers-nextjs @supabase/supabase-js
```
-### Next.js Middleware
+### Next.js middleware
<Tabs
scrollable
@@ -172,7 +172,7 @@ export const config = {
</TabPanel>
</Tabs>
-### Set up a Login component
+### Set up a login component
#### Supabase Auth UI
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdx
index 0eef5fb2232..53cf590e5c0 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-nuxt-3.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the Vue 3 app from scratch.
@@ -49,7 +49,7 @@ These variables will be exposed on the browser, and that's completely fine since
Amazing thing about [NuxtSupabase](https://supabase.nuxtjs.org/) is that setting environment variables is all we need to do in order to start using Supabase.
No need to initialize Supabase. The library will take care of it automatically.
-### App Styling (Optional)
+### App styling (optional)
An optional step is to update the CSS file `assets/main.css` to make the app look nice.
You can find the full contents of this file [here](https://github.com/supabase-community/nuxt3-quickstarter/blob/main/assets/main.css).
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-react.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-react.mdx
index 8ba8307b8fd..a80d199f614 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-react.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-react.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the React app from scratch.
@@ -59,12 +59,12 @@ const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY
export const supabase = createClient(supabaseUrl, supabaseAnonKey)
```
-### App Styling (Optional)
+### App styling (optional)
An optional step is to update the CSS file `src/index.css` to make the app look nice.
You can find the full contents of this file [here](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/react-user-management/src/index.css).
-### Set up a Login component
+### Set up a login component
Let's set up a React component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdx
index a74a8dd5519..d2cccbb7e73 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-redwoodjs.mdx
@@ -43,7 +43,7 @@ to how your Supabase `public` schema references the `auth.users`.
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the RedwoodJS app from scratch.
@@ -157,12 +157,12 @@ const App = () => (
export default App
```
-### App Styling (Optional)
+### App styling (optional)
An optional step is to update the CSS file `web/src/index.css` to make the app look nice.
You can find the full contents of this file [here](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/react-user-management/src/index.css).
-### Start RedwoodJS and your first Page
+### Start RedwoodJS and your first page
Let's test our setup at the moment by starting up the app:
@@ -216,7 +216,7 @@ const Routes = () => {
export default Routes
```
-### Set up a Login component
+### Set up a login component
Let's set up a Redwood component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords.
@@ -288,7 +288,7 @@ const Auth = () => {
export default Auth
```
-### Set up an Account component
+### Set up an account component
After a user is signed in we can allow them to edit their profile details and manage their account.
@@ -433,7 +433,7 @@ You'll see the use of `useAuth()` several times. Redwood's `useAuth` hook provid
logIn, logOut, currentUser, and access the `supabase` authenticate client. We'll use it to get an instance
of the supabase client to interact with your API.
-### Update Home Page
+### Update home page
Now that we have all the components in place, let's update your `HomePage` page to use them:
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-refine.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-refine.mdx
index cc9c4fe030f..0ec2f8b2c75 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-refine.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-refine.mdx
@@ -29,7 +29,7 @@ It is possible to customize the `authProvider` for Supabase and as we'll see bel
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the refine app from scratch.
@@ -63,7 +63,7 @@ We should have a running instance of the app with a Welcome page at `http://loca
Let's move ahead to understand the generated code now.
-### refine `supabaseClient`
+### Refine `supabaseClient`
The `create refine-app` generated a Supabase client for us in the `src/utility/supabaseClient.ts` file. It has two constants: `SUPABASE_URL` and `SUPABASE_KEY`. We want to replace them as `supabaseUrl` and `supabaseAnonKey` respectively and assign them our own Supabase server's values.
@@ -273,7 +273,7 @@ const authProvider: AuthBindings = {
export default authProvider
```
-### Set up a Login component
+### Set up a login component
We have chosen to use the headless refine core package that comes with no supported UI framework. So, let's set up a plain React component to manage logins and sign ups.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-solidjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-solidjs.mdx
index b6df048c4ce..cb300f5cc65 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-solidjs.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-solidjs.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the SolidJS app from scratch.
@@ -56,12 +56,12 @@ const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY
export const supabase = createClient(supabaseUrl, supabaseAnonKey)
```
-### App Styling (Optional)
+### App styling (optional)
An optional step is to update the CSS file `src/index.css` to make the app look nice.
You can find the full contents of this file [here](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/solid-user-management/src/index.css).
-### Set up a Login component
+### Set up a login component
Let's set up a SolidJS component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdx
index 90fd9dd6dbc..f5634a1db9b 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the Svelte app from scratch.
@@ -57,12 +57,12 @@ const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY
export const supabase = createClient(supabaseUrl, supabaseAnonKey)
```
-### App Styling (Optional)
+### App styling (optional)
An optional step is to update the CSS file `src/app.css` to make the app look nice.
You can find the full contents of this file [here](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/svelte-user-management/src/app.css).
-### Set up a Login component
+### Set up a login component
Let's set up a Svelte component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords.
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx
index 6f31866dc27..0b4b80c6f53 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-sveltekit.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the Svelte app from scratch.
@@ -186,7 +186,7 @@ Update your `src/routes/+layout.svelte`:
</div>
```
-### Set up a Login page
+### Set up a login page
#### Supabase Auth UI
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-swift.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-swift.mdx
index 15b988ae533..7ab17387e78 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-swift.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-swift.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the SwiftUI app from scratch.
@@ -43,7 +43,7 @@ let supabase = SupabaseClient(
)
```
-### Set up a Login view
+### Set up a login view
Set up a SwiftUI view to manage logins and sign ups.
Users should be able to sign in using a magic link.
@@ -330,7 +330,7 @@ enum TransferError: Error {
}
```
-#### Add PhotosPicker to Profile page
+#### Add PhotosPicker to profile page
```swift ProfileView.swift
struct ProfileView: View {
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdx
index b4effd63687..16cb193dba1 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-vue-3.mdx
@@ -17,7 +17,7 @@ If you get stuck while working through this guide, refer to the [full example on
<ProjectSetup />
-## Building the App
+## Building the app
Let's start building the Vue 3 app from scratch.
@@ -64,7 +64,7 @@ export const supabase = createClient(supabaseUrl, supabaseAnonKey)
Optionally, update [src/style.css](https://raw.githubusercontent.com/supabase/supabase/master/examples/user-management/vue3-user-management/src/style.css) to style the app.
-### Set up a Login component
+### Set up a login component
Set up an `src/components/Auth.vue` component to manage logins and sign ups. We'll use Magic Links, so users can sign in with their email without using passwords.
diff --git a/apps/docs/pages/guides/platform/backups.mdx b/apps/docs/pages/guides/platform/backups.mdx
index 8ee3a4d008a..10699416268 100644
--- a/apps/docs/pages/guides/platform/backups.mdx
+++ b/apps/docs/pages/guides/platform/backups.mdx
@@ -16,7 +16,7 @@ export const mutuallyExclusiveNote = (
Database backups are an integral part of any disaster recovery plan. Disasters come in many shapes and sizes. It could be as simple as accidentally deleting a table column, the database crashing, or even a natural calamity wiping out the underlying hardware a database is running on. The risks and impact brought by these scenarios can never be fully eliminated, but only minimized or even mitigated. Having database backups is a form of insurance policy. They are essentially snapshots of the database at various points in time. When disaster strikes, database backups allow the project to be brought back to any of these points in time, therefore averting the crisis.
-## Frequency of Backups
+## Frequency of backups
When deciding how often a database should be backed up, the key business metric Recovery Point Objective (RPO) should be considered. RPO is the threshold for how much data, measured in time, a business could lose when disaster strikes. This amount is fully dependent on a business and its underlying requirements. A low RPO would mean that database backups would have to be taken at an increased cadence throughout the day. Each Supabase project has access to two forms of backups, Daily Backups and Point-in-Time Recovery (PITR). The agreed upon RPO would be a deciding factor in choosing which solution best fits a project.
@@ -28,7 +28,7 @@ Database backups do not include objects stored via the Storage API, as the datab
</Admonition>
-## Daily Backups
+## Daily backups
All Pro and Enterprise plan Supabase projects are backed up automatically on a daily basis. In terms of Recovery Point Objective (RPO), Daily Backups would be suitable for projects willing to lose up to 24 hours worth of data if disaster hits at the most inopportune time. If a lower RPO is required, enabling Point-in-Time Recovery should be considered.
@@ -38,13 +38,13 @@ For security purposes, passwords for custom roles are not stored in daily backup
</Admonition>
-### Backup Process [#daily-backups-process]
+### Backup process [#daily-backups-process]
The PostgreSQL utility [pg_dumpall](https://www.postgresql.org/docs/current/app-pg-dumpall.html) is used to perform daily backups. An SQL file is generated, zipped up, and sent to our storage servers for safe keeping.
You can access daily backups in the [Scheduled backups](https://supabase.com/dashboard/project/_/database/backups/scheduled) settings in the Dashboard. Pro plan projects can access the last 7 days' worth of daily backups while Enterprise plan projects can access up to 30 days' worth of daily backups. Users can restore their project to any one of the backups. If you wish to generate a logical backup on your own, you can do so through the [Supabase CLI](/docs/reference/cli/supabase-db-dump).
-#### Backup Process for Large Databases
+#### Backup process for large databases
Databases larger than 100GB[^1], if they're on a recent build[^2] of the Supabase platform, get automatically transitioned[^3] to use daily physical backups. Physical backups are a more performant backup mechanism that lowers the overhead and impact on the database being backed up, and also avoids holding locks on objects in your database for a long period of time. While restores are unaffected, the backups created using this method cannot be downloaded from the Backups section of the dashboard.
@@ -56,7 +56,7 @@ Once a database is transitioned to using physical backups, it continues to use p
[^2]: Projects created or upgraded after the 14th of July 2022 are eligible.
[^3]: The transition to physical backups is handled transparently and does not require any user intervention. It involves a single restart of the database to pick up new configuration that can only be loaded at start; the expected downtime for the restart is a few seconds.
-### Restoration Process [#daily-backups-restoration-process]
+### Restoration process [#daily-backups-restoration-process]
When selecting a backup to restore to, select the closest available one made before the desired point in time to restore to. Earlier backups can always be chosen too but do consider the number of days' worth of data that could be lost.
@@ -64,7 +64,7 @@ The Dashboard will then prompt for a confirmation before proceeding with the res
{/* screenshot of the Dashboard of the project completing restoration */}
-## Point-in-Time Recovery
+## Point-in-Time recovery
Point-in-Time Recovery (PITR) allows a project to be backed up at much shorter intervals. This provides users an option to restore to any chosen point of up to seconds in granularity. Even with daily backups, a day's worth of data could still be lost. With PITR, backups could be performed up to the point of disaster.
@@ -78,7 +78,7 @@ Projects interested in PITR will also need to use at least a Small compute add-o
{mutuallyExclusiveNote}
-### Backup Process [#pitr-backup-process]
+### Backup process [#pitr-backup-process]
As discussed [here](https://supabase.com/blog/postgresql-physical-logical-backups), PITR is made possible by a combination of taking physical backups of a project, as well as archiving [Write Ahead Log (WAL)](https://www.postgresql.org/docs/current/wal-intro.html) files. Physical backups provide a snapshot of the underlying directory of the database, while WAL files contain records of every change made in the database.
@@ -92,7 +92,7 @@ You can access PITR in the [Point in Time](https://supabase.com/dashboard/projec
Note that the latest restore point of the project could be significantly far from the current time. This occurs when there has not been any recent activity in the database, and therefore no WAL file backups have been made recently. This is perfectly fine as the state of the database at the latest point of recovery would still be indicative of the state of the database at the current time given that no transactions have been made in between.
-### Restoration Process [#pitr-restoration-process]
+### Restoration process [#pitr-restoration-process]
![PITR: Calendar view](/docs/img/backups-pitr-calendar-view.png)
diff --git a/apps/docs/pages/guides/platform/branching.mdx b/apps/docs/pages/guides/platform/branching.mdx
index 18f2b4dab56..8479805094a 100644
--- a/apps/docs/pages/guides/platform/branching.mdx
+++ b/apps/docs/pages/guides/platform/branching.mdx
@@ -71,11 +71,11 @@ Supabase Branching follows the [Trunk Based Development](https://trunkbaseddevel
</figure>
-### Production Branch
+### Production branch
In Git, you have a Production Branch (typically this is `main`, `master`, `prod`, etc). This should also be your Supabase project's Production Branch.
-### Preview Branches
+### Preview branches
After connecting your Supabase project to one of the supported [Git providers](#git-providers), a corresponding Supabase Preview will be created whenever a new Git branch is created.
@@ -105,7 +105,7 @@ For security reasons, Preview Branches do not contain production data. Future ve
<Admonition type="note" label="Data changes are not merged into production." />
-### Merging Production changes
+### Merging production changes
When you merge your Git branch into the production branch, all changes will be applied to your Production environment.
@@ -113,7 +113,7 @@ When you merge your Git branch into the production branch, all changes will be a
We currently support [GitHub](#branching-with-github). If you are interested in other Git providers, join the [discussion](<(https://github.com/orgs/supabase/discussions/18936)>) for GitLab, BitBucket, and non-Git based Branching.
-## How to use Supabase Branching
+## How to use Supabase branching
Supabase Branching requires a hosted [Git provider](#git-providers). Follow these steps to connect your Supabase project to a Git provider, and enable branching.
@@ -200,7 +200,7 @@ Push your new project to a GitHub repo. For more information, see the GitHub gui
</TabPanel>
</Tabs>
-### Enable Supabase Branching
+### Enable Supabase branching
Once your repository is [correctly prepared](#preparing-your-git-repository), you can enable branching from the Supabase dashboard.
@@ -574,7 +574,7 @@ When a preview branch is merged into the production branch, it creates a schema
You can solve these conflicts the way you would solve normal Git Conflicts: merge or rebase from your production Git branch to your preview Git branch. Since migrations are applied sequentially, ensure that migration files are timestamped correctly after the rebase. Changes that build on top of earlier changes should always have later timestamps.
-### Changing Production Branch
+### Changing production branch
It's not possible to change the Git branch used as the Production branch for Supabase Branching. The only way to change it is to disable and re-enable branching. See [Disable Branching](#disable-branching).
@@ -625,7 +625,7 @@ If you prefer not to use branching, you can manage your environments and tests i
You can also combine both strategies to perform both local and staging tests.
-## Early Access Pricing
+## Early access pricing
Branching is available on the Pro Plan and above for Early Access users. The price during Early Access is:
diff --git a/apps/docs/pages/guides/platform/compute-add-ons.mdx b/apps/docs/pages/guides/platform/compute-add-ons.mdx
index 17f19f00b3c..28e8ad54f03 100644
--- a/apps/docs/pages/guides/platform/compute-add-ons.mdx
+++ b/apps/docs/pages/guides/platform/compute-add-ons.mdx
@@ -54,7 +54,7 @@ SSD Disks are attached to your servers and the disk performance depends on the c
[Contact us](https://supabase.com/contact/enterprise) if you require a custom plan.
-### Bursting and Disk Budget
+### Bursting and disk budget
Smaller compute instances can burst up to their largest throughput and IOPS for 30 minutes in a day. Beyond that, the performance reverts to the baseline. For example, the free tier can burst up to 2,085 Mbps for 30 minutes a day and reverts to the baseline performance of 87 Mbps. Your disk budget gets replenished throughout the day.
@@ -62,7 +62,7 @@ If you need consistent disk performance, choose the 4XL or larger compute add-on
If you're unsure of how much throughput or IOPS your application requires, you can load test your project and inspect these [metrics in the Dashboard](https://supabase.com/dashboard/project/_/reports). If the `Disk IO % consumed` stat is more than 1%, it indicates that your workload has burst beyond the baseline IO throughput during the day. If this metric goes to 100%, the workload has used up all available disk budget and will revert to baseline performance. Projects that use any disk budget are good candidates for upgrading to a larger compute add-on with higher baseline throughput.
-## Postgres Replication Slots and WAL Senders
+## Postgres replication slots and WAL senders
[Replication Slots](https://postgresqlco.nf/doc/en/param/max_replication_slots) and [WAL Senders](https://postgresqlco.nf/doc/en/param/max_wal_senders/) are used to enable [Postgres Replication](/docs/guides/database/replication).
diff --git a/apps/docs/pages/guides/platform/custom-domains.mdx b/apps/docs/pages/guides/platform/custom-domains.mdx
index 1570a332317..b7ce3eff52b 100644
--- a/apps/docs/pages/guides/platform/custom-domains.mdx
+++ b/apps/docs/pages/guides/platform/custom-domains.mdx
@@ -18,11 +18,11 @@ Custom domains allow you to present a branded experience to your users. Custom d
></iframe>
</div>
-## Configure a Custom Domain using the Supabase Dashboard
+## Configure a custom domain using the Supabase dashboard
Follow the **Custom Domains** steps in the [General Settings](https://supabase.com/dashboard/project/_/settings/general) page in the Dashboard to set up a custom domain for your project.
-## Configure a Custom Domain using the Supabase CLI
+## Configure a custom domain using the Supabase CLI
This example assumes your Supabase project is `foobarbaz` with a corresponding API URL `foobarbaz.supabase.co` and configures a custom domain at `api.example.com`.
@@ -35,7 +35,7 @@ To get started:
Set up a CNAME record for `api.example.com`, resolving to `foobarbaz.supabase.co.`, with as low a TTL as possible.
-### Configure TXT Verification
+### Configure TXT verification
Use the `create` subcommand of the CLI to notify Supabase of your domain and retrieve TXT verification records:
@@ -89,7 +89,7 @@ Finally, you can use the `activate` subcommand to reconfigure your project:
supabase domains activate --project-ref foobarbaz --experimental
```
-## Remove a Custom Domain
+## Remove a custom domain
If you have a custom domain (`api.example.com`) set up for your Supabase project (ref `foobarbaz`, with assigned endpoints at `foobarbaz.supabase.co`), and would like to go back to using the Supabase-provisioned endpoints (`foobarbaz.supabase.co`), you can use the `delete` subcommand:
@@ -99,7 +99,7 @@ supabase domains delete --project-ref foobarbaz --experimental
As with the final activation stage of the process for setting up a custom domain, you'll need to update any references in your client code and OAuth providers from the custom domain to the Supabase-provisioned endpoints.
-## Vanity Subdomains
+## Vanity subdomains
Vanity Subdomains allow you to present a basic branded experience, compared to custom domains. They allow you to host your services at a custom subdomain on Supabase (e.g., `my-example-brand.supabase.co`) instead of the default, randomly-assigned `foobarbaz.supabase.co`.
@@ -110,7 +110,7 @@ To get started:
1. Ensure that you have [Owner or Admin permissions](/docs/guides/platform/access-control#manage-team-members) for the project you'd like to set up a vanity subdomain for.
1. Ensure that your organization is on a paid plan (Pro/Team/Enterprise plan) in the [Billing page of the Dashboard](https://supabase.com/dashboard/org/_/billing).
-## Configure a Vanity Subdomain
+## Configure a vanity subdomain
This example assumes your Supabase project is `foobarbaz` with a corresponding API URL `foobarbaz.supabase.co` and configures a vanity subdomain at `my-example-brand.supabase.co`.
@@ -137,7 +137,7 @@ The `activate` subcommand can be used to initiate the activation:
supabase vanity-subdomains --project-ref fwmssjhjgszhnavvqxnt activate --desired-subdomain my-example-subdomain --experimental
```
-## Remove a Vanity Subdomain
+## Remove a vanity subdomain
If you have a vanity subdomain (`my-example-brand.supabase.co`) set up for your Supabase project (ref `foobarbaz`, with assigned endpoints at `foobarbaz.supabase.co`), and would like to go back to using the Supabase-provisioned endpoints (`foobarbaz.supabase.co`), you can use the `delete` subcommand:
diff --git a/apps/docs/pages/guides/platform/custom-postgres-config.mdx b/apps/docs/pages/guides/platform/custom-postgres-config.mdx
index c5888bf6a6e..d1eb38daf43 100644
--- a/apps/docs/pages/guides/platform/custom-postgres-config.mdx
+++ b/apps/docs/pages/guides/platform/custom-postgres-config.mdx
@@ -14,13 +14,13 @@ Custom Postgres Config gives you advanced control over your database. Using it t
</Admonition>
-## Custom Postgres Config
+## Custom Postgres config
While most Postgres parameters can be configured from [within SQL](https://www.postgresql.org/docs/current/config-setting.html#CONFIG-SETTING-SQL-COMMAND-INTERACTION), some parameters must either be set using a config file, or require superuser access. Custom Postgres Config allows you to configure such parameters.
From the perspective of Postgres, config overrides will show up in the global configuration file. Role or database specific configuration could override them for some scenarios; please refer to the [Postgres docs](https://www.postgresql.org/docs/current/) on each parameter for additional details.
-### Supported Parameters
+### Supported parameters
The following parameters are available for overrides:
@@ -74,7 +74,7 @@ export const Page = ({ children }) => <Layout meta={meta} children={children} />
export default Page
-## Pooler Config
+## Pooler config
You can also [customize some parameters](https://supabase.com/dashboard/project/_/settings/database) for the Connection Pooler:
diff --git a/apps/docs/pages/guides/platform/database-size.mdx b/apps/docs/pages/guides/platform/database-size.mdx
index 503bb3c79ae..a74b7c1a6b1 100644
--- a/apps/docs/pages/guides/platform/database-size.mdx
+++ b/apps/docs/pages/guides/platform/database-size.mdx
@@ -47,7 +47,7 @@ Supabase projects have automatic vacuuming enabled, which ensures that these ope
It is possible to [fine-tune](https://www.percona.com/blog/2018/08/10/tuning-autovacuum-in-postgresql-and-autovacuum-internals/) the [autovacuum parameters](https://www.enterprisedb.com/blog/postgresql-vacuum-and-analyze-best-practice-tips), or [manually initiate](https://www.postgresql.org/docs/current/sql-vacuum.html) vacuum operations.
Running a manual vacuum after deleting large amounts of data from your DB could help reduce the database size reported by Postgres.
-### Preoccupied Space
+### Preoccupied space
New Supabase projects have a database size of ~40-60mb. This space includes pre-installed extensions, schemas, and default Postgres data. Additional database size is used when installing extensions, even if those extensions are inactive.
@@ -55,7 +55,7 @@ New Supabase projects have a database size of ~40-60mb. This space includes pre-
Supabase uses network-attached storage to balance performance with scalability. The behavior of your disk depends on your billing plan.
-### Paid Plan Behavior
+### Paid plan behavior
Projects on the Pro plan and above have auto-scaling Disk Storage.
@@ -79,7 +79,7 @@ A Supabase (or Postgres) update will "right-size" your disk based on the current
The maximum Disk Storage Size for the Pro plan is 16TB. If you need more than this, [contact us](https://forms.supabase.com/enterprise) to learn more about the Enterprise plan.
-### Free Plan Behavior
+### Free plan behavior
Free Plan projects enter [read-only](#read-only-mode) mode when you exceed the 500MB limit. Once in read-only mode, you have several options:
diff --git a/apps/docs/pages/guides/platform/enterprise-billing.mdx b/apps/docs/pages/guides/platform/enterprise-billing.mdx
index fc6d8ac936a..7033890c093 100644
--- a/apps/docs/pages/guides/platform/enterprise-billing.mdx
+++ b/apps/docs/pages/guides/platform/enterprise-billing.mdx
@@ -11,7 +11,7 @@ Enterprise customers can use Account-based Billing to simplify billing for multi
<Admonition type="note">This is for users considering or on Enterprise plan only.</Admonition>
-## Account-based Billing
+## Account-based billing
By default, each organization has a subscription and a plan. For our Enterprise customers, we offer Account-based Billing, so multiple organizations can point to a single Enterprise subscription, further simplifying billing.
@@ -19,7 +19,7 @@ By default, each organization has a subscription and a plan. For our Enterprise
With Account-based Billing, all organizations and projects within the subscription are recognized as Enterprise and your support tier or security addons propagate to all projects.
-## Monitoring Enterprise Usage
+## Monitoring Enterprise usage
For the usage-billing, we’ll sum up the usage from all organizations and projects. You can still break down the usage per organization or per project by going to the [organization billing page](/dashboard/org/_/billing).
diff --git a/apps/docs/pages/guides/platform/exhaust-disk-io.mdx b/apps/docs/pages/guides/platform/exhaust-disk-io.mdx
index 8801f28cc5b..53998339c04 100644
--- a/apps/docs/pages/guides/platform/exhaust-disk-io.mdx
+++ b/apps/docs/pages/guides/platform/exhaust-disk-io.mdx
@@ -7,13 +7,13 @@ export const meta = {
'Understand Disk IO, what can deplete your Disk Budget and what you can do about it.',
}
-## Understanding Disk IO and Disk Budget
+## Understanding disk IO and disk budget
Disk IO refers to two metrics: throughput in Megabits per Second and IOPS which are Input/Output Operations per Second. Depending on the compute add-on of your instance you will have [different baseline performances](https://supabase.com/docs/guides/platform/compute-add-ons#disk-io).
Smaller compute instances can burst and exceed their baseline performance for a short quota of time every day. This quota is represented as your Disk Budget and once your Disk Budget is consumed, your instance reverts back to its baseline performance. You can read more about this under [Bursting and Disk Budget](https://supabase.com/docs/guides/platform/compute-add-ons#bursting-and-disk-budget).
-## Depleting your Disk Budget
+## Depleting your disk budget
Running out of Disk Budget means that your instance is using more disk than its compute add-on can handle and essentially gets throttled. This could have a wide range of implications:
@@ -23,7 +23,7 @@ Running out of Disk Budget means that your instance is using more disk than its
- Disruption of internal Postgres processes such as [autovacuuming](https://supabase.com/docs/guides/platform/database-size#vacuum-operations)
- Your instance may become unresponsive
-## Monitor your Disk Budget
+## Monitor your disk budget
To check your Disk Budget on the Supabase Platform, head over to [Database Health in the Reports section](https://supabase.com/dashboard/project/_/reports/database).
diff --git a/apps/docs/pages/guides/platform/exhaust-ram.mdx b/apps/docs/pages/guides/platform/exhaust-ram.mdx
index 69139f07646..40989737c0f 100644
--- a/apps/docs/pages/guides/platform/exhaust-ram.mdx
+++ b/apps/docs/pages/guides/platform/exhaust-ram.mdx
@@ -15,11 +15,11 @@ High memory usage doesn't necessarily mean that your instance is at risk. Memory
</Admonition>
-## Base Memory Usage
+## Base memory usage
You may observe elevated memory usage even when your database has little to no load. Supabase requires a wide range of services other than Postgres to operate, which can result in an elevated base memory usage. Especially on the smallest compute instance that comes with 1 GB of RAM, it is not unusual for your project to have a base memory usage of ~50%.
-## Issues with High Memory Usage
+## Issues with high memory usage
Every Supabase project runs in its own dedicated virtual machine. Your instance will have a different set of hardware provisioned depending on your [compute add-on](https://supabase.com/docs/guides/platform/compute-add-ons). Depending on your workload, your compute hardware may not be suitable and can result in high RAM usage.
diff --git a/apps/docs/pages/guides/platform/going-into-prod.mdx b/apps/docs/pages/guides/platform/going-into-prod.mdx
index eae61f7fd31..b651e6b6658 100644
--- a/apps/docs/pages/guides/platform/going-into-prod.mdx
+++ b/apps/docs/pages/guides/platform/going-into-prod.mdx
@@ -53,12 +53,12 @@ After developing your project and deciding it's Production Ready, you should run
- Point in Time Recovery (PITR) allows a project to be backed up at much shorter intervals. This provides users an option to restore to any chosen point of up to seconds in granularity. In terms of Recovery Point Objective (RPO), Daily Backups would be suitable for projects willing to lose up to 24 hours worth of data. If a lower RPO is required, enable PITR.
- Upgrading to the Supabase Pro plan will give you [access to our support team](https://supabase.com/dashboard/support/new).
-## Rate Limiting, Resource Allocation, & Abuse Prevention
+## Rate limiting, resource allocation, & abuse prevention
- Supabase employs a number of safeguards against bursts of incoming traffic to prevent abuse and help maximize stability across the platform
- If you're expecting high load events including production launches or heavy load testing, or prolonged high resource usage please give us at least 2 weeks notice. You can do this by opening a ticket via the [support form](https://supabase.com/dashboard/support/new).
-### Auth Rate Limits
+### Auth rate limits
- The table below shows the rate limit quotas on the following authentication endpoints. You can configure the auth rate limits for your project [here](/dashboard/project/_/auth/rate-limits).
@@ -73,16 +73,16 @@ After developing your project and deciding it's Production Ready, you should run
| Token refresh requests | `/auth/v1/token` | IP Address | 1800 requests per hour (with bursts up to 30 requests) |
| Create or Verify an MFA challenge | `/auth/v1/factors/:id/challenge` `/auth/v1/factors/:id/verify` | IP Address | 15 requests per minute (with bursts up to 30 requests) |
-### Realtime Quotas
+### Realtime quotas
- Review the [Realtime quotas](/docs/guides/realtime/quotas).
- If you need quotas increased you can always [contact support](https://supabase.com/dashboard/support/new).
-### Abuse Prevention
+### Abuse prevention
- Supabase provides CAPTCHA protection on the signup, sign-in and password reset endpoints. Please refer to [our guide](/docs/guides/auth/auth-captcha) on how to protect against abuse using this method.
-### Email Link Validity
+### Email link validity
- When working with enterprise systems, email scanners may scan and make a `GET` request to the reset password link or sign up link in your email. Since links in Supabase Auth are single use, a user who opens an email post-scan to click on a link will receive an error. To get around this problem,
consider altering the email template to replace the original magic link with a link to a domain you control. The domain can present the user with a "Sign-in" button which redirect the user to the original magic link URL when clicked.
diff --git a/apps/docs/pages/guides/platform/http-status-codes.mdx b/apps/docs/pages/guides/platform/http-status-codes.mdx
index abe9e9cf7ed..102e59af7d5 100644
--- a/apps/docs/pages/guides/platform/http-status-codes.mdx
+++ b/apps/docs/pages/guides/platform/http-status-codes.mdx
@@ -8,35 +8,35 @@ export const meta = {
The Supabase platform offers several HTTP APIs for each project. These APIs can use the status codes to indicate the state of the project, and the request being processed. The status codes returned for requests can be access via the [logs explorer](../platform/logs#logs-explorer).
-## 2XX Success
+## 2XX success
2XX status codes indicate that the request was processed successfully.
-## 3XX Redirects
+## 3XX redirects
3XX status codes indicate that the client must initiate another course of action to have the request processed successfully. The most popular usage of 3XX codes is to redirect the client to a different location.
-## 4XX Client Errors
+## 4XX client errors
4XX status codes indicate an issue on the client's end with the request being made. These could include missing or invalid auth information, a malformed request, making too many requests in too short a time period ("rate limiting"), or a network issue on the client's end.
-## 5XX Server or Project Errors
+## 5XX server or project errors
5XX status codes indicate that the project was unable to process the request successfully, but not because of an issue with the client's request.
5XX status codes can be the result of the project not having enough [compute](/docs/guides/platform/compute-add-ons) to process a complex request being made by a client or not being able to keep up with the volume of requests made against the project.
-### 54X Project Errors
+### 54X project errors
54X status codes are custom codes used by the Supabase platform to indicate the state of the project.
-#### 540 Project Paused
+#### 540 project paused
The project the request was being made against has been paused. The project cannot process requests until it is un-paused by the owner.
Free-plan projects may be paused due to inactivity, on request by the owner, or in rare instances, due to abuse.
-#### 544 Project API Gateway Timeout
+#### 544 project API gateway timeout
The request is not completed within the configured time limit.
diff --git a/apps/docs/pages/guides/platform/logs.mdx b/apps/docs/pages/guides/platform/logs.mdx
index 94b559943cd..d449fe3b2ab 100644
--- a/apps/docs/pages/guides/platform/logs.mdx
+++ b/apps/docs/pages/guides/platform/logs.mdx
@@ -9,7 +9,7 @@ export const meta = {
The Supabase Platform includes a Logs Explorer that allows log tracing and debugging. Log retention is based on your [project's pricing plan](https://supabase.com/pricing).
-## Product Logs
+## Product logs
Supabase provides a logging interface specific to each product. You can use simple regular expressions for keywords and patterns to search log event messages. You can also export and download the log events matching your query as a spreadsheet.
@@ -88,7 +88,7 @@ Edge Function log messages have a max length of 10,000 characters. If you try to
---
-## Logging Postgres Queries
+## Logging Postgres queries
By default, only DDL statements are logged for new Supabase projects.
@@ -155,7 +155,7 @@ If any permission errors are encountered when executing `alter role postgres ...
</Admonition>
-## Logging Realtime Connections
+## Logging realtime connections
Realtime doesn't log new WebSocket connections or Channel joins by default. Enable connection logging per client by including an `info` `log_level` parameter when instantiating the Supabase client.
@@ -190,7 +190,7 @@ You can access the following logs from the **Sources** drop-down:
The Logs Explorer uses BigQuery and supports all [available SQL functions and operators](https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators).
-### Timestamp Display and Behavior
+### Timestamp display and behavior
Each log entry is stored with a `timestamp` as a `TIMESTAMP` data type. Use the appropriate [timestamp function](https://cloud.google.com/bigquery/docs/reference/standard-sql/timestamp_functions#timestamp) to utilize the `timestamp` field in a query.
@@ -206,7 +206,7 @@ select datetime(timestamp) from ....
-- 2022-09-27T09:17:10.439Z
```
-### Unnesting Arrays
+### Unnesting arrays
Each log event stores metadata an array of objects with multiple levels, and can be seen by selecting single log events in the Logs Explorer. To query arrays, use `unnest()` on each array field and add it to the query as a join. This allows you to reference the nested objects with an alias and select their individual fields.
@@ -243,11 +243,11 @@ This allows you to select the `method` and `cf_ipcountry` columns. In JS dot not
- `metadata[].request[].method`
- `metadata[].request[].headers[].cf_ipcountry`
-### LIMIT and Result Row Limitations
+### LIMIT and result row limitations
The Logs Explorer has a maximum of 1000 rows per run. Use `LIMIT` to optimize your queries by reducing the number of rows returned further.
-### Best Practices
+### Best practices
1. Include a filter over **timestamp**
@@ -278,7 +278,7 @@ from
cross join unnest(m.request) as r;
```
-### Examples and Templates
+### Examples and templates
The Logs Explorer includes **Templates** (available in the Templates tab or the dropdown in the Query tab) to help you get started.
@@ -294,7 +294,7 @@ from
where h.x_real_ip is not null and r.method = "GET";
```
-### Log Source Reference
+### Log source reference
Refer to the full field reference for each available source below. Do note that in order to access each nested key, you would need to perform the [necessary unnesting joins](#unnesting-arrays)
diff --git a/apps/docs/pages/guides/platform/maturity-model.mdx b/apps/docs/pages/guides/platform/maturity-model.mdx
index b86279f3953..525a19619be 100644
--- a/apps/docs/pages/guides/platform/maturity-model.mdx
+++ b/apps/docs/pages/guides/platform/maturity-model.mdx
@@ -22,7 +22,7 @@ Resources:
- [Managing access on the Dashboard](/docs/guides/platform/access-control)
- [PGAudit for Postgres](/docs/guides/database/extensions/pgaudit)
-## In Production
+## In production
Once your application is live, you should never change your database using the Dashboard. Supabase provides various [access levels](https://supabase.com/docs/guides/platform/access-control) for the Dashboard that can help enforce this. Some other important things to consider at this point include:
diff --git a/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx b/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx
index 5da5d2b54af..f67dcbad761 100644
--- a/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx
+++ b/apps/docs/pages/guides/platform/migrating-and-upgrading-projects.mdx
@@ -14,7 +14,7 @@ In some cases, access to new features require upgrading or migrating your Supaba
There are a few methods available to upgrade your project.
-### pg_upgrade
+### `pg_upgrade`
<Admonition type="note">
@@ -31,7 +31,7 @@ Additionally, if a pg_upgrade upgrade should fail, your original DB would be bro
As a rough rule of thumb, pg_upgrade operates at ~100mbps (when executing an upgrade on your data). Using the size of your database, you can use this metric to derive an approximate sense of the downtime window necessary for the upgrade. During this window, you should plan for your DB and associated services to be unavailable.
-### Pause + Restore
+### Pause + restore
<Admonition type="note">
@@ -50,7 +50,7 @@ Note that a pause + restore upgrade involves tearing down your project's resourc
Regardless of the upgrade method, a few caveats apply:
-#### Logical Replication
+#### Logical replication
If you are using logical replication, the replication slots will not be preserved by the upgrade process. You will need to manually recreate them after the upgrade with the method `pg_create_logical_replication_slot`. Refer to the Postgres docs on [Replication Management Functions](https://www.postgresql.org/docs/current/functions-admin.html#FUNCTIONS-REPLICATION) for more details about the method.
@@ -65,7 +65,7 @@ Breaking changes are generally only present in major version upgrades of Postgre
If you are upgrading from a significantly older version, you will need to consider the release notes for any intermediary releases as well.
-#### Disk Sizing
+#### Disk sizing
When upgrading, the Supabase platform will "right-size" your disk based on the current size of the database. For example, if your database is 100GB in size, and you have a 200GB disk, the upgrade will reduce the disk size to 120GB (1.2x the size of your database).
@@ -203,7 +203,7 @@ supabase db diff --linked --schema auth,storage > changes.sql
Replication for Realtime is disabled for all tables in your new project. On the [Replication](https://supabase.com/dashboard/project/_/database/replication) page in the Dashboard, select your new project and enable replication for tables that were enabled in your old project.
-### Migrate Storage objects
+### Migrate storage objects
The new project has the old project's Storage buckets, but the Storage objects need to be migrated manually. Use this script to move storage objects from one project to another.
diff --git a/apps/docs/pages/guides/platform/multi-factor-authentication.mdx b/apps/docs/pages/guides/platform/multi-factor-authentication.mdx
index 50222529ce6..68eca8f210c 100644
--- a/apps/docs/pages/guides/platform/multi-factor-authentication.mdx
+++ b/apps/docs/pages/guides/platform/multi-factor-authentication.mdx
@@ -15,7 +15,7 @@ This guide is for adding MFA to your Supabase user account. If you want to enabl
Multi-factor authentication (MFA) adds an additional layer of security to your user account, by requiring a second factor to verify your user identity. Supabase allows users to enable MFA on their account and set it as a requirement for subsequent logins.
-## Supported Authentication Factors
+## Supported authentication factors
Currently, Supabase supports adding a unique time-based one-time password (TOTP) to your user account as an additional security factor. You can manage your TOTP factor using apps such as 1Password, Authy, Google Authenticator or Apple's Keychain.
diff --git a/apps/docs/pages/guides/platform/oauth-apps/build-a-supabase-integration.mdx b/apps/docs/pages/guides/platform/oauth-apps/build-a-supabase-integration.mdx
index 75235a2259f..6cbd24a94b5 100644
--- a/apps/docs/pages/guides/platform/oauth-apps/build-a-supabase-integration.mdx
+++ b/apps/docs/pages/guides/platform/oauth-apps/build-a-supabase-integration.mdx
@@ -10,7 +10,7 @@ export const meta = {
Using OAuth2.0 you can retrieve an access and refresh token that grant your application full access to the [Management API](https://supabase.com/docs/reference/api/introduction) on behalf of the user.
-## Create an OAuth App
+## Create an OAuth app
1. In your organization's settings, navigate to the [**OAuth Apps**](/dashboard/org/_/apps) tab.
2. In the upper-right section of the page, click **Add application**.
@@ -124,7 +124,7 @@ import { SupabaseManagementAPI } from 'supabase-management-js'
const client = new SupabaseManagementAPI({ accessToken: '<access token>' })
```
-## Integration Recommendations
+## Integration recommendations
There are a couple common patterns you can consider adding to your integration that can facilitate a great user experience.
diff --git a/apps/docs/pages/guides/platform/oauth-apps/oauth-scopes.mdx b/apps/docs/pages/guides/platform/oauth-apps/oauth-scopes.mdx
index 2dba7d4b96b..05eefdb29ed 100644
--- a/apps/docs/pages/guides/platform/oauth-apps/oauth-scopes.mdx
+++ b/apps/docs/pages/guides/platform/oauth-apps/oauth-scopes.mdx
@@ -17,7 +17,7 @@ Scopes restrict access to the specific [Supabase Management API endpoints](/docs
Scopes are set when you [create an OAuth app](/docs/guides/platform/oauth-apps/build-a-supabase-integration#create-an-oauth-app) in the Supabase Dashboard.
-## Available Scopes
+## Available scopes
| Name | Type | Description |
| ---------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
diff --git a/apps/docs/pages/guides/platform/org-based-billing.mdx b/apps/docs/pages/guides/platform/org-based-billing.mdx
index 8842db98e5e..9bd3363dd56 100644
--- a/apps/docs/pages/guides/platform/org-based-billing.mdx
+++ b/apps/docs/pages/guides/platform/org-based-billing.mdx
@@ -29,23 +29,23 @@ The Supabase Platform has "organizations" and "projects". An organization may co
Organization-based Billing was introduced on September 4th 2023. We are migrating all projects to this new structure. Read the [announcement](https://supabase.com/blog/organization-based-billing) for more context.
-### Legacy Billing (Project-based)
+### Legacy billing (project-based)
If your organization was created before September 4th 2023, each project had an individual subscription, a plan and addons.
![Billing Before](/docs/img/guides/platform/org-billing-before.png)
-### Current Billing (Organization-based)
+### Current billing (organization-based)
With Organization-based Billing, each organization only has a single subscription with a single plan (Free, Pro, Team or Enterprise). Project addons such as [Compute](/docs/guides/platform/compute-add-ons), [Custom Domains](/docs/guides/platform/custom-domains) and [PITR](/docs/guides/platform/backups#point-in-time-recovery) are still configured per project and are added to your organization subscription.
![Billing: After](/docs/img/guides/platform/org-billing-after.png)
-## Unified Egress
+## Unified egress
Each organization receives a total egress quota (eg. 250GB on the Pro plan) which can be used for anything - Storage, Realtime, Auth, Functions or Database.
-### Included Egress Quota
+### Included egress quota
Each plan includes a quota for unified egress, which is applied to your entire organization.
@@ -56,7 +56,7 @@ Each plan includes a quota for unified egress, which is applied to your entire o
| Team | 250 GB | $0.09 per GB |
| Enterprise | Custom | Custom |
-### Egress Dashboards
+### Egress dashboards
You can see a breakdown of the different types of egress on your [organization usage page](https://supabase.com/dashboard/org/_/usage).
@@ -70,17 +70,17 @@ You can see a breakdown of the different types of egress on your [organization u
/>
</div>
-### Legacy Egress
+### Legacy egress
Under the old system, you had different quotas for each service. i.e. on the Pro plan, you had 50GB of database egress and 200GB of storage egress included. If you weren't using storage, you'd miss out on the included egress. The new system provides you more egress in every scenario.
-## Quotas and Features
+## Quotas and features
Quotas and features are applied to your entire organization, independent of how many projects you launch within that organization. For billing purposes, we sum the usage across all projects in a monthly invoice.
Upgrading your organization to a paid plan means that you unlock the benefits of the paid plan for **all** projects within that organization - for example, no projects in your "Pro" organization will be paused. See [pricing page](https://supabase.com/pricing) for details on all plans.
-### Usage Items
+### Usage items
| Metric | Free | Pro/Team | Enterprise |
| -------------------------- | ------------------------ | ------------------------------------------- | ---------- |
@@ -133,7 +133,7 @@ With Legacy Billing, when you upgraded the [Compute Add-On](/docs/guides/platfor
Supabase provides two "Free organizations". Each organization can run a `Starter` instance for free. This is a great way to get started with Supabase and try out the platform.
-### Compute Credits
+### Compute credits
Paid plans come with $10 of Compute Credits to cover one Starter instance or parts of any other [Compute Add-On](/docs/guides/platform/compute-add-ons).
@@ -145,7 +145,7 @@ Additionally, Compute Credits reset every month and do not accumulate, in case y
With Legacy Billing, you used to pay $25 for every single Pro plan project in an organization. Previously, we gave you a free “Starter” instance on paid plans - we're now giving you $10 in Compute Credits instead, to cover the first instance. You end up not paying extra for the first project inside your paid plan organization - just like before. In case you add a Compute Add-On to your first project, you also end up paying exactly the same as before.
-## Legacy vs Organization-based Billing
+## Legacy vs organization-based billing
If you are using Legacy Billing and have a single project in your organization, there is no change in pricing or quota. Here are some examples on how the new Organization-based Billing migration affects you.
diff --git a/apps/docs/pages/guides/platform/performance.mdx b/apps/docs/pages/guides/platform/performance.mdx
index 9011c1ae4cd..9a17faed208 100644
--- a/apps/docs/pages/guides/platform/performance.mdx
+++ b/apps/docs/pages/guides/platform/performance.mdx
@@ -8,7 +8,7 @@ export const meta = {
The Supabase platform automatically optimizes your Postgres database to take advantage of the compute resources of the plan your project is on. However, these optimizations are based on assumptions about the type of workflow the project is being utilized for, and it is likely that better results can be obtained by tuning the database for your particular workflow.
-## Examining Query Performance
+## Examining query performance
Unoptimized queries are a major cause of poor database performance. The techniques on this page can help you identify and understand queries that take the most time and resources from your database.
@@ -24,7 +24,7 @@ Database performance is a large topic and many factors can contribute. Some of t
Thankfully there are solutions to all these issues, which we will cover in the following sections.
-### Postgres Cumulative Statistics system
+### Postgres cumulative statistics system
Postgres collects data about its own operations using the [cumulative statistics system](https://www.postgresql.org/docs/current/monitoring-stats.html). In addition to this, every Supabase project has the [pg_stat_statements extension](/docs/guides/database/extensions/pg_stat_statements) enabled by default. This extension records query execution performance details and is the best way to find inefficient queries. This information can be combined with the Postgres query plan analyzer to develop more efficient queries.
diff --git a/apps/docs/pages/guides/platform/read-replicas.mdx b/apps/docs/pages/guides/platform/read-replicas.mdx
index 6e8b7fe9505..5825b38a676 100644
--- a/apps/docs/pages/guides/platform/read-replicas.mdx
+++ b/apps/docs/pages/guides/platform/read-replicas.mdx
@@ -45,7 +45,7 @@ To address this, Postgres does provide tunable configuration, like `wal_keep_siz
In this replication method, the primary continuously buffers WAL changes to a local file and then sends the file to the read replica. If multiple read replicas are present, files could also be sent to an intermediary location accessible by all. The read replica then reads the WAL files and applies those changes. There is higher replication lag than streaming replication since the primary buffers the changes locally first. It also means there is a small chance that WAL changes do not reach read replicas if the primary goes down before the file is transferred. In these cases, if the primary fails a replica using streaming replication would (in most cases) be more up-to-date than a replica using file-based log shipping.
-### File-based log shipping 🤝 Streaming replication
+### File-based log shipping 🤝 streaming replication
<figure className="max-w-[700px] mx-auto">
<Image
diff --git a/apps/docs/pages/guides/platform/ssl-enforcement.mdx b/apps/docs/pages/guides/platform/ssl-enforcement.mdx
index 61ea6fa8ad5..92f0bdeea14 100644
--- a/apps/docs/pages/guides/platform/ssl-enforcement.mdx
+++ b/apps/docs/pages/guides/platform/ssl-enforcement.mdx
@@ -15,7 +15,7 @@ Your Supabase project supports connecting to the Postgres DB without SSL enabled
SSL enforcement only applies to connections to both Postgres and PgBouncer ("Connection Pooler"); all HTTP APIs offered by Supabase (e.g., PostgREST, Storage, Auth) automatically enforce SSL on all incoming connections.
-## Manage SSL enforcement via the Dashboard
+## Manage SSL enforcement via the dashboard
SSL enforcement can be configured via the "Enforce SSL on incoming connections" setting under the SSL Configuration section in [Database Settings page](https://supabase.com/dashboard/project/_/settings/database) of the dashboard.
diff --git a/apps/docs/pages/guides/platform/sso/azure.mdx b/apps/docs/pages/guides/platform/sso/azure.mdx
index ce38b1c3252..e1f2c2b2a7b 100644
--- a/apps/docs/pages/guides/platform/sso/azure.mdx
+++ b/apps/docs/pages/guides/platform/sso/azure.mdx
@@ -14,7 +14,7 @@ This feature is only available on the Teams and Enterprise tiers. Please contact
Supabase supports single sign-on (SSO) using Microsoft Azure AD.
-## Step 1: Add and register an Enterprise Application [#add-and-register-enterprise-application]
+## Step 1: Add and register an Enterprise application [#add-and-register-enterprise-application]
Open up the [Azure Active Directory](https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Overview) dashboard for your Azure account.
@@ -49,7 +49,7 @@ Supabase only supports the SAML 2.0 protocol for Single Sign-On, which is an ind
![Azure AD console: Supabase application, Single sign-on configuration screen, selected SAML](/docs/img/sso-azure-step-05.png)
-## Step 6: Upload SAML-based Sign-on metadata file [#upload-saml-metadata]
+## Step 6: Upload SAML-based sign-on metadata file [#upload-saml-metadata]
First you need to download Supabase's SAML metadata file. Click the button below to initiate a download of the file.
diff --git a/apps/docs/pages/guides/platform/sso/gsuite.mdx b/apps/docs/pages/guides/platform/sso/gsuite.mdx
index 146ad6038e6..ea485cbb8db 100644
--- a/apps/docs/pages/guides/platform/sso/gsuite.mdx
+++ b/apps/docs/pages/guides/platform/sso/gsuite.mdx
@@ -13,7 +13,7 @@ This feature is only available on the Teams and Enterprise tiers. Please contact
Supabase supports single sign-on (SSO) using Google Workspace (formerly known as GSuite).
-## Step 1: Open the Google Workspace Web and mobile apps console [#google-workspace-console]
+## Step 1: Open the Google Workspace web and mobile apps console [#google-workspace-console]
![Google Workspace: Web and mobile apps admin console](/docs/img/sso-gsuite-step-01.png)
@@ -53,7 +53,7 @@ Fill out these service provider details on the next screen.
![Google Workspace: Web and mobile apps admin console, Add custom SAML, Service provider details screen](/docs/img/sso-gsuite-step-05.png)
-## Step 6: Configure Attribute mapping [#configure-attribute-mapping]
+## Step 6: Configure attribute mapping [#configure-attribute-mapping]
Attribute mappings allow Supabase to get information about your Google Workspace users on each login.
diff --git a/apps/docs/pages/guides/platform/troubleshooting.mdx b/apps/docs/pages/guides/platform/troubleshooting.mdx
index 755a63f0124..4e6523932ae 100644
--- a/apps/docs/pages/guides/platform/troubleshooting.mdx
+++ b/apps/docs/pages/guides/platform/troubleshooting.mdx
@@ -8,7 +8,7 @@ export const meta = {
Learn how to diagnose and fix common issues with your Supabase project.
-## HTTP API Issues
+## HTTP API issues
Symptoms:
@@ -33,7 +33,7 @@ Some common solutions for this issue are:
If your [Disk IO budget](../platform/compute-add-ons#disk-io) has been drained, you will need to either wait for it to be replenished the next day, or upgrade to a larger compute add-on to increase the budget available to your project.
-## Unable to connect to your Supabase Project
+## Unable to connect to your Supabase project
Symptom: You're unable to connect to your Postgres database directly, but can open the Project in the [Supabase Dashboard](https://supabase.com/dashboard/project/_/).
diff --git a/apps/docs/pages/guides/realtime/architecture.mdx b/apps/docs/pages/guides/realtime/architecture.mdx
index ff43225cc60..57b94670229 100644
--- a/apps/docs/pages/guides/realtime/architecture.mdx
+++ b/apps/docs/pages/guides/realtime/architecture.mdx
@@ -27,7 +27,7 @@ Channels are implemented using [Phoenix Channels](https://hexdocs.pm/phoenix/cha
The PG2 adapter utilizes Erlang [process groups](https://www.erlang.org/docs/18/man/pg2.html) to implement the PubSub model where a publisher can send messages to many subscribers.
-## Global Cluster
+## Global cluster
Presence is an in-memory key-value store backed by a CRDT. When a user is connected to the cluster the state of that user is sent to all connected Realtime nodes.
@@ -41,7 +41,7 @@ Thanks to the Realtime cluster, you (an amazing Supabase user) don't have to thi
If you're using Broadcast, Presence, or streaming database changes, messages will always get to your users via the shortest path possible.
-## Connecting to a Database
+## Connecting to a database
Realtime allows you to listen to changes from your Postgres database. When a new client connects to Realtime and initializes the `postgres_changes` Realtime Extension the cluster will connect to your Postgres database and start streaming changes from a replication slot.
diff --git a/apps/docs/pages/guides/realtime/bring-your-own-database.mdx b/apps/docs/pages/guides/realtime/bring-your-own-database.mdx
index 5e87c26daf4..5f33c14b09e 100644
--- a/apps/docs/pages/guides/realtime/bring-your-own-database.mdx
+++ b/apps/docs/pages/guides/realtime/bring-your-own-database.mdx
@@ -24,7 +24,7 @@ Realtime relies on the `wal2json` Postgres extension to format database changes
Postgres databases managed by AWS RDS and Google Cloud SQL should already have `wal2json` installed.
Please check to make sure this is indeed the case with your Postgres database.
-## Logical Replication Configuration
+## Logical replication configuration
Realtime relies on Postgres' logical replication functionality to get database changes. Please enable logical replication on your database and configure the following settings:
@@ -33,7 +33,7 @@ Realtime relies on Postgres' logical replication functionality to get database c
See [Compute Add-ons](/docs/guides/platform/compute-add-ons#postgres-replication-slots-and-wal-senders) for the recommended `max_replication_slots` at different instance sizes based on the values we use for our own cloud offering.
-## Realtime Database Setup
+## Realtime database setup
### `supabase_realtime` Publication
diff --git a/apps/docs/pages/guides/realtime/broadcast.mdx b/apps/docs/pages/guides/realtime/broadcast.mdx
index bc8d8f1fa20..a541548ca05 100644
--- a/apps/docs/pages/guides/realtime/broadcast.mdx
+++ b/apps/docs/pages/guides/realtime/broadcast.mdx
@@ -66,7 +66,7 @@ Go to your Supabase project's [API Settings](https://supabase.com/dashboard/proj
</TabPanel>
</Tabs>
-### Listening to Broadcast messages
+### Listening to broadcast messages
You can provide a callback for the `broadcast` channel to receive message. In this example we will receive any `broadcast` messages in `room-1`:
@@ -134,7 +134,7 @@ You can provide a callback for the `broadcast` channel to receive message. In th
</TabPanel>
</Tabs>
-### Sending Broadcast messages
+### Sending broadcast messages
<Tabs
scrollable
diff --git a/apps/docs/pages/guides/realtime/concepts.mdx b/apps/docs/pages/guides/realtime/concepts.mdx
index 3ee007a1f31..60c8c31f1e7 100644
--- a/apps/docs/pages/guides/realtime/concepts.mdx
+++ b/apps/docs/pages/guides/realtime/concepts.mdx
@@ -59,7 +59,7 @@ Each client maintains their own state, and this is then combined into a "shared
When a new client subscribes to a channel, it will immediately receive the channel's latest state in a single message because the state is held by the Realtime server.
-## Choosing between Broadcast and Presence
+## Choosing between broadcast and presence
We recommend using Broadcast by default, and then Presence when required. Presence utilizes an in-memory conflict-free replicated data type (CRDT) to track and synchronize shared state in an eventually consistent manner. It computes the difference between existing state and new state changes and sends the necessary updates to clients via Broadcast. This is computationally heavy, so you should use it sparingly. If you use Presence, it's best to throttle your changes so that you are sending updates less frequently.
diff --git a/apps/docs/pages/guides/realtime/guides/client-side-throttling.mdx b/apps/docs/pages/guides/realtime/guides/client-side-throttling.mdx
index 39a74d45a3e..0db31c3c971 100644
--- a/apps/docs/pages/guides/realtime/guides/client-side-throttling.mdx
+++ b/apps/docs/pages/guides/realtime/guides/client-side-throttling.mdx
@@ -66,7 +66,7 @@ By default the Supabase clients throttles messages to 10 messages per-second (1
Each client has their own throttling behavior. If you instantiate two clients, by default you would send 20 messages per-second to your project.
-## Project Quotas
+## Project quotas
Each Broadcast and Presence message counts towards your [Project Quotas](/docs/guides/realtime/quotas).
diff --git a/apps/docs/pages/guides/realtime/postgres-changes.mdx b/apps/docs/pages/guides/realtime/postgres-changes.mdx
index f99b82420b6..8072df8b451 100644
--- a/apps/docs/pages/guides/realtime/postgres-changes.mdx
+++ b/apps/docs/pages/guides/realtime/postgres-changes.mdx
@@ -1351,11 +1351,11 @@ myChannel.updateAuth("fresh-token")
## Limitations
-### Spaces in Table Names
+### Spaces in table names
Realtime currently does not work when table names contain spaces.
-### Database Instance and Realtime Performance
+### Database instance and realtime performance
Realtime systems usually require forethought because of their scaling dynamics. For the `Postgres Changes` feature, every change event must be checked to see if the subscribed user has access. For instance, if you have 100 users subscribed to a table where you make a single insert, it will then trigger 100 "reads": one for each user.
diff --git a/apps/docs/pages/guides/realtime/presence.mdx b/apps/docs/pages/guides/realtime/presence.mdx
index a59bd5afdda..457d73c9fc0 100644
--- a/apps/docs/pages/guides/realtime/presence.mdx
+++ b/apps/docs/pages/guides/realtime/presence.mdx
@@ -259,7 +259,7 @@ untrackPresence()
You can pass configuration options while initializing the Supabase Client.
-### Presence Key
+### Presence key
By default, Presence will generate a unique `UUIDv1` key on the server to track a client channel's state. If you prefer, you can provide a custom key when creating the channel. This key should be unique among clients.
diff --git a/apps/docs/pages/guides/realtime/protocol.mdx b/apps/docs/pages/guides/realtime/protocol.mdx
index e64e41dc2d2..113ebf0fa5d 100644
--- a/apps/docs/pages/guides/realtime/protocol.mdx
+++ b/apps/docs/pages/guides/realtime/protocol.mdx
@@ -100,7 +100,7 @@ The heartbeat message should be sent every 30 seconds to avoid a connection time
}
```
-## Access Token
+## Access token
To update the access token, you need to send to the server a message specifying a new token in the `payload.access_token` value.
@@ -161,7 +161,7 @@ Structure of the broadcast event
The Presence events allow clients to monitor the online status of other clients in real-time.
-### State Update
+### State update
After joining, the server sends a `presence_state` message to a client with presence information. The payload field contains keys in UUID format, where each key represents a client and its value is a JSON object containing information about that client.
@@ -176,7 +176,7 @@ After joining, the server sends a `presence_state` message to a client with pres
}
```
-### Diff Update
+### Diff update
After a change to the presence state, such as a client joining or leaving, the server sends a presence_diff message to update the client's view of the presence state. The payload field contains two keys, `joins` and `leaves`, which represent clients that have joined and left, respectively. The values associated with each key are UUIDs of the clients.
diff --git a/apps/docs/pages/guides/realtime/quotas.mdx b/apps/docs/pages/guides/realtime/quotas.mdx
index c26e1ad65cf..3001ea5a279 100644
--- a/apps/docs/pages/guides/realtime/quotas.mdx
+++ b/apps/docs/pages/guides/realtime/quotas.mdx
@@ -15,7 +15,7 @@ Upgrade your plan to increase your quotas. Without a spend cap, or on an Enterpr
</Admonition>
-## Quotas by Plan
+## Quotas by plan
| | Free | Pro | Pro (no spend cap) | Team | Enterprise |
| -------------------------------------------------------------------------------------- | ----- | ----- | ------------------ | ------ | ---------- |
@@ -34,7 +34,7 @@ Beyond the Free and Pro plan you can customize your quotas by [contacting suppor
Some basic WebSocket message throttling is implemented client-side. See the [Throttling](/docs/guides/realtime/guides/client-side-throttling) guide for more details.
-## Quota Errors
+## Quota errors
When you exceed a quota, errors will appear in the backend logs and client-side messages in the WebSocket connection.
@@ -64,7 +64,7 @@ Too many Channel joins per second.
Clients will be disconnected if your project is generating too many messages per second. `supabase-js` will reconnect automatically when the message throughput decreases below your plan quota. An `event` is a WebSocket message delivered to, or sent from a client.
-## Postgres Changes Payload Quota
+## Postgres changes payload quota
When this quota is reached, the `new` and `old` record payloads only include the fields with a value size of less than or equal to 64 bytes.
diff --git a/apps/docs/pages/guides/resources.mdx b/apps/docs/pages/guides/resources.mdx
index 4a5814d2bd5..6b239c60396 100644
--- a/apps/docs/pages/guides/resources.mdx
+++ b/apps/docs/pages/guides/resources.mdx
@@ -63,7 +63,7 @@ export const meta = {
<div>
<div className="max-w-xl mb-6">
-### Postgres Resources
+### Postgres resources
</div>
diff --git a/apps/docs/pages/guides/resources/examples.mdx b/apps/docs/pages/guides/resources/examples.mdx
index 26abd28ce32..f72414c1358 100644
--- a/apps/docs/pages/guides/resources/examples.mdx
+++ b/apps/docs/pages/guides/resources/examples.mdx
@@ -13,7 +13,7 @@ We have a [set of examples](https://github.com/supabase/supabase/tree/master/exa
## Featured
-## Build a Twitter Clone with the Next.js App Router and Supabase
+## Build a Twitter clone with the Next.js App Router and Supabase
By [Jon Meyers](https://twitter.com/jonmeyers_io)
@@ -25,7 +25,7 @@ By [Jon Meyers](https://twitter.com/jonmeyers_io)
/>
</a>
-### Supabase Crash Course
+### Supabase crash course
By [Traversy Media](https://www.youtube.com/watch?v=7uKQBl9uZ00).
@@ -38,7 +38,7 @@ By [Traversy Media](https://www.youtube.com/watch?v=7uKQBl9uZ00).
></iframe>
</div>
-### Build an App With Supabase and Next.js
+### Build an app with Supabase and Next.js
By [@jlengstorf](https://twitter.com/jlengstorf) and [@jonmeyers_io](https://twitter.com/jonmeyers_io).
@@ -51,7 +51,7 @@ By [@jlengstorf](https://twitter.com/jlengstorf) and [@jonmeyers_io](https://twi
></iframe>
</div>
-### Is Supabase Legit
+### Is Supabase legit
By [Fireship](https://www.youtube.com/watch?v=WiwfiVdfRIc).
@@ -64,9 +64,9 @@ By [Fireship](https://www.youtube.com/watch?v=WiwfiVdfRIc).
></iframe>
</div>
-## Official Examples
+## Official examples
-### Todo List
+### Todo list
Build a basic Todo List with Supabase and your favorite frontend framework:
@@ -153,7 +153,7 @@ Build a basic Todo List with Supabase and your favorite frontend framework:
- Supabase Auth with React Native + Next.js (Monorepo) [Github](https://github.com/mateoguzmana/react-native-next-supabase-auth-monorepo)
- Supabase Auth with Nuxt3 [Github](https://github.com/zackha/supaAuth)
-### Blog Posts
+### Blog posts
- Realtime Subscriptions using Vue + Supabase. [Blog](https://dev.to/ftonato/realtime-subscriptions-using-vue-supabase-1e11)
- Creating a microblog using Vue + Supabase. [Blog](https://dev.to/ftonato/creating-a-microblog-using-vue-supabase-31p)
diff --git a/apps/docs/pages/guides/resources/migrating-to-supabase/amazon-rds.mdx b/apps/docs/pages/guides/resources/migrating-to-supabase/amazon-rds.mdx
index 3475d54251b..e9fa41f2b82 100644
--- a/apps/docs/pages/guides/resources/migrating-to-supabase/amazon-rds.mdx
+++ b/apps/docs/pages/guides/resources/migrating-to-supabase/amazon-rds.mdx
@@ -21,7 +21,7 @@ Supabase's core is Postgres, enabling the use of row-level security and providin
![Copying RDS credentials from AWS Management Console](/docs/img/guides/resources/migrating-to-supabase/amazon-rds/amazon-rds_credentials.png)
-## Retrieve your Supabase Host [#retrieve-supabase-host]
+## Retrieve your Supabase host [#retrieve-supabase-host]
1. If you're new to Supabase, [create a project](https://supabase.com/dashboard).
1. Go to the [Database settings](https://supabase.com/dashboard/project/_/settings/database) for your project in the Supabase Dashboard.
diff --git a/apps/docs/pages/guides/resources/migrating-to-supabase/heroku.mdx b/apps/docs/pages/guides/resources/migrating-to-supabase/heroku.mdx
index 1f498b78ea7..dc96741d70a 100644
--- a/apps/docs/pages/guides/resources/migrating-to-supabase/heroku.mdx
+++ b/apps/docs/pages/guides/resources/migrating-to-supabase/heroku.mdx
@@ -34,7 +34,7 @@ Alternatively, use the [Heroku to Supabase migration tool](https://migrate.supab
- User (`$HEROKU_USER`)
- Password (`$HEROKU_PASSWORD`)
-## Retrieve your Supabase Host [#retrieve-supabase-host]
+## Retrieve your Supabase host [#retrieve-supabase-host]
1. If you're new to Supabase, [create a project](https://supabase.com/dashboard).
1. Go to the [Database settings](https://supabase.com/dashboard/project/_/settings/database) for your project in the Supabase Dashboard.
diff --git a/apps/docs/pages/guides/resources/migrating-to-supabase/mssql.mdx b/apps/docs/pages/guides/resources/migrating-to-supabase/mssql.mdx
index 48434c16127..f954b12a454 100644
--- a/apps/docs/pages/guides/resources/migrating-to-supabase/mssql.mdx
+++ b/apps/docs/pages/guides/resources/migrating-to-supabase/mssql.mdx
@@ -7,7 +7,7 @@ export const meta = {
This guide aims to demonstrate the process of transferring your Microsoft SQL Server database to Supabase's PostgreSQL database. Supabase is a powerful and open-source platform offering a wide range of backend features, including a PostgreSQL database, authentication, instant APIs, edge functions, real-time subscriptions, and storage. Migrating your MSSQL database to Supabase's Postgres enables you to leverage Postgres's capabilities and access all the features you need for your project.
-## Retrieve Your MSSQL Database Credentials
+## Retrieve your MSSQL database credentials
Before you begin the migration, you need to collect essential information about your MSSQL database. Follow these steps:
@@ -18,7 +18,7 @@ Before you begin the migration, you need to collect essential information about
- Username
- Password
-## Retrieve your Supabase Host [#retrieve-supabase-host]
+## Retrieve your Supabase host [#retrieve-supabase-host]
1. If you're new to Supabase, [create a project](https://supabase.com/dashboard).
1. Go to the [Database settings](https://supabase.com/dashboard/project/_/settings/database) for your project in the Supabase Dashboard.
diff --git a/apps/docs/pages/guides/resources/migrating-to-supabase/mysql.mdx b/apps/docs/pages/guides/resources/migrating-to-supabase/mysql.mdx
index 5020758a8a8..6df1e241d45 100644
--- a/apps/docs/pages/guides/resources/migrating-to-supabase/mysql.mdx
+++ b/apps/docs/pages/guides/resources/migrating-to-supabase/mysql.mdx
@@ -7,7 +7,7 @@ export const meta = {
This guide aims to exhibit the process of transferring your MySQL database to Supabase's Postgres database. Supabase is a robust and open-source platform offering a wide range of backend features, including a PostgreSQL database, authentication, instant APIs, edge functions, real-time subscriptions, and storage. Migrating your MySQL database to Supabase's PostgreSQL enables you to leverage PostgreSQL's capabilities and access all the features you need for your project.
-## Retrieve Your MySQL Database Credentials
+## Retrieve your mySQL database credentials
Before you begin the migration, you need to collect essential information about your MySQL database. Follow these steps:
@@ -19,7 +19,7 @@ Before you begin the migration, you need to collect essential information about
- Username
- Password
-## Retrieve your Supabase Host [#retrieve-supabase-host]
+## Retrieve your Supabase host [#retrieve-supabase-host]
1. If you're new to Supabase, [create a project](https://supabase.com/dashboard).
1. Go to the [Database settings](https://supabase.com/dashboard/project/_/settings/database) for your project in the Supabase Dashboard.
diff --git a/apps/docs/pages/guides/resources/migrating-to-supabase/postgres.mdx b/apps/docs/pages/guides/resources/migrating-to-supabase/postgres.mdx
index 1387991a318..4ada6ef3f15 100644
--- a/apps/docs/pages/guides/resources/migrating-to-supabase/postgres.mdx
+++ b/apps/docs/pages/guides/resources/migrating-to-supabase/postgres.mdx
@@ -21,7 +21,7 @@ Example:
%env PSQL_COMMAND=PGPASSWORD=RgaMDfTS_password_FTPa7 psql -h dpg-a_server_in.oregon-postgres.provider.com -U my_db_pxl0_user my_db_pxl0
```
-## Retrieve your Supabase Host [#retrieve-supabase-host]
+## Retrieve your Supabase host [#retrieve-supabase-host]
1. If you're new to Supabase, [create a project](https://supabase.com/dashboard).
1. Go to the [Database settings](https://supabase.com/dashboard/project/_/settings/database) for your project in the Supabase Dashboard.
diff --git a/apps/docs/pages/guides/resources/migrating-to-supabase/render.mdx b/apps/docs/pages/guides/resources/migrating-to-supabase/render.mdx
index b5e09b70aa9..f8178141fc5 100644
--- a/apps/docs/pages/guides/resources/migrating-to-supabase/render.mdx
+++ b/apps/docs/pages/guides/resources/migrating-to-supabase/render.mdx
@@ -25,7 +25,7 @@ Example:
%env PSQL_COMMAND=PGPASSWORD=RgaMDfTS_password_FTPa7 psql -h dpg-a_server_in.oregon-postgres.render.com -U my_db_pxl0_user my_db_pxl0
```
-## Retrieve your Supabase Host [#retrieve-supabase-host]
+## Retrieve your Supabase host [#retrieve-supabase-host]
1. If you're new to Supabase, [create a project](https://supabase.com/dashboard).
1. Go to the [Database settings](https://supabase.com/dashboard/project/_/settings/database) for your project in the Supabase Dashboard.
diff --git a/apps/docs/pages/guides/self-hosting.mdx b/apps/docs/pages/guides/self-hosting.mdx
index 083ab354ad4..45175875098 100644
--- a/apps/docs/pages/guides/self-hosting.mdx
+++ b/apps/docs/pages/guides/self-hosting.mdx
@@ -8,7 +8,7 @@ export const meta = {
There are several ways to host Supabase on your own computer, server, or cloud.
-## Officially Supported
+## Officially supported
<div className="grid md:grid-cols-12 gap-4 not-prose">
{official.map((x) => (
@@ -36,7 +36,7 @@ export const official = [
Supabase is also a hosted platform. If you want to get started for free, visit [supabase.com/dashboard](https://supabase.com/dashboard).
-## Community Supported
+## Community supported
There are several community-driven projects to help you deploy Supabase. We encourage you to try them out and contribute back to the community.
@@ -73,7 +73,7 @@ export const community = [
},
]
-## Third-party Guides
+## Third-party guides
The following third-party providers have shown consistent support for the self-hosted version of Supabase:.
diff --git a/apps/docs/pages/guides/self-hosting/docker.mdx b/apps/docs/pages/guides/self-hosting/docker.mdx
index 51fd4f942ad..652e127f3c2 100644
--- a/apps/docs/pages/guides/self-hosting/docker.mdx
+++ b/apps/docs/pages/guides/self-hosting/docker.mdx
@@ -45,7 +45,7 @@ Please [secure your services](#securing-your-services) as soon as possible using
For security reasons, we "pin" the versions of each service in the docker-compose file (these versions are updated ~monthly). If you want to update any services immediately, you can do so by updating the version number in the docker compose file and then running `docker compose pull`. You can find all the latest docker images in the [Supabase Docker Hub](https://hub.docker.com/u/supabase).
-### Accessing Supabase Studio
+### Accessing Supabase dashboard
You can access the Supabase Dashboard through the API gateway on port `8000`. For example: `http://<your-ip>:8000`, or [localhost:8000](http://localhost:8000) if you are running Docker locally.
@@ -86,7 +86,7 @@ The default password is `your-super-secret-and-long-postgres-password`. You shou
While we provided you with some example secrets for getting started, you should NEVER deploy your Supabase setup using the defaults we have provided. Please follow all of the steps in this section to ensure you have a secure setup, and then [restart all services](#restarting-all-services) to pick up the changes.
-### Generate API Keys
+### Generate API keys
Create a new `JWT_SECRET` and store it securely.
@@ -94,7 +94,7 @@ We can use your JWT Secret to generate new `anon` and `service` API keys using t
<JwtGenerator />
-### Update API Keys
+### Update API keys
Replace the values in the `.env` file:
@@ -103,7 +103,7 @@ Replace the values in the `.env` file:
You will need to [restart](#restarting-all-services) the services for the changes to take effect.
-### Update Secrets
+### Update secrets
Update the `.env` file with your own secrets. In particular, these are required:
@@ -114,7 +114,7 @@ Update the `.env` file with your own secrets. In particular, these are required:
You will need to [restart](#restarting-all-services) the services for the changes to take effect.
-### Dashboard Authentication
+### Dashboard authentication
The dashboard is protected with Basic Authentication. The default user and password MUST be updated before using Supabase in production.
Update the following values in the `.env` file:
diff --git a/apps/docs/pages/guides/storage/buckets/fundamentals.mdx b/apps/docs/pages/guides/storage/buckets/fundamentals.mdx
index ec97509fafe..be6447f45c4 100644
--- a/apps/docs/pages/guides/storage/buckets/fundamentals.mdx
+++ b/apps/docs/pages/guides/storage/buckets/fundamentals.mdx
@@ -9,11 +9,11 @@ export const meta = {
Buckets allow you to keep your files organized and determines the [Access Model](#access-model) for your assets. [Upload restrictions](/docs/guides/storage/buckets/creating-buckets#restricting-uploads) like max file size and allowed content types are also defined at the bucket level.
-## Access Model
+## Access model
There are 2 access models for buckets, **public** and **private** buckets.
-### Private Buckets
+### Private buckets
When a bucket is set to **Private** all operations are subject to access control via [RLS policies](/docs/guides/storage/security/access-control). This also applies when downloading assets. Buckets are private by default.
@@ -22,18 +22,18 @@ The only ways to download assets within a private bucket is to:
- Use the [download method](/docs/reference/javascript/storage-from-download) by providing a authorization header containing your user's JWT. The RLS policy you create on the `storage.objects` table will use this user to determine if they have access.
- Create a signed URL with the [createSignedUrl method](/docs/reference/javascript/storage-from-createsignedurl) that can be accessed for a limited time.
-#### Example Use Cases:
+#### Example use cases:
- Uploading users' sensitive documents
- Securing private assets by using RLS to set up fine-grain access controls
-### Public Buckets
+### Public buckets
When a bucket is designated as 'Public,' it effectively bypasses access controls for both retrieving and serving files within the bucket. This means that anyone who possesses the asset URL can readily access the file.
Access control is still enforced for other types of operations including uploading, deleting, moving, and copying.
-#### Example Use Cases:
+#### Example use cases:
- User profile pictures
- User public media
diff --git a/apps/docs/pages/guides/storage/cdn/fundamentals.mdx b/apps/docs/pages/guides/storage/cdn/fundamentals.mdx
index 010d7b161bc..f9aea721fa9 100644
--- a/apps/docs/pages/guides/storage/cdn/fundamentals.mdx
+++ b/apps/docs/pages/guides/storage/cdn/fundamentals.mdx
@@ -29,7 +29,7 @@ Note that CDNs might still evict your object from their cache if it has not been
The cache status of a particular request is sent in the `cf-cache-status` header. A cache status of `MISS` indicates that the CDN node did not have the object in its cache and had to ping the origin to get it. A cache status of `HIT` indicates that the object was sent directly from the CDN.
-### Public vs Private Buckets
+### Public vs private buckets
Objects in public buckets do not require any authorization to access objects. This leads to a better cache hit rate compared to private buckets.
diff --git a/apps/docs/pages/guides/storage/cdn/smart-cdn.mdx b/apps/docs/pages/guides/storage/cdn/smart-cdn.mdx
index 9ec314f1b63..2ca47c9d7b2 100644
--- a/apps/docs/pages/guides/storage/cdn/smart-cdn.mdx
+++ b/apps/docs/pages/guides/storage/cdn/smart-cdn.mdx
@@ -25,7 +25,7 @@ When a file is updated or deleted, the CDN cache is automatically invalidated to
When an asset is invalidated at the CDN level, browsers may not update its cache. This is where cache eviction comes into play.
-## Cache Eviction
+## Cache eviction
Even when an asset is marked as invalidated at the CDN level, browsers may not refresh their cache for that asset.
@@ -33,7 +33,7 @@ If you have assets that undergo frequent updates, it is advisable to upload the
If you anticipate that your asset might be deleted, it's advisable to set a shorter browser Time-to-Live (TTL) value using the `cacheControl` option. The default TTL is typically set to 1 hour, which is generally a reasonable default value.
-## Bypassing Cache
+## Bypassing cache
If you need to ensure assets refresh directly from the origin server and bypass the cache, you can achieve this by adding a unique query string to the URL.
diff --git a/apps/docs/pages/guides/storage/debugging/error-codes.mdx b/apps/docs/pages/guides/storage/debugging/error-codes.mdx
index 39406cb2af7..4625ce58818 100644
--- a/apps/docs/pages/guides/storage/debugging/error-codes.mdx
+++ b/apps/docs/pages/guides/storage/debugging/error-codes.mdx
@@ -33,7 +33,7 @@ You don't have permission to action this request
- Add RLS policy to grant permission. See our [Access Control docs](/docs/guides/storage/uploads/access-control) for more information.
- Ensure you include the user `Authorization` header
-## 429 Too many requests
+## 429 too many requests
This problem typically arises when a large number of clients are concurrently interacting with the Storage service, and the pooler has reached its `max_clients` limit.
diff --git a/apps/docs/pages/guides/storage/debugging/logs.mdx b/apps/docs/pages/guides/storage/debugging/logs.mdx
index 4165f9e0529..4202bd22355 100644
--- a/apps/docs/pages/guides/storage/debugging/logs.mdx
+++ b/apps/docs/pages/guides/storage/debugging/logs.mdx
@@ -9,7 +9,7 @@ export const meta = {
Accessing the [Storage Logs](https://supabase.green/dashboard/project/__/logs/explorer?q=select+id%2C+storage_logs.timestamp%2C+event_message+from+storage_logs%0A++%0A++order+by+timestamp+desc%0A++limit+100%0A++) allows you to examine all incoming request logs to your Storage service. You can also filter logs and delve into specific aspects of your requests.
-### Common Log Queries
+### Common log queries
#### Filter by status 5XX error
@@ -37,7 +37,7 @@ select id, storage_logs.timestamp, event_message, r.statusCode, e.message as err
limit 100
```
-#### Filter by Method
+#### Filter by method
```sql
select id, storage_logs.timestamp, event_message, r.method
@@ -50,7 +50,7 @@ order by timestamp desc
limit 100;
```
-#### Filter by IP Address
+#### Filter by IP address
```sql
select id, storage_logs.timestamp, event_message, r.remoteAddress
diff --git a/apps/docs/pages/guides/storage/production/scaling.mdx b/apps/docs/pages/guides/storage/production/scaling.mdx
index 8c4beb74e04..35e760fc98f 100644
--- a/apps/docs/pages/guides/storage/production/scaling.mdx
+++ b/apps/docs/pages/guides/storage/production/scaling.mdx
@@ -14,7 +14,7 @@ Here are some optimizations that you can consider to improve performance and red
If your project has high egress, these optimizations can help reducing it.
-#### Resize Images
+#### Resize images
Images typically make up most of your egress. By keeping them as small as possible, you can cut down on egress and boost your application's performance. You can take advantage of our [Image Transformation](/docs/guides/storage/serving/image-transformations) service to optimize any image on the fly.
@@ -26,7 +26,7 @@ Using the browser cache can effectively lower your egress since the asset remain
You have the option to set a maximum upload size for your bucket. Doing this can prevent users from uploading and then downloading excessively large files. You can control the maximum file size by configuring this option at the [bucket level](/docs/guides/storage/buckets/creating-buckets).
-## Optimize Listing Objects
+## Optimize listing objects
Once you have a substantial number of objects, you might observe that the `supabase.storage.list()` method starts to slow down. This occurs because the endpoint is quite generic and attempts to retrieve both folders and objects in a single query. While this approach is very useful for building features like the Storage viewer on the Supabase dashboard, it can impact performance with a large number of objects.
diff --git a/apps/docs/pages/guides/storage/schema/design.mdx b/apps/docs/pages/guides/storage/schema/design.mdx
index 86cdedf4c5a..5e1acef5493 100644
--- a/apps/docs/pages/guides/storage/schema/design.mdx
+++ b/apps/docs/pages/guides/storage/schema/design.mdx
@@ -23,7 +23,7 @@ Here is the schema that represents the Storage service:
You have the option to query this table directly to retrieve information about your files in Storage without the need to go through our API.
-## Modifying the Schema
+## Modifying the schema
We strongly recommend refraining from making any alterations to the `storage` schema and treating it as read-only. This approach is important because any modifications to the schema on your end could potentially clash with our future updates, leading to downtime.
diff --git a/apps/docs/pages/guides/storage/security/access-control.mdx b/apps/docs/pages/guides/storage/security/access-control.mdx
index ccaa9aa2712..6dc1219eb21 100644
--- a/apps/docs/pages/guides/storage/security/access-control.mdx
+++ b/apps/docs/pages/guides/storage/security/access-control.mdx
@@ -12,7 +12,7 @@ Supabase Storage is designed to work perfectly with Postgres [Row Level Security
You can use RLS to create [Security Access Policies](https://www.postgresql.org/docs/current/sql-createpolicy.html) that are incredibly powerful and flexible, allowing you to restrict access based on your business needs.
-## Access Policies
+## Access policies
By default Storage does not allow any uploads to buckets without RLS policies. You selectively allow certain operations by creating RLS policies on the `storage.objects` table.
@@ -28,7 +28,7 @@ For example, the only RLS policy required for [uploading](/docs/reference/javasc
To allow overwriting files using the `upsert` functionality you will need to additionally grant `SELECT` and `UPDATE` permissions.
-## Policy Examples
+## Policy examples
An easy way to get started would be to create RLS policies for `SELECT`, `INSERT`, `UPDATE`, `DELETE` operations and restrict the policies to meet your security requirements. For example, one can start with the following `INSERT` policy:
diff --git a/apps/docs/pages/guides/storage/serving/downloads.mdx b/apps/docs/pages/guides/storage/serving/downloads.mdx
index 6d729577a84..a603fbd8259 100644
--- a/apps/docs/pages/guides/storage/serving/downloads.mdx
+++ b/apps/docs/pages/guides/storage/serving/downloads.mdx
@@ -9,7 +9,7 @@ export const meta = {
tocVideo: 'dLqSmxX3r7I',
}
-## Public Buckets
+## Public buckets
As mentioned in the [Buckets Fundamentals](/docs/guides/storage/buckets/fundamentals) all files uploaded in a public bucket are publicly accessible and benefit a high CDN cache HIT ratio.
diff --git a/apps/docs/pages/guides/storage/serving/image-transformations.mdx b/apps/docs/pages/guides/storage/serving/image-transformations.mdx
index 8bbfb802f28..e247e421f68 100644
--- a/apps/docs/pages/guides/storage/serving/image-transformations.mdx
+++ b/apps/docs/pages/guides/storage/serving/image-transformations.mdx
@@ -131,7 +131,7 @@ supabase.storage.from("bucket").downloadAuthenticatedTo("image.jpg", file) {
</TabPanel>
</Tabs>
-## Automatic Image Optimization (WebP)
+## Automatic image optimization (WebP)
When using the image transformation API, Storage will automatically find the best format supported by the client and return that to the client, without any code change. For instance, if you use Chrome when viewing a jpeg image and using transformation options, you'll see that images are automatically optimized as `webp` images.
@@ -186,7 +186,7 @@ supabase.storage.from("bucket").downloadAuthenticatedTo("image.jpg", file) {
</TabPanel>
</Tabs>
-## Next.js Loader
+## Next.js loader
You can use Supabase Image Transformation to optimize your Next.js images using a custom [Loader](https://nextjs.org/docs/api-reference/next/image#loader-configuration).
@@ -331,7 +331,7 @@ supabase.storage.from("bucket").downloadAuthenticatedTo("image.jpg", file) {
- The image size cannot exceed 25MB.
- The image resolution cannot exceed 50MP.
-### Supported Image Formats
+### Supported image formats
| Format | Extension | Source | Result |
| ------ | --------- | ------ | ------ |
@@ -346,11 +346,11 @@ supabase.storage.from("bucket").downloadAuthenticatedTo("image.jpg", file) {
| BMP | `bmp` | ☑️ | ☑️ |
| TIFF | `tiff` | ☑️ | ☑️ |
-## Self Hosting
+## Self hosting
Our solution to image resizing and optimization can be self-hosted as with any other Supabase product. Under the hood we use [Imgproxy](https://imgproxy.net/)
-#### Imgproxy Configuration:
+#### Imgproxy configuration:
Simply deploy an imgproxy container with the following configuration:
@@ -364,7 +364,7 @@ imgproxy:
Note: make sure that this service can only be reachable within an internal network and not exposed to the public internet
-#### Storage API Configuration:
+#### Storage API configuration:
Once [Imgproxy](https://imgproxy.net/) is deployed we need to configure a couple of environment variables in your self-hosted [storage-api](https://github.com/supabase/storage-api) service as follows:
diff --git a/apps/docs/pages/guides/storage/uploads/file-limits.mdx b/apps/docs/pages/guides/storage/uploads/file-limits.mdx
index eccc118770b..223203ef65e 100644
--- a/apps/docs/pages/guides/storage/uploads/file-limits.mdx
+++ b/apps/docs/pages/guides/storage/uploads/file-limits.mdx
@@ -9,7 +9,7 @@ export const meta = {
You can customize the Max file size for file uploads.
-## Global File Size
+## Global file size
You can set the max file size across all your buckets by setting this global value in the dashboard [here](https://supabase.com/dashboard/project/_/settings/storage).
@@ -29,7 +29,7 @@ You can additionally specify the max file size on a per [bucket level](/docs/gui
It is a good practice to have the global limit set to the highest possible file size that your application accepts, and apply per bucket limits.
-## Per Bucket Restrictions
+## Per bucket restrictions
You can have different restrictions on a per bucket level.
You are able to restrict the file types (eg. `pdf`, `images`, `videos`) along with the max file size which should be lower than the global limit.
diff --git a/apps/docs/pages/guides/storage/uploads/resumable-uploads.mdx b/apps/docs/pages/guides/storage/uploads/resumable-uploads.mdx
index f10d6371b2c..4a8faed56d2 100644
--- a/apps/docs/pages/guides/storage/uploads/resumable-uploads.mdx
+++ b/apps/docs/pages/guides/storage/uploads/resumable-uploads.mdx
@@ -129,7 +129,7 @@ When two or more clients upload a file to the same path using different upload U
If you provide the `x-upsert` header the last client to complete the upload will succeed instead.
-### UppyJS Example
+### UppyJS example
You can check a [full example using UppyJS](https://github.com/supabase/supabase/tree/master/examples/storage/resumable-upload-uppy).
@@ -140,7 +140,7 @@ UppyJS has integrations with different frameworks:
- [Vue](https://uppy.io/docs/vue/)
- [Angular](https://uppy.io/docs/angular/)
-## Overwriting Files
+## Overwriting files
When uploading a file to a path that already exists, the default behavior is to return a `400 Asset Already Exists` error.
If you want to overwrite a file on a specific path you can set the `x-upsert` header to `true`.
diff --git a/apps/docs/pages/guides/storage/uploads/standard-uploads.mdx b/apps/docs/pages/guides/storage/uploads/standard-uploads.mdx
index dbafac6e7cd..d3699892e13 100644
--- a/apps/docs/pages/guides/storage/uploads/standard-uploads.mdx
+++ b/apps/docs/pages/guides/storage/uploads/standard-uploads.mdx
@@ -67,7 +67,7 @@ suspend fun uploadFile(file: File) {
</TabPanel>
</Tabs>
-## Overwriting Files
+## Overwriting files
When uploading a file to a path that already exists, the default behavior is to return a `400 Asset Already Exists` error.
If you want to overwrite a file on a specific path you can set the `upsert` options to `true` or using the `x-upsert` header.
@@ -96,7 +96,7 @@ await supabase.storage.from('bucket_name').upload('file_path', file, {
We do advise against overwriting files when possible, as our Content Delivery Network will take sometime to propagate the changes to all the edge nodes leading to stale content.
Uploading a file to a new path is the recommended way to avoid propagation delays and stale content.
-## Content Type
+## Content type
By default, Storage will assume the content type of an asset from the file extension. If you want to specify the content type for your asset simply pass the `contentType` option during upload.