Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions apps/docs/content/guides/getting-started/ai-prompts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ Use the "include file" feature from your AI tool to include the prompt when chat
## Prompts

<AiPromptsIndex />

## Use in different environments

You can load these prompts into various tools. Here are common options and where to place the prompt:

| Environment | Where to put prompt | Installation instructions |
| -------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Cursor | Project rules (`.cursor/rules/*.md` or `.mdx`) | [Configure project rules](https://docs.cursor.com/en/context/rules) |
| GitHub Copilot | `.github/copilot-instructions.md` | [Custom instructions in Copilot](https://code.visualstudio.com/docs/copilot/copilot-customization#_custom-instructions) |
| JetBrains IDEs | `guidelines.md` | [Customize guidelines](https://www.jetbrains.com/help/junie/customize-guidelines.html) |
| Gemini CLI | `GEMINI.md` | [Gemini CLI codelab](https://codelabs.developers.google.com/gemini-cli-hands-on) |
| VS Code | `.instructions.md` | Configure `.instructions.md` |
| Windsurf | `guidelines.md` | Configure `guidelines.md` |
2 changes: 2 additions & 0 deletions apps/docs/content/guides/getting-started/mcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ After you log in, check that the MCP server is connected. For instance, in Curso

To verify the client has access to the MCP server tools, try asking it to query your project or database using natural language. For example: "What tables are there in the database? Use MCP tools."

For curated, ready-to-use prompts that work well with IDEs and AI agents, see our [AI Prompts](/guides/getting-started/ai-prompts) collection.

## Manual authentication

By default the hosted Supabase MCP server uses [dynamic client registration](https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization#dynamic-client-registration) to authenticate with your Supabase org. This means that you don't need to manually create a personal access token (PAT) or OAuth app to use the server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ database_id = "94c6e33b-cc05-49b3-b010-7480f8dde843"

If possible, create a new GitHub account using the **same email** as the previous GitHub account that was turned into a Organization or that was deleted. Once you sign in with that newly created account, you should have access to the old account. You can then invite any new account to have access to the Organization and Projects as needed.

If that is not possible, Supabase can help you transfer ownership of an existing organization on your account by inviting a new owner to your organization. This new user will need to have a different email from the previous one, and you will need to email [email protected] with that new email as well to confirm that you own the email address.
If that is not possible, Supabase can help you transfer ownership of an existing organization on your account by inviting a new owner to your organization. This new user will need to have a different email from the previous one, and you will need to email [[email protected]](email:[email protected]) with that new email as well to confirm that you own the email address.
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,13 @@ If you're not able to run the CLI or cannot identify the cause, [open a support

```
$ supabase functions deploy FUNCTION_NAME --project-ref $PROJECT_ID
...
unexpected deploy status 500: {"message":"Function deploy failed due to an internal error"}
```

**Example output with `--debug`**

- From the details we can see it is exceeding the 20MB [Edge Function size limit](/docs/guides/functions/limits)
From the details we can see it is exceeding the 20MB [Edge Function size limit](/docs/guides/functions/limits):

```
$ supabase functions deploy FUNCTION_NAME --project-ref $PROJECT_ID --debug
...
Deploying Function: FUNCTION_NAME (script size: 62.61MB)
...
unexpected update function status 413: {"message":"request entity too large"}
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title = "Error: Failed to run sql query: Connection terminated due to connection timeout"
topics = [ "database", "studio" ]
database_id = "7529ca12-114b-485c-9b64-bca3b2dc744b"

[[errors]]
http_status_code = 500
message = "Error: Failed to run sql query: Connection terminated due to connection timeout"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title = "High CPU and Slow Queries with `ERROR: must be a superuser to terminate superuser process`"
topics = [ "cli", "database", "storage" ]
keywords = []
database_id = "23668386-7a72-44ff-a412-4cd8a005fa18"
---

When facing high CPU utilization, slow query performance, and an `ERROR: must be a superuser to terminate superuser process` message regarding an autovacuum, it indicates that a critical, non-terminable autovacuum operation is running on your Postgres database. This guide explains why this happens and what steps you can take.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ Update remote migration history table? [Y/n]

Type `Y` to update your remote project’s migration history and ensure it matches your new local migrations.

- If the CLI suggests repairing migration history due to mismatches, you might see:
```
Make sure your local git repo is up-to-date. If the error persists, try repairing the migration history table:
supabase migration repair --status applied <timestamp>
```
Run the exact repair command provided, replacing the timestamp as instructed (example timestamp: 20251006141726). This synchronizes the migration state between local and remote.
If the CLI suggests repairing migration history due to mismatches, you might see:

```
Make sure your local git repo is up-to-date. If the error persists, try repairing the migration history table:
supabase migration repair --status applied TIMESTAMP_OF_MIGRATION_TO_REPAIR
```

Run the exact repair command provided, replacing the timestamp as instructed (example timestamp: 20251006141726). This synchronizes the migration state between local and remote.

---

Expand All @@ -60,4 +62,4 @@ Once your migration history is up to date, continue to use branching features as

#### Additional tips

- If further issues arise (such as schema drift or migration mismatches), review the [troubleshooting documentation](/docs/guides/deployment/branching/troubleshooting#migration-issues), and consider manual repair with `supabase migration repair`(https://supabase.com/docs/reference/cli/supabase-migration-repair).
If further issues arise (such as schema drift or migration mismatches), review the [troubleshooting documentation](/docs/guides/deployment/branching/troubleshooting#migration-issues), and consider manual repair with [`supabase migration repair`](/docs/reference/cli/supabase-migration-repair).
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
title = "PGRST106: \"The schema must be one of the following...\" error when querying an exposed schema"
topics = [ "auth", "database" ]
keywords = []
database_id = "91dda1aa-52f7-4a1c-9248-92fad9f3dec7"

[[errors]]
code = "PGRST106"
message = "The schema must be one of the following: public, ..."

---

You may encounter a `PGRST106` error, stating `{"code":"PGRST106","message":"The schema must be one of the following: public"}`, when attempting to query a schema via the PostgREST API that you've recently exposed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title = "Realtime connections giving `TIMED_OUT` errors"
topics = [ "realtime" ]
keywords = []
database_id = "b99fac0e-09da-4a31-93a1-6375ed8ce041"
---

If your Realtime connections in your application are giving `TIMED_OUT` errors, this often indicates an incompatibility between the version of `realtime-js` being used in your `supabase-js` client library package and your Node.js version. This issue happens when using versions of Node.js older than v22 with more recent versions of `supabase-js`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title = "SSO Error: \"You do not have permissions to join this organization\" or prompts to create new organization"
topics = [ "platform" ]
keywords = []
database_id = "37d147df-caa7-4b0b-82b5-eab6852f2cff"
---

When attempting to log in via SSO, you may observe the message "You do not have permissions to join this organization" or be prompted to create a new organization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title = "Supabase CLI: \"failed SASL auth\" or \"invalid SCRAM server-final-message\""
topics = [ "auth", "cli", "database", "supavisor" ]
keywords = []
database_id = "4a32736f-1d7f-4c41-9c96-ab84e35ad394"
---

When executing `supabase db push` or `supabase link` or any other authenticated actions from the Supabase CLI, you might encounter an authentication error with messages such as `failed SASL auth (invalid SCRAM server-final-message received from server)`.
Expand Down
2 changes: 2 additions & 0 deletions apps/docs/public/humans.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Fatuma Abdullahi
Felipe Stival
Francesco Sansalvadore
Garrett Crowell
Gerardo Estaba
Greg Kress
Greg P
Greg Richardson
Expand Down Expand Up @@ -180,6 +181,7 @@ Terry Sutton
Thomas E
Thor Schaeff
Tim Frietas
Tim Palmer
Timothy Lim
Tom Ashley
Tom G
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/spec/cli_v1_commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ flags:
name: --workdir <string>
description: path to a Supabase project directory
default_value: ''
- id: "yes"
- id: 'yes'
name: --yes
description: answer yes to all prompts
default_value: 'false'
Expand Down Expand Up @@ -1640,7 +1640,7 @@ commands:

Creates a new migration file locally.

A `supabase/migrations` directory will be created if it does not already exists in your current `workdir`. All schema migration files must be created in this directory following the pattern `<timestamp>_<name>.sql`.
A `supabase/migrations` directory will be created if it does not already exist in your current `workdir`. All schema migration files must be created in this directory following the pattern `<timestamp>_<name>.sql`.

Outputs from other commands like `db diff` may be piped to `migration new <name>` via stdin.
examples:
Expand Down
2 changes: 2 additions & 0 deletions supa-mdx-lint/Rule003Spelling.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ allow_list = [
"ClickHouse",
"Clippy",
"Cloudflare",
"codelab",
"Codium",
"Cognito",
"Colab",
Expand Down Expand Up @@ -220,6 +221,7 @@ allow_list = [
"IntelliSense",
"IOWait",
"IVFFlat",
"JetBrains",
"JWTs",
"Jian",
"Jupyter",
Expand Down
Loading