2543 Commits
Author SHA1 Message Date
supabase-vercel-tedd[bot]andalexisintech ac87f00328 docs(functions): explain how a local function reaches the local stack and host services (#54557)
## Problem

When a function runs locally with `supabase start` or `supabase
functions serve`, calls to `localhost` or `127.0.0.1` inside it fail
with "Connection refused". The Edge Functions development environment
page didn't say that the function runs in a Docker container, or how to
reach the local Supabase services and servers on the reader's machine.

Related to
[FDBKIN-6695](https://linear.app/supabase/issue/FDBKIN-6695/document-how-local-edge-functions-can-call-services-on-the-host)
Closes
[DOCS-1853](https://linear.app/supabase/issue/DOCS-1853/explain-how-a-local-edge-function-reaches-the-local-stack-and-services)

## Solution

Adds a "Reach other services from a local function" section to the Edge
Functions development environment page. It explains that `localhost`
inside a local function means the container, points to `SUPABASE_URL`
(and `SUPABASE_DB_URL`) for the local Supabase services, and shows
`host.docker.internal:<port>` for a server on the host, including the
Linux requirement to listen on `0.0.0.0`. Under `supabase start`,
`SUPABASE_DB_URL` uses a `supabase_db_` host that some clients, such as
Postgres.js, can't resolve, so the section says to swap that host for
`db`. A one-line `.env` example keeps the host URL in a local secret, so
deployed code uses a production secret instead. It also drops the claim
under `supabase start` that local development is the exact same
environment as production, which the new section contradicts.

The Postgres tab note on the CLI getting-started page told readers to
reach the database from a function through `host.docker.internal`. It
now says a local function can't reach the database at that URL, and
links to the new section, so both pages give the same advice.

On the Drizzle page, the garbled note in the "Connect" step now says the
`db.ts` sample swaps the `supabase_db_` host for `db` in a local Edge
Function, and links to the new section. The same step now links the
**Connect** panel straight to the **Transaction pooler** URI, since the
panel has no "Shared pooler" option. The `db.ts` comment now says
`prepare: false` disables prepared statements, not prefetch. The page
gets a task title and a description that say what it helps the reader
do. Smaller fixes: the password instruction is plainer, "connection
pooler" is lowercase, a double space is gone, and "Related resources" is
in sentence case.

The Prisma and Postgres.js quickstarts had the same bare title and
"Quickstart" description, so they get task titles and descriptions too,
and the three ORM quickstarts now match. The Postgres.js page uses
"Query" rather than "Connect to", because "Connect to Postgres with
Postgres.js" is over the style guide's 35-character title limit.

## How to verify

1. Open
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/functions/development-environment#reach-other-services-from-a-local-function,
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/local-development/cli/getting-started
(the **Postgres** tab under "Access your project's services"),
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/database/drizzle
(step 3, "Connect"),
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/database/prisma,
and
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/database/postgres-js.
2. The section states that a locally served function runs in a Docker
container, so `localhost` and `127.0.0.1` in function code mean the
container.
3. Under "Reach the local Supabase services", the section says to use
`SUPABASE_URL` for the local Supabase services, notes it is
`http://kong:8000` locally, and links to the default secrets table on
the secrets page. It says to swap a `supabase_db_` host in
`SUPABASE_DB_URL` for `db` for clients that can't resolve it.
4. The section says to reach a server on the host through
`host.docker.internal:<port>`, and that on Linux the server must listen
on `0.0.0.0`.
5. The example sets `API_URL` in `supabase/functions/.env`. The local
secrets and production secrets links open the matching sections of the
secrets page.
6. The `supabase start` paragraph no longer claims the local environment
is identical to production.
7. The getting-started Postgres tab note no longer mentions
`host.docker.internal`, and its link opens the "Reach the local Supabase
services" section.
8. On the Drizzle page, step 3 says the `db.ts` sample swaps the
`supabase_db_` host for `db` in a local Edge Function, and links to
"Reach the local Supabase services". The **Connect** panel link opens
the **Direct** tab with **Transaction pooler** selected. The `db.ts`
comment mentions prepared statements, and the last heading reads
"Related resources".
9. The Drizzle page's title reads "Connect to Postgres with Drizzle",
the Prisma page's reads "Connect to Postgres with Prisma", and the
Postgres.js page's reads "Query Postgres with Postgres.js". The sidebar
keeps its existing labels for all three.

## Checks

Ran `pnpm exec oxfmt --check` on the changed files. Typechecked the
snippet with `tsc --strict` (with a `Deno` declaration); it was also run
with `deno check`, `deno lint`, and served with `supabase functions
serve` on Linux, where `localhost` and a `127.0.0.1`-bound host server
were refused and `host.docker.internal` to a `0.0.0.0`-bound server
returned 200. Under `supabase start`, Postgres.js failed to resolve the
`supabase_db_` host in `SUPABASE_DB_URL` and connected with the host set
to `db`, and `localhost:54322` from a function was refused. The Drizzle
`db.ts` host check was run under `supabase start` with a project ID that
contains an underscore: it rewrote the host to `db` and a Drizzle query
succeeded. Checked `SUPABASE_URL=http://kong:8000`, `SUPABASE_DB_URL`,
and the Linux `host.docker.internal:host-gateway` mapping against
`supabase/cli` (`apps/cli/src/shared/functions/serve.ts`,
`apps/cli/src/commands/start/start.handler.ts`,
`apps/cli/src/commands/start/services/edge-runtime.service.ts`). Checked
the **Connect** panel labels and its `connectTab` and `method` query
parameters against `apps/studio/components/interfaces/ConnectSheet`, and
`prepare: false` against the Postgres.js source. The ORM quickstart
titles and descriptions follow the style guide's length limits, and each
description matches its page's steps. The navigation sets its own
labels, and no nav entry, breadcrumb, or test reads the old titles.
ESLint ignores MDX files, and the docs build was not run in the sandbox.

## Follow-ups

- `apps/docs/content/guides/database/drizzle.mdx`: the `db.ts` sample is
written for Node (`import 'dotenv/config'`, `process.env.DATABASE_URL`),
but its `supabase_db_` host check only applies inside a Deno Edge
Function under `supabase start`. A reader in either runtime gets a
sample that half fits.
- `apps/docs/content/guides/database/drizzle.mdx`: the page has no value
statement and no next steps. It opens straight into the gerund heading
"Connecting with Drizzle" and ends after the connection step. Step 1
installs `drizzle-kit`, but no step uses it, so the reader can't create
the `users` table from `schema.ts`.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] I have checked that the change works in the preview deployment

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1853](https://linear.app/supabase/issue/DOCS-1853/explain-how-a-local-edge-function-reaches-the-local-stack-and-services).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: alexisintech <98043211+alexisintech@users.noreply.github.com>
2026-12-03 16:22:21 -07:00
supabase-vercel-tedd[bot]andalexisintech 9ca221ee86 docs(storage): explain which policies a public bucket needs (#54558)
## Problem

The public buckets section says that anyone with a file's URL can
download it and that other operations still use access control. It
doesn't say which policies a public bucket needs, so readers can't tell
that a broad `SELECT` policy lets clients list the whole bucket, or that
writes stay blocked until a policy allows them.

Related to
[FDBKIN-5481](https://linear.app/supabase/issue/FDBKIN-5481/document-best-practices-for-securing-public-storage-buckets)
Closes
[DOCS-1852](https://linear.app/supabase/issue/DOCS-1852/explain-how-to-lock-down-a-public-storage-bucket)

## Solution

A new "Control access to a public bucket" subsection on the Storage
buckets page covers several points. Reads by public URL need no `SELECT`
policy, and a bucket-wide `SELECT` policy opens listing. Listing,
overwrites, moves, copies, and deletes each need a `SELECT` policy, so
the subsection says how to scope it to the user's objects and, with the
operation helpers, to the operations that need it. Writes stay blocked
until a scoped write policy allows them. It links the existing policy
examples, upload restrictions, and helper functions instead of repeating
them, and names the Security Advisor lint and the Dashboard warning that
flag a listable public bucket. The Related resources line for access
control now covers both bucket types.

Three related fixes support the new subsection. The public buckets intro
now says Storage skips access controls when it serves a file from a
public bucket, and names listing among the operations that still need
policies. The access control page has a sentence-case title and
descriptive link text instead of "here". "Restricting uploads" on the
Creating buckets page shows how to change limits on an existing bucket
with `updateBucket`, notes that the JavaScript SDK requires `public`,
and names the `fileSizeLimit` option correctly.

Both of those pages also lose old wording. The Creating buckets title is
in sentence case, and its intro and upload-rejection sentences no longer
use "Here we", "above", or the future tense. Its Restricting uploads
example sentence is shorter and writes "1 MB" with a space. The access
control intro and Policy examples drop "perfectly", "incredibly
powerful", and "An easy way", and the upsert sentence drops "you will
need to additionally grant".

The new title also appears in the docs nav entry for the page and in the
link text on the Storage upload limits page. The Dashboard steps for
creating a bucket, on the Creating buckets page and the Storage
quickstart, now use Studio's current labels: **New bucket** and
**Create**.

## How to verify

1. Open each changed page in the preview:
-
https://docs-git-tedd-docs-1852-supabase.vercel.app/docs/guides/storage/buckets/fundamentals#public-buckets
-
https://docs-git-tedd-docs-1852-supabase.vercel.app/docs/guides/storage/security/access-control#access-policies
-
https://docs-git-tedd-docs-1852-supabase.vercel.app/docs/guides/storage/buckets/creating-buckets#restricting-uploads
-
https://docs-git-tedd-docs-1852-supabase.vercel.app/docs/guides/storage/uploads/file-limits
-
https://docs-git-tedd-docs-1852-supabase.vercel.app/docs/guides/storage/quickstart
2. The "Control access to a public bucket" subsection says public URL
reads need no `SELECT` policy on `storage.objects`.
3. It says a bucket-wide `SELECT` policy lets clients list every object,
and that listing, overwrites, moves, copies, and deletes need a `SELECT`
policy scoped to the user's objects and the operations.
4. It says uploads and other writes stay blocked until a policy allows
them, and links Access policies and Policy examples.
5. It links Restricting uploads for file size and MIME type limits.
6. It says the Security Advisor flags a public bucket that allows
listing.
7. The public buckets intro says downloads from a public bucket skip
access controls, and that uploading, listing, deleting, moving, and
copying still need policies.
8. The access control page title is "Storage access control", and its
"Access policies" section has no "here" link text. The page has no
"perfectly", "incredibly powerful", "An easy way", or "you will need to
additionally grant".
9. The Creating buckets page title is "Creating buckets". Its intro has
no "Here we", the Restricting uploads example sentence has no "You can
achieve the following" and writes "1 MB", and the sentence after the
example has no "above" or "will be rejected".
10. "Restricting uploads" has an `updateBucket` snippet with `public:
true` and a sentence that the JavaScript SDK requires `public`.
11. The Storage nav shows "Creating buckets" for that page, and the
Storage upload limits page links it as "Creating buckets".
12. The Dashboard tabs on the Creating buckets page and the Storage
quickstart say **New bucket** and **Create**.
13. Each changed link opens the right page and section, including the
`0025_public_bucket_allows_listing` tab on the Advisors page.

## Checks

Ran `pnpm exec oxfmt --check` on the changed files, and `eslint` on
`NavigationMenu.constants.ts`. The `updateBucket` snippet typechecks
with its hidden setup (`tsc --ignoreConfig --moduleResolution bundler
--module esnext --skipLibCheck`). MDX has no ESLint config in apps/docs.
Behavior was checked against `supabase/storage` and against a local
stack running storage-api v1.98.7. Public downloads skip RLS, both
through the public URL and through `download()`, because `getObject.ts`
reads public-bucket objects as superuser. Listing and writes go through
RLS. Delete, move, copy, and upsert fail without a `SELECT` policy and
work with a scoped one. `updateBucket` leaves omitted fields unchanged.
The Advisor claim was checked against splinter lint 0025, and the
Dashboard warning against Studio's `PublicBucketWarning`. The Dashboard
labels come from Studio's `NewBucketButton` and `CreateBucketModal`.
Skipped `pnpm build:guides-markdown`, which needs GitHub credentials for
federated content.

## Follow-ups

- The JavaScript reference for `update()` says it needs `update` and
`select` on `storage.objects`. A local run on storage-api v1.98.7 showed
that it also needs `insert`. That text comes from supabase-js, so this
PR can't fix it.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] I have checked that the change follows the docs style guide
- [ ] I have checked that the change works in the preview deployment

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1852](https://linear.app/supabase/issue/DOCS-1852/explain-how-to-lock-down-a-public-storage-bucket).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: alexisintech <98043211+alexisintech@users.noreply.github.com>
2026-12-03 16:10:00 -07:00
supabase-vercel-tedd[bot]andalexisintech 7c9b65e21d docs(auth): say where proxy.ts goes in a Next.js project with a src folder (#54556)
## Problem

The Next.js setup in the server-side client guide doesn't say where to
put the `proxy.ts` (or `middleware.ts`) file. The Next.js user
management tutorial tells readers to put it at the project root. In a
project that uses a `src` folder, a file at the project root never runs,
sessions don't refresh, and nothing reports an error.

Related to
[FDBKIN-6704](https://linear.app/supabase/issue/FDBKIN-6704/clarify-middlewarets-file-placement-for-nextjs-ssr-in-documentation)
Closes
[DOCS-1851](https://linear.app/supabase/issue/DOCS-1851/say-where-proxyts-goes-in-a-nextjs-project-that-uses-a-src-folder)

## Solution

The "Hook up proxy" section of the Next.js tab now opens by saying where
the file goes: at the same level as the `app` or `pages` folder, which
is the project root or the `src` folder. It covers `middleware.ts` on
Next.js 15 and earlier, and warns that Next.js silently skips the file
anywhere else. It follows the wording the page already uses for the
`lib/supabase` folder and doesn't repeat the existing rename note.

The Next.js tutorial gets the same placement note in its "Next.js proxy"
step. Its "Supabase utilities" step now also says the `lib/supabase`
folder goes inside `src` in a `src` project, because the `@/` import
alias points there and the proxy import doesn't resolve otherwise.

## How to verify

1. Open
https://docs-git-tedd-docs-1851-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=nextjs#hook-up-proxy
and
https://docs-git-tedd-docs-1851-supabase.vercel.app/docs/guides/getting-started/tutorials/with-nextjs#nextjs-proxy.
2. The guide's section says to put `proxy.ts` at the same level as `app`
or `pages`: the project root, or the `./src` folder when the project
uses one.
3. The guide's section says `middleware.ts` goes in the same place on
Next.js 15 and earlier.
4. The guide's section says Next.js doesn't run the file from any other
location and shows no error.
5. The tutorial's "Next.js proxy" step says to put `proxy.ts` at the
same level as `app` (the project root or `./src`), and that Next.js
doesn't run it from any other location and shows no error.
6. The tutorial's "Supabase utilities" step says to put the
`lib/supabase` folder at the project root, or inside `./src` when the
project uses one.

## Checks

Ran `pnpm turbo run lint --filter='[origin/master]'` and `pnpm exec
oxfmt --check` on the changed files. The change is MDX prose only, so no
typecheck or tests cover it. Facts checked against the Next.js
`proxy.js`, `middleware.js`, and `src` folder references and the Next.js
build source. They were confirmed with `next build` and `next start` on
test projects with the files in and out of `src`, including
`create-next-app` scaffolds with and without `--src-dir`.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] I have checked that the change works in the preview deployment

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1851](https://linear.app/supabase/issue/DOCS-1851/say-where-proxyts-goes-in-a-nextjs-project-that-uses-a-src-folder).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: alexisintech <98043211+alexisintech@users.noreply.github.com>
2026-12-03 16:08:41 -07:00
Miranda Limonczenko 1bdb8d849f docs: apply the quickstart template to the remaining quickstarts (#54502)
Closes DOCS-1616

## Problem

The remaining quickstarts don't follow the [quickstart
template](https://github.com/supabase/supabase/blob/docs/quickstart-template/apps/docs/style-guide/templates/quickstart.md)
either.

## Solution

- **Heading IDs:** each numbered step ends with the template's ID, such
as `[#create-the-client]`.
- **Heading wording:** eight headings now use the template's wording,
such as `Create the Supabase client`.
- **Style:** the prose follows the word list and elements rules.

**Not changed:** RedwoodJS, Spring Boot, and Refine. DOCS-1624 covers
them.

**Before and after:** numbered headings that use the template's wording.

| Page | Before | After |
| --- | --- | --- |
| iOS | 5/8 | 6/8 |
| Kotlin | 4/8 | 5/8 |
| Flask, Flutter, Unity | 5/7 | 6/7 |
| Expo | 6/7 | 7/7 |
| Reflex | 7/7 | 7/7 |
| Laravel | 3/7 | 3/7 |
| Rails | 3/6 | 3/6 |

**Possible errors, not changed:**

- The iOS page opens **Xcode > New Project > iOS > App**. Xcode's menu
might be **File > New > Project**.
- The Vue page says to drop a type import that `supabaseClient.ts`
doesn't have.

## Preview links

| Page | Preview |
| --- | --- |
| Flask |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/flask)
|
| Reflex |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/reflex)
|
| Expo React Native |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/expo-react-native)
|
| Flutter |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/flutter)
|
| iOS SwiftUI |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/ios-swiftui)
|
| Kotlin |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/kotlin)
|
| Unity |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/unity)
|
| Laravel |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/laravel)
|
| Ruby on Rails |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/ruby-on-rails)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [ ] Moderate: good to have soon, not urgent
- [ ] Low: get to it when you can

## Review instructions

1. Open the [Kotlin
preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/kotlin)
and click **Create the Supabase client** in the table of contents. The
URL ends in `#create-the-client`.
2. Open the [Laravel
preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/laravel)
and click the **Run the database migrations** link in step 4. The page
scrolls to step 7.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-03 14:40:59 -08:00
Miranda Limonczenko c5057afe5e docs: apply the quickstart template to the web framework quickstarts (#54501)
Part of DOCS-1616

## Problem

The web framework quickstarts don't follow the [quickstart
template](https://github.com/supabase/supabase/blob/docs/quickstart-template/apps/docs/style-guide/templates/quickstart.md)
from #54496.

## Solution

- **Heading IDs:** each numbered step ends with the template's ID, such
as `[#query-data]`.
- **Heading wording:** five headings now use the template's wording,
such as `Query data from the app`.
- **Style:** the prose follows the word list and elements rules, and
`/ui` links point to `/library`.

**Before and after:** numbered headings that use the template's wording.

| Page | Before | After |
| --- | --- | --- |
| Astro (pilot) | 4/8 | 6/8 |
| TanStack Start | 4/7 | 5/7 |
| Next.js | 4/6 | 5/6 |
| Hono | 5/7 | 5/7 |
| Nuxt, React, SolidJS, SvelteKit, Vue | 7/7 | 7/7 |

**Not measured:** search top-k. The eval scorer can't score a preview.

## Preview links

| Page | Preview |
| --- | --- |
| Astro |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/astrojs)
|
| Hono |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/hono)
|
| Next.js |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/nextjs)
|
| Nuxt |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/nuxtjs)
|
| React |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/reactjs)
|
| SolidJS |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/solidjs)
|
| SvelteKit |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/sveltekit)
|
| TanStack Start |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/tanstack)
|
| Vue |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/vue)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [ ] Moderate: good to have soon, not urgent
- [ ] Low: get to it when you can

## Review instructions

1. Open the [Astro
preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/astrojs)
and click **Query data from the app** in the table of contents. The URL
ends in `#query-data`.
2. Compare the [React
preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/reactjs)
with the [live
page](https://supabase.com/docs/guides/getting-started/quickstarts/reactjs).
Only headings and wording change.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-03 14:40:59 -08:00
Miranda Limonczenko 0708fbf556 docs: add the quickstart template to the style guide (#54496)
Closes DOCS-1609

## Problem

Quickstart pages have no template in the style guide.

## Solution

- **Template:** add `templates/quickstart.md`. Its outline gives each
numbered step a fixed heading ID, such as `[#query-data]`.
- **Router:** add the quickstart row to Choose a template in
`03-page-structure.md`.
- **Old contract:** delete `quickstarts/_template.mdx`.

## Preview links

The style guide isn't served on the docs site, so these link to the
files on the branch.

| File | Preview |
| --- | --- |
| Quickstart template |
[`templates/quickstart.md`](https://github.com/supabase/supabase/blob/docs/quickstart-template/apps/docs/style-guide/templates/quickstart.md)
|
| Template router |
[`03-page-structure.md`](https://github.com/supabase/supabase/blob/docs/quickstart-template/apps/docs/style-guide/03-page-structure.md#choose-a-template)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [ ] Moderate: good to have soon, not urgent
- [ ] Low: get to it when you can

## Review instructions

1. Open the quickstart template preview and read it.
2. Compare its outline with [Use Supabase with
React](https://supabase.com/docs/guides/getting-started/quickstarts/reactjs).
The headings match, except for the IDs.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-03 14:40:58 -08:00
Alexis Aguilar ccabb68033 fix(docs,examples): keep auth callback redirects within the app (#54500)
## Problem

Several auth callback and email confirmation examples redirect to the
`next` query parameter without checking it. A reader who copies one gets
an open redirect: anyone can send a sign-in link with `next` set to
another site, and the app sends the signed-in user there.

The affected examples are the SvelteKit, Astro, Remix, and Express tabs
of the PKCE flow partial, which all social sign-in pages include, and
the Next.js, Astro, Remix, and Express email confirmation handlers in
the password guide. The SvelteKit and Express tabs had a partial check,
but `//evil.com` and `/\evil.com` still got through. The SvelteKit
confirmation tabs and the Next.js reset tab in the password guide copy
`next` into the URL path. That keeps the user on the same site, but
turns a full URL into a broken path.

The example apps under `examples/` have the same problem. The Next.js
email confirmation route in `examples/auth/nextjs-full` has the same
open redirect. Two SvelteKit example apps copy `next` into the URL path,
which keeps the user on the same site but turns a full URL into a broken
path.

Resolves
[DOCS-1836](https://linear.app/supabase/issue/DOCS-1836/make-the-auth-callback-examples-redirect-only-within-the-app),
[DOCS-1840](https://linear.app/supabase/issue/DOCS-1840/make-the-auth-examples-under-examples-redirect-only-within-the-app),
and
[DOCS-1844](https://linear.app/supabase/issue/DOCS-1844/handle-full-url-and-query-string-next-values-in-the-confirmation).

## Solution

Each example now reads `next` as a URL against the request's own origin.
It keeps `next` only when the result uses `http` or `https`, has the
request's host, and its path doesn't start with `//`, then redirects to
that path. Anything else falls back to `/`.

The examples accept same-site full URLs as well as paths. The signup
email template on the password page sends `next={{ .RedirectTo }}`,
which is always a full URL, so a path-only check would send every new
user to `/`. #51567 proposed a path-only check for the same examples,
and this PR builds on it with full-URL support.

The redirect itself stays relative. An absolute URL built from the
request origin can point to an internal host when the app runs behind a
proxy. `URL.parse()` returns `null` for malformed input, so a bad `next`
value or `Host` header falls back to `/` instead of throwing.

Each check compares the host of `next` with the request's host. Behind a
proxy that terminates HTTPS, Express reports the request as `http`, so
comparing full origins would send every full-URL `next` to `/`. The
redirect carries only the path, so the scheme doesn't affect where the
user lands. Other schemes are rejected, because a URL such as
`custom://example.com/\evil.com` keeps the backslash in its path, and
browsers read `/\evil.com` as another site. The Express examples also
read `next` only when it's a string, because the Express 4 query parser
can return an object.

The Next.js tab of the PKCE partial already stays on the same site, so
it's unchanged. The SvelteKit confirmation tabs and the Next.js reset
tab in the password guide get the same check as the other tabs. On
success they redirect to the checked value. On failure, the SvelteKit
tabs redirect to a fixed error page. The Next.js reset tab now matches
the signup tab, so its redirect no longer carries `token_hash` and
`type`.

The email confirmation routes in three example apps get the same check:
`examples/auth/nextjs-full`, `examples/auth/sveltekit-full`, and
`examples/user-management/sveltekit-user-management`. The user
management example falls back to `/account`, the page its tutorial sends
users to. In the SvelteKit routes, a successful confirmation redirects
straight to the checked value, and a failed one redirects to a fixed
error page. Other query parameters on the confirmation link no longer
carry over. The Next.js example pins TypeScript 5.9.3, because
TypeScript 5.3 has no type for `URL.parse` and `next build` failed its
type check. The SvelteKit tutorial embeds the user management route, so
the tutorial shows the new code.

## Verification (`/test-the-docs`)

Each handler was extracted by script from the MDX on this branch, on
`master`, and on #51567, then mounted in a minimal app for its
framework. Each app ran against a local Supabase stack in the Compose
sandbox. Confirm handlers got a fresh `generateLink` token hash per
case. PKCE callbacks got a real code from a PKCE magic-link sign-in
through Mailpit, with the code verifier cookie.

Each route ran 12 `next` cases: none, `/welcome`, `/account?tab=1`, a
same-site full URL, `//evil.com`, `/\evil.com`, `https://evil.com/x`,
`javascript:alert(1)`, `http://`, `/<tab>/evil.com`, `/.//evil.com`, and
`/a/..//evil.com`. The same-site full URL uses the origin each server
reports for itself.

| Example | Framework | This branch | `master` |
| --- | --- | --- | --- |
| PKCE partial, SvelteKit tab | SvelteKit 2.70 + adapter-node | pass
12/12 | 2 cases off-site |
| PKCE partial, Astro tab | Astro 7.4 + @astrojs/node | pass 12/12 with
`Astro.*` patched (see below) | 5 cases off-site |
| PKCE partial, Remix tab | Remix 2.17 | pass 12/12 | 5 cases off-site |
| PKCE partial, Express tab | Express 5.3 | pass 12/12 | 2 cases
off-site |
| Password signup, Next.js tab | Next.js 16.5 | pass 12/12 | 5 cases
off-site |
| Password signup and reset, Astro tabs | Astro 7.4 | pass 12/12 each |
5 cases off-site each |
| Password signup and reset, Remix tabs | Remix 2.17 | pass 12/12 each |
5 cases off-site each |
| Password signup and reset, Express tabs | Express 5.3 | pass 12/12
each | 2 cases off-site each |

- `next build` type-checks the Next.js handler. `tsc --strict` reports
the same errors for the Remix and Astro handlers as on `master`.
- Express falls back to `/` on a malformed `Host` header without
crashing.
- #51567 also kept every route on the same site, and sent the same-site
full URL case to `/`.
- The unchanged examples stay on the same site in every case.
- After review, each of the 14 changed blocks ran in Node 22 against 32
`next` values. The cases include Express behind an HTTPS proxy, an
object `next` from the Express 4 query parser, and custom-scheme URLs
with a backslash in the path.
- The SvelteKit signup and reset tabs and the Next.js reset tab also ran
end to end in Node 22, with `redirect` and `verifyOtp` stubbed. A
same-site full URL lands on its path, `/account?tab=1` keeps its query,
and the error page URL has no `token_hash` or `type`. On `master`, the
same cases redirect to `/https://…`, to `/account%3Ftab=1`, and, in the
Next.js reset tab, to a URL that still carries `token_hash`.

### Example apps

Each example app was built and run in the Compose sandbox against a
local Supabase stack. Every case used a fresh signup token, so each
request ran a real `verifyOtp` and set a session cookie. The
`sveltekit-full` example has no build setup of its own, so its route ran
inside the user management app. Each route ran the 12 cases above, plus
the same host on the other scheme and an `ftp://` URL on the same host,
plus an invalid token to check the error redirect.

| Example | Framework | This branch | `master` |
| --- | --- | --- | --- |
| `auth/nextjs-full` | Next.js 16.5 | pass 14/14, error path passes | 5
cases off-site |
| `user-management/sveltekit-user-management` | SvelteKit 2.70 | pass
14/14, error path passes | on-site, but 9 of 12 cases land on a broken
path |
| `auth/sveltekit-full` | SvelteKit 2.70 | pass 14/14, error path passes
| on-site, but 9 of 12 cases land on a broken path |

- `next build` passes. With TypeScript 5.3.3, it fails with `Property
'parse' does not exist`.
- `svelte-check` reports the same 7 errors on this branch and on
`master`, all in the database types and the account form. None are in
the confirm route.
- Behind a proxy without forwarded-host handling, `next start` sees
`localhost:3000`, so a full-URL `next` falls back to the default page
there.

### Found while testing, not changed here

These problems are on `master` too, and they're outside the scope of
this fix:

- PKCE partial, Astro tab: `Astro.request` and `Astro.cookies` don't
exist in an API route, so the callback returns a 500 error. Tracked in
[DOCS-1841](https://linear.app/supabase/issue/DOCS-1841/make-the-astro-oauth-callback-example-run-in-an-api-route).
- Password guide, Remix confirm tabs: `setAll(key, value, options)`
doesn't match the `@supabase/ssr` signature, so no session cookie is set
after confirming. Tracked in
[DOCS-1842](https://linear.app/supabase/issue/DOCS-1842/make-the-remix-email-confirmation-examples-set-the-session-cookie).
- Password guide, Express confirm tabs: no `return` after the success
redirect, so the error redirect also runs. Express 5 logs
`ERR_HTTP_HEADERS_SENT`, and Express 4 exits the process. Tracked in
[DOCS-1843](https://linear.app/supabase/issue/DOCS-1843/stop-the-express-email-confirmation-examples-from-redirecting-twice).
- PKCE partial, Express tab: the callback ignores the result of
`exchangeCodeForSession`, so a missing code or a failed exchange still
redirects to `next`. Tracked in
[DOCS-1845](https://linear.app/supabase/issue/DOCS-1845/send-failed-code-exchanges-to-the-error-page-in-the-express-oauth).
- PKCE partial and password guide, Astro tabs: `setAll` drops the cache
headers that `@supabase/ssr` passes with the session cookies. Tracked in
[DOCS-1846](https://linear.app/supabase/issue/DOCS-1846/apply-the-cache-headers-from-supabasessr-in-the-astro-auth-callback).
- Email templates guide, server-side endpoint example: it redirects to
`redirect_to` without checking it. Tracked in
[DOCS-1847](https://linear.app/supabase/issue/DOCS-1847/check-redirect-to-before-redirecting-in-the-server-side-email-template).
- Next.js examples in the PKCE partial, the password guide, and the
WorkOS and Google sign-in guides: they import the Supabase clients from
`@/utils/supabase/`, but the client guide now creates them in
`lib/supabase/`. Tracked in
[DOCS-1848](https://linear.app/supabase/issue/DOCS-1848/import-the-nextjs-supabase-clients-from-libsupabase-in-the-auth).

## Review category (docs PRs only)

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [ ] Moderate: good to have soon, not urgent
- [x] Low: get to it when you can

## Review instructions

1. Check that each changed example only touches the `next` handling and
its redirect.
2. Check the changed tabs on the preview:
- [GitHub sign-in page on the
preview](https://docs-git-alexisa-docs-1836-supabase.vercel.app/docs/guides/auth/social-sign-in/auth-github):
the callback code for the SvelteKit, Astro, Remix, and Express tabs.
Every social sign-in page includes this partial.
- [Password guide on the
preview](https://docs-git-alexisa-docs-1836-supabase.vercel.app/docs/guides/auth/passwords):
under PKCE flow, every framework tab for signup confirmation and
password reset.
- [SvelteKit tutorial on the
preview](https://docs-git-alexisa-docs-1836-supabase.vercel.app/docs/guides/getting-started/tutorials/with-sveltekit#confirmation-endpoint):
the confirmation endpoint embeds the user management example's route.
3. Check the three confirm routes under `examples/` and the `typescript`
pin in `examples/auth/nextjs-full/package.json`.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
Not used: only code inside existing snippets and example apps changed,
no prose. The snippets were verified with `/test-the-docs`.
2026-12-03 12:16:02 -07:00
Snehil ShahandLeandro Pereira 4697c4d836 docs(realtime): document acked broadcast error codes (#51287)
Updates the docs following the changes in
https://github.com/supabase/realtime/pull/2280 as part of
https://github.com/supabase/realtime/releases/tag/v2.140.9:

- Corrects the note on RLS denials not being communicated. It is now
returned as an error code (when `ack` is true).
- Adds a table of the error codes returned to acknowledged broadcasts.

Ref: https://github.com/supabase/realtime/issues/2273

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

Provide a clear numbered procedure that the PR reviewer can walk
through.

1. For example, `Open the live and preview links side-by-side.`
2. For example, `See the issue is fixed.`

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
Co-authored-by: Leandro Pereira <leandro@leandro.io>
2026-12-03 18:18:47 +00:00
Ganiya 874fbcae03 Fix grammatical errors in error codes documentation (#54534)
## Problem

While reviewing the Auth error codes documentation for troubleshooting,
I noticed several minor grammar and readability inconsistencies
throughout the guide.

For example, in the HTTP status codes section, the 500 error uses
"Indicate" instead of "Indicates" (breaking the verb tense pattern of
the other bullets). Additionally, some sentences in the guide were
slightly run-on or lacked proper commas, making them harder to read.
There is no specific GitHub issue for this; it is a general
documentation cleanup.

## Solution

I corrected grammatical errors and improved sentence flow for better
readability across the Auth error codes page.

Key changes include:
- Adding missing commas for readability (e.g., "Client errors differ by
language, so do refer...")
- Fixing verb tenses to match list formats (e.g., "Indicates that the
Auth server...")
- No technical content, code snippets, or error code definitions were
changed.

## Review category (docs PRs only)

- [x] Low: get to it when you can

## Review instructions

1. Open the changed file
`apps/docs/content/guides/auth/debugging/error-codes.mdx` and review the
diff.
2. Confirm that the grammatical changes do not alter the technical
meaning of the Auth error codes.
3. Ensure the `<$Show>` conditional tags remain intact and untouched.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-03 14:43:42 +00:00
Alexis Aguilar c9bb8cd1c4 fix(docs): fix the accessibility scan violations on 4 guides (#54497)
## Problem

The daily Docs Accessibility Scan fails on 5 guides with blocking
violations, tracked in
[DOCS-1817](https://linear.app/supabase/issue/DOCS-1817/fix-the-accessibility-issues-the-daily-docs-scan-finds-on-5-guides).
This PR fixes 4 of them.

- Deep linking, Expo social sign-in, and push notifications repeat the
same heading text in several tabs, so two or more headings get the same
`id`. Deep linking also includes the "Universal links" partial twice.
Screen readers and in-page links can land on the wrong heading.
- On Resources, the "Migrate to Supabase" heading is an `h3` with no
`h2` above it.

The [run on
2026-12-02](https://github.com/supabase/supabase/actions/runs/46817154464)
also failed on 8 pages that returned 404. Those pages had merged to
`master` during a code freeze, so production didn't serve them yet. They
return 200 now, and
[DOCS-1839](https://linear.app/supabase/issue/DOCS-1839/scan-only-the-pages-production-serves-in-the-daily-docs-accessibility)
tracks keeping the scan from failing that way.

## Solution

- **Repeated headings in content:** The first copy of each heading keeps
its anchor. Each later copy gets a custom anchor named after its tab,
such as `#deep-link-config-swift`. The partial takes an anchor suffix
through `variables`, so each include gets its own anchor. No page in the
repo links to the changed anchors, and the visible heading text stays
the same.
- **Resources:** The "Migrate to Supabase" and "Postgres resources"
headings are now `h2`. Their anchors stay the same, so the blog posts
that link to `#migrate-to-supabase` keep working. The headings render at
`h2` size.

Advisors also has duplicate heading `id` values. #53313 fixes them by
giving IDs only to the open tab, which keeps links to each lint's
headings working. This PR leaves Advisors to #53313.

## Preview links

| Guide | Live | Preview | Check |
| -- | -- | -- | -- |
| Deep linking |
[/docs/guides/auth/native-mobile-deep-linking](https://supabase.com/docs/guides/auth/native-mobile-deep-linking)
| [Swift tab, Deep link
config](https://docs-git-alexisa-docs-1817-supabase.vercel.app/docs/guides/auth/native-mobile-deep-linking?queryGroups=platform&platform=swift#deep-link-config-swift)
| `#deep-link-config`, `#universal-links` |
| Expo social sign-in |
[/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
| [Expo tab,
Prerequisites](https://docs-git-alexisa-docs-1817-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in?queryGroups=apple-authentication&apple-authentication=expo-apple-authentication#prerequisites-expo)
| `#prerequisites`, `#ios` |
| Push notifications |
[/docs/guides/functions/examples/push-notifications](https://supabase.com/docs/guides/functions/examples/push-notifications)
| [FCM tab, Supabase
setup](https://docs-git-alexisa-docs-1817-supabase.vercel.app/docs/guides/functions/examples/push-notifications?queryGroups=platform&platform=fcm#supabase-setup-fcm)
| `#supabase-setup`, `#send-push-notification` |
| Resources |
[/docs/guides/resources](https://supabase.com/docs/guides/resources) |
[Migrate to
Supabase](https://docs-git-alexisa-docs-1817-supabase.vercel.app/docs/guides/resources#migrate-to-supabase)
| "Migrate to Supabase" and "Postgres resources" are `h2` |

## Verification

- The `@a11y` spec passes for the 4 fixed guides on the preview
deployment and against a local docs server, run through `pnpm
e2e:docs:a11y`.
- The rendered HTML for each guide has no duplicate `id` values.
- `pnpm check:removed-anchors --base origin/master` reports no removed
linked anchors.
- The markdown export (`pnpm build:guides-markdown`) shows the original
heading text without the custom anchors.
- Docs typecheck, ESLint, and oxfmt pass on the changed files.

## Review category (docs PRs only)

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [x] Moderate: good to have soon, not urgent
- [ ] Low: get to it when you can

## Review instructions

1. Open each preview link in the table above. Each one opens the right
tab at a heading that changed.
2. In the browser console, run
`document.querySelectorAll('[id="<anchor>"]').length` for each anchor in
the **Check** column. Each returns `1`.
3. On the Resources preview, check that "Migrate to Supabase" and
"Postgres resources" are `h2` headings.

## Checklist

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

Part of
[DOCS-1817](https://linear.app/supabase/issue/DOCS-1817/fix-the-accessibility-issues-the-daily-docs-scan-finds-on-5-guides).
2026-12-02 18:03:14 -07:00
hallidayo 1ba714978e fix(docs): iOS/Swift guides do not compile (#54480) 2026-12-02 17:14:18 -03:00
Pedro Rodrigues 1d269914f7 docs(mcp): document scoped OAuth access for MCP (#54156)
## Problem

Static OAuth apps can now turn on scoped access (member permissions and
project selection), and the hosted Supabase MCP server enforces those
grants on connections and tool calls. The MCP docs still tell manual
OAuth app users to grant write access to all scopes, and the OAuth
integration guide doesn't cover how MCP behaves with scoped grants.

## Solution

Add a new `MCP with scoped OAuth access` page under the Supabase OAuth
Integration section, building on #53658. It covers which OAuth client
types use scoped grants (static apps with scoped access on vs. off, and
dynamically registered clients unchanged), account mode vs. project mode
enforcement (including `list_projects` discovery, `list_organizations`
returning empty on specific-project grants, parent-project grants for
preview branches, and uniform `403` errors at connect time), read-only
SQL when a grant has `database:read` without `database:write`, and
missing-scope vs. live permission denials with their recovery steps.

Update the MCP page's Manual OAuth app note, Configuration options
examples, and Recommendations to separate URL project targeting from
credential-level scoping, link to the new page from `scoped-access.mdx`
and `build-a-supabase-oauth-integration.mdx`, and wire it into both
navigation menus.

## Verification

- [MCP with scoped OAuth access
preview](https://docs-git-pedrorodrigues-ai-1343-document-mcp-sc-ec523d-supabase.vercel.app/docs/guides/integrations/build-a-supabase-oauth-integration/mcp-scoped-access)
- [MCP docs
preview](https://docs-git-pedrorodrigues-ai-1343-document-mcp-sc-ec523d-supabase.vercel.app/docs/guides/ai-tools/mcp#manual-oauth-app)

Closes AI-1343
2026-12-02 19:31:51 +00:00
Sreyas Udayavarmanandanthony lio c2ff38bb40 Update resolution for max_clients limit issue (#54458)
Consolidate resolution steps for max_clients limit.

## Problem

Updating max_clients limit separately isn't supported, its bind to
compute instance.

## Solution

Clarify that increasing max_clients limit requires scaling compute
instance.

## Review category (docs PRs only)

- Low: get to it when you can

---------

Co-authored-by: anthony lio <lionnet.ant@gmail.com>
2026-12-02 13:52:07 +05:30
3f0edcecd1 docs: scoped oauth apps [CTRL-2123] (#53658)
## Problem

Scoped OAuth Apps M1 adds two settings to OAuth apps: **Use the
permissions of the person who connects** and **Ask for specific
projects**. Together they let any organization member authorize an app
with their own role, and let people limit an app to the projects they
choose. The settings are in private beta.

The current OAuth docs assume an Owner or Administrator authorizes an
app for the whole organization, and they describe tokens as having full
Management API access. App authors have no guidance on what changes when
they turn on either setting. Organization admins have nothing on
reviewing or revoking member grants.

Linear:
[[CTRL-2123]](https://linear.app/supabase/project/oauth-app-granular-permissions-scoped-oauth-apps-23de6daf1501)

## Solution

Four new guides under `build-a-supabase-oauth-integration/`, plus edits
that weave scoped access into the existing Build an Integration pages
and the docs nav.

| Page | Type | For |
| --- | --- | --- |
| Scoped access for OAuth apps | Explainer | App authors deciding
whether to turn the settings on |
| Update your app for scoped access | Guide | App authors changing their
code, including which roles can authorize each scope |
| Test scoped access on a staging app | Guide | App authors testing
before production |
| Manage OAuth app access | Guide | Organization admins and members
reviewing and revoking grants |

Edits to existing pages:

- **Build a Supabase OAuth integration:**
- The intro no longer says tokens have "full access", and points to
scoped access.
  - The authorize parameters add `project_ref`.
- The callback section covers a canceled authorization
(`error=access_denied` and `state`) and explains `scope` and
`project_refs`, including `project_refs` being `null` for an
all-projects grant.
  - The refresh section notes that a member leaving ends their grant.
- **OAuth scopes:** a new "Scopes and member roles" section links to the
role table.
- **Navigation:** the four pages are added to "Supabase OAuth
Integration" after "OAuth scopes" as **Scoped access**, **Update your
app**, **Test on staging** and **Manage app access**. The entries are
added in both nav files: `features/IaNav/option1/integrations.ts` and
`components/Navigation/NavigationMenu/NavigationMenu.constants.ts`.

Key choices:

- **Explainer separate from the guides.** The overview has no
instructions, so authors can decide whether to turn the settings on
before reading the code changes.
- **Role table in the update guide.** It's derived from the scope and
role mapping, and sits next to the advice it supports. The OAuth scopes
page links to it rather than duplicating it.
- **Partial grants are described as not available in the dashboard.**
The pages point authors to the "Handle scopes missing from the grant"
section instead of naming an API field.
- **No rollout dates.** Dates belong in the changelog and partner
emails, per `03-page-structure.md`. The pages state private beta status
and the support-ticket route only for the initial TPP rollout.

## Still to be added
- **No API reference.** `project_ref` and `project_refs` come from the
Management API OpenAPI spec, so field-level detail is out of scope here.

## Preview links

See PR preview
Head to `docs/guides/integrations/build-a-supabase-oauth-integration`


### Self-review

Reviewed with `review-the-docs` (local self-review) before opening.

- **Passed:** voice, structure, frontmatter, internal links, anchors and
nav. Code snippets run with stub values.
- **Formatting:** Prettier check passes on all changed files. A
follow-up commit fixed table alignment in three new guides.
- **Edits to existing pages:** tested against the live text of both
pages.
- **Still to run:** `pnpm build:guides-markdown`, and the `WORD_LIST.md`
two-pass check, including "re-authorize" and "turn on" vs "select".

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-12-02 12:23:57 +07:00
Hemant KumarandNik Richers 4f1226a413 docs(functions): read prompt from query string in Llamafile OpenAI SDK example (#54191)
## Problem

Fixes #54190

The Running AI Models page has an example that runs Llamafile through
the OpenAI Deno SDK. The function reads the prompt with `await
req.json()`. The curl command on the same tab sends a GET request with
the prompt in the query string, so there is no body. `req.json()` throws
`SyntaxError: Unexpected end of JSON input` and the function fails
before it reaches Llamafile.

## Solution

Read the prompt from the URL, with the same two lines the Ollama tab and
the other Llamafile tab on this page already use.

Tested:

- Ran the handler in Deno 2.9.8 and called it with the curl command from
the page. The handler ran without the `withSupabase` wrapper, which does
not read the request body, and the OpenAI call was replaced with an
echo, since the error happens first. The old code threw `Unexpected end
of JSON input`. The new code returned the prompt.
- `oxfmt --check` (version 0.79.0, from the repo catalog) passes on the
changed file.

Not tested: a real Llamafile server and the docs site build.

## Review instructions

1. Open [Running AI
Models](https://supabase.com/docs/guides/functions/ai-models) and go to
**Running locally** > **Mozilla Llamafile** > **OpenAI Deno SDK**.
2. Compare the function code with the curl command in "Execute the
function". The curl command sends a GET request with no body.
3. In the diff, see that the function now reads `prompt` from the query
string, like the other two tabs.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-12-01 19:42:09 -07:00
BrilliancoderandNik Richers b3ddaa053a docs: fix grammar in sessions guide (#54212)
Fixes two small grammar errors in the User sessions guide: "All requests
that require authentication has" → "have", and "termination of user's
sessions" → "termination of users' sessions".

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-12-01 19:42:01 -07:00
BrilliancoderandNik Richers 46a27e1aaf docs: fix grammar in signout guide (#54218)
Fixes a grammar error in the Sign out and scopes section of the signout
guide by changing "but keep sessions" to "but keeps sessions".

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-12-01 19:41:53 -07:00
BrilliancoderandNik Richers 7d9cbcd2aa docs: fix grammar in managing user data guide (#54217)
Fixes a grammar error in the Exporting users section of the managing
user data guide by changing "table" to "tables".

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-12-01 19:41:46 -07:00
JerryandNik Richers 77f33f115b fix(docs): use the OAuth client columns in the audit query (#54098)
## Problem

Fixes #54097.

The OAuth token security guide's audit query uses columns that no longer
exist. `oauth_clients.client_id` was dropped in auth migration
`20250903112500`, and `id` is now the public client ID. The table has
`client_name`, not `name`, and `sessions` stores the client in
`oauth_client_id`, which references `oauth_clients.id`.

The query also filters on `s.created_at`. Sessions last indefinitely and
are refreshed while a user stays active, so a long-lived session
refreshed yesterday is excluded.

## Solution

- Select `oc.id AS client_id` and group by `oc.id`.
- Use `oc.client_name`.
- Join on `s.oauth_client_id = oc.id`.
- Put the 30-day window in the join on `coalesce(s.refreshed_at,
s.created_at)`, so sessions created or refreshed in the last 30 days
count and clients with a count of 0 remain.
- Name the count `users_with_recent_sessions` so it describes the
measure.

This changes one SQL block in one `.mdx` file.

## Verification

Checked against the auth schema from the `supabase/auth` migrations,
including `sessions.refreshed_at`.

Tested on `supabase/postgres:17.6.1.143` with `auth.oauth_clients` and
`auth.sessions` tables that match the current columns. The previous
query fails with `column oc.client_id does not exist`. With a session
created 60 days ago and refreshed yesterday, the creation-time filter
returns `0`, while the refresh-time filter returns `1`. A new session
with no refresh still counts through the `created_at` fallback, and a
client with no sessions returns `0`.

## Review instructions

1. Open `apps/docs/content/guides/auth/oauth-server/token-security.mdx`.
2. Confirm the audit query selects `oc.id AS client_id`, uses
`oc.client_name`, joins on `s.oauth_client_id = oc.id`, and filters on
`coalesce(s.refreshed_at, s.created_at)` inside the join.
3. Run the query against a project with the OAuth server enabled. It
should return every client with the number of users whose session was
created or refreshed in the last 30 days.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

I used AI to help debug and verify this, but I reviewed the change and
am submitting the PR myself.

---------

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-12-01 19:41:37 -07:00
Danny White 59cddd41a9 feat(studio): group database access settings (#54350)
> [!WARNING]
> This PR relies on #54282 being merged first.

## Problem

Database password and token access appear as separate sections in
Database Settings, although both control connections to Postgres.

## Solution

Group the existing controls under **Database access**, with **Password
access** first and the switch beside **Token access**. Nest **Members**
inside the Token access card and label its action **Add member**.
Preserve the existing feature gates, permissions, toggle behaviour,
dialogs and section anchors. Use shared card headings for Members,
centre the token switch beside its description, and darken the Members
table header. Update the matching token-access and password-reset docs
instructions.

```text
Database access
├── Password access
└── Token access                 [switch]
    └── Members                  [Add member]
```

| After |
| --- |
| <img width="735" height="818" alt="CleanShot 2026-12-01 at 15 56 50"
src="https://github.com/user-attachments/assets/f1207a2f-80d5-480a-9529-e110b960f427"
/> |
| _App [token] access coming separately in
https://github.com/supabase/supabase/pull/53917._ |

## Review instructions

1. Open a project's **Database → Settings** page. Check that **Database
access** contains **Password access** first, with the existing **Reset
database password** button.
2. With the database token access preview enabled, check that **Token
access** has its switch on the same row and **Members** appears inside
the same card when enabled. Check that **Add member** opens the existing
access rule sheet.
3. Check the existing enable confirmation and password reset dialog.
Projects requiring SSL enforcement or a Postgres upgrade should keep
their existing notices and actions.
2026-12-02 00:03:43 +00:00
Danny White 30a1b38da0 feat(studio): rename temporary access to database token access (#54282)
## Problem

The database access preview still uses “Temporary access” across its
settings and member rules.

## Solution

Use “Database token access” for the feature and “Member access” for
member rules. Update the preview, settings, dialogs, feedback, member
status messages and docs together. Move the guide to
`/guides/platform/token-access`, permanently redirect the old URL, and
preserve existing section anchors.

## Review instructions

1. Open [the Studio
preview](https://studio-staging-git-dnywh-database-token-access-naming-supabase.vercel.app),
then Feature previews and find **Database token access**. Enable the
preview for a supported project, then open [Database
Settings](https://studio-staging-git-dnywh-database-token-access-naming-supabase.vercel.app/project/_/database/settings).
2. Check the **Database token access** heading, **Allow token access**
switch and **Member access** table. Open **Add rule** and an existing
rule to check the sheet titles. Open a rule’s delete confirmation and
cancel it.
3. With an assigned role, check the access status above the member
table. As a member without management permission, check the access
notice uses the same feature name.
4. Open the [database token access guide in the docs
preview](https://docs-git-dnywh-database-token-access-naming-supabase.vercel.app/docs/guides/platform/token-access).
Check the guide and navigation use the new name, the dashboard
instructions match Studio, and the existing section links from the
member guide still work. Open `/docs/guides/platform/temporary-access`
and its `.md` variant to check they permanently redirect to the new
URLs.

| Before | After |
| --- | --- |
| <img width="726" height="367" alt="CleanShot 2026-11-30 at 16 06 00"
src="https://github.com/user-attachments/assets/be351f0c-d578-4289-8785-5c4e69a254a7"
/> | <img width="729" height="374" alt="CleanShot 2026-11-30 at 16 05
38"
src="https://github.com/user-attachments/assets/f02b470d-ef1a-4b6c-bdbb-20fe10b847c6"
/> |
2026-12-02 00:03:43 +00:00
Miranda Limonczenko 45b5235705 docs: pass Postgres Changes eval (#54332)
Closes DOCS-1815

## Problem

The Postgres Changes page is failing. 

The reason is this:
The Postgres Changes quick start sets up the `anon` role only. A reader
who secures the table for signed-in users gets no events and no error.
The publication step and replica identity sit in separate sections, so a
reader can miss either.

I have verified that this change fixes the issue in the Eval. 

This additionally breaks out many unused Eval lines into another topic.

## Solution

- **Prepare a table:** a new section that lists the three requirements,
how to set each, and what a reader sees without it.
- **Signed-in users:** a policy that sends each user only their own
rows.
- **Filters page:** the operator reference moves to its own page.
`#available-filters` still resolves.
- **Corrections:** the publication step names `todos`, and the old
record section says what `UPDATE` and `DELETE` carry.
- **Style and structure:** imperative headings, a description, and Next
steps.

| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| Docs |
[/docs/guides/realtime/postgres-changes](https://supabase.com/docs/guides/realtime/postgres-changes)
|
[/docs/guides/realtime/postgres-changes](https://docs-git-docs-realtime-table-requirements-supabase.vercel.app/docs/guides/realtime/postgres-changes)
| Prepare a table |
| Docs | New page |
[/docs/guides/realtime/postgres-changes-filters](https://docs-git-docs-realtime-table-requirements-supabase.vercel.app/docs/guides/realtime/postgres-changes-filters)
| Combining filters with `AND` |

## Manual testing

1. Open the preview of `/docs/guides/realtime/postgres-changes` and go
to **Prepare a table**. The table lists three requirements.
2. Open `/docs/guides/realtime/postgres-changes#receiving-old-records`.
The page lands on **Receive old records**.
3. In the sidebar, click **Postgres Changes filters**. The page lists
all 13 operators.
2026-12-01 10:26:52 -08:00
Miranda Limonczenko 58b468916c docs(auth): Solve eval for Anonymous sign-in page (#53489)
Closes DOCS-1676

## Problem

The drafted Eval for this guide has one failing check. This PR fixes
that check and also runs the `edit-the-docs` and `test-the-docs` skill
to improve the page as a whole.

The Anonymous Sign-Ins guide tells readers to check the `is_anonymous`
JWT claim in RLS policies. When a guest links an email, phone, or OAuth
identity, the user becomes permanent at once, but the token the client
holds keeps `is_anonymous: true` until it refreshes. A policy on the
claim refuses that new customer with `42501` until then.

## What changed

- **Access control:** a caution on the stale claim, and a policy that
reads `auth.users.is_anonymous` through a `security definer` function in
a non-exposed schema with `search_path = ''`.
- **Convert an anonymous user:** a "Refresh the session after linking"
step with `refreshSession()`.
- **Whole-page edit**, one commit per change type:
- Style: wording, word list, sentence-case and imperative headings, no
time-anchored text.
- Structure (moves only): Access control before Convert, identity
conflicts under Convert, the Next.js caution under Sign in.
- Technical: the `anon` key uses the `anon` role, not `anonymous`; the
opening caution no longer says to check the JWT claim; the
existing-account sample throws instead of a top-level `return`.

Renamed headings with no inbound links: Resolving identity conflicts,
Linking an anonymous user to an existing account, Automatic cleanup.
`#access-control` (Studio) and `#link-an-email--phone-identity` are
unchanged.

## Eval on the preview

`build-docs-016-auth-anonymous` with `REFERENCE` pointed at the preview,
3 runs ([workflow
run](https://github.com/supabase/evals/actions/runs/43983385855)).

| Run | Score | Guest who just made an account can post a review |
Failed check |
| --- | --- | --- | --- |
| Baseline (published page) | 9/10 in all 3 runs | Fail in all 3 | Guest
who just made an account can post a review |
| 1 | 10/10 | Pass | None |
| 2 | 9/10 | Pass | Agent read the guide |
| 3 | 9/10 | Pass | Agent read the guide |

All 3 runs fetched the preview and wrote the `security definer` policy.
The guide-read check only counts fetches from `supabase.com`, so it
can't pass on a preview. Run 1 passed it because that agent also opened
the published page.

## Manual testing

1. Open the [Anonymous sign-ins
preview](https://docs-git-docs-anonymous-claim-refresh-supabase.vercel.app/docs/guides/auth/auth-anonymous).
2. Check the new caution and function example under **Access control**,
and the new **Refresh the session after linking** section.
3. Click the anchor links between the two sections and to the RLS guide.
2026-12-01 10:13:18 -08:00
Miranda Limonczenko 7c57f91538 docs: Solve eval for Enable email OTP (#54327)
## Problem

The passwordless email guide says to add `{{ .Token }}` to the **Magic
link or OTP** template to send a code. When email confirmations are on,
a first-time sign-in sends the **Confirm sign up** email instead, so new
users still get a link. This is the failure the passwordless email guide
eval catches.

Closes DOCS-1814

## Solution

This PR solves the Eval checks.

**Enable email OTP** now covers both templates:

- It says which template each user gets.
- It has you add `{{ .Token }}` to both **Magic link or OTP** and
**Confirm sign up**.
- It notes that a link left in either template still works.

The rest of the PR is style, structure, and template changes. Existing
anchors still resolve.

## Manual testing

1. Open the [preview
page](https://docs-git-docs-email-otp-confirm-signup-supabase.vercel.app/docs/guides/auth/auth-email-passwordless#enabling-email-otp)
and check that it lands on **Enable email OTP**.
2. Click the **Magic link or OTP** and **Confirm sign up** template
links and check that each opens its template in the dashboard.
2026-12-01 10:13:12 -08:00
Guilherme Souza 51fa9b8e8d docs: mark C# and Kotlin SDKs as official (#54429)
## Problem

The C# and Kotlin client libraries are now official Supabase SDKs.
Several places in the docs and README still call them community
libraries.

## Solution

- **Client libraries page**: move Kotlin from "Community libraries" to
"Official libraries". C# was already listed as official.
- **Kotlin reference intros (v1, v2, v3)**: replace the "not an official
library" note with a note that supabase-kt is official. The thanks to
the original maintainer and contributors stays.
- **Docs nav**: drop the `community: true` flag on the Kotlin entry in
both nav configs.
- **Getting Started stepper**: remove the "Community SDK" badge and the
`isCommunity` field, which only Kotlin used.
- **README**: move the C# and Kotlin rows into the Official section.
- Point supabase-kt links in the changed spots at
`supabase/supabase-kt`.

Not changed:
- Links to repos still in the `supabase-community` org (for example
`postgrest-csharp` and `gotrue-csharp`) and old release-note issue
links.
- `guides/getting-started/features.mdx`. It redirects to `/features`, so
the docs app never serves it.
- The v4 Kotlin note that credits the community for creating
supabase-kt. It's a thank-you, not a claim that the SDK is unofficial.

## Review category (docs PRs only)

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [x] Moderate: good to have soon, not urgent
- [ ] Low: get to it when you can

## Review instructions

1. Open `/docs/guides/api/rest/client-libs` and check that Kotlin is in
the official table.
2. Open `/docs/reference/kotlin/introduction` and check that the note no
longer says the library is unofficial.
3. Open the docs nav reference menu and check that Kotlin has no
community marker.
4. Open the Getting Started page, pick the Kotlin quickstart, and check
that no "Community SDK" badge shows.
5. Check the README client libraries table.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-01 14:42:00 -03:00
b24330e6bc docs(storage): fix create role statement in custom roles guide (#53724)
## Problem

The first step of the Storage "Custom Roles" guide uses `create role
'manager';`. Role names are identifiers, not string literals, so
Postgres rejects it with `syntax error at or near "'manager'"`. Every
later step in the guide depends on that role.

Closes #53723

## Solution

Remove the single quotes: `create role manager;`. The rest of the page
already uses the unquoted name (`grant manager to authenticator;`, `to
manager`).

## Review instructions

1. Open the [Custom Roles
guide](https://supabase.com/docs/guides/storage/schema/custom-roles) and
look at the first SQL block: `create role 'manager';` is a syntax error
in Postgres (reproduced with the Postgres parser, see #53723).
2. Open the preview of this PR. The block is now `create role manager;`,
which parses, and the following `grant` statements refer to the same
unquoted name.
3. Run `pnpm test:prettier`. It passes for this file with the repo's
`prettier.config.mjs`.

I also parsed every `sql` block under `guides/storage/schema` with the
Postgres parser (`libpg-query`). All 7 parse after this change.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
(Not run: this is a one-token correction to an existing SQL statement.)

Co-authored-by: Santhosh-x23 <185920429+Santhosh-x23@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-12-01 10:10:03 -07:00
b53403e1d7 docs(integrations): add Build a Supabase integration guide (#54088)
## Problem

The steps to build a Supabase integration are spread across five pages:
the Partner Catalog page, creating an OAuth app, OAuth scopes, the
partner install flow, and the Management API reference. A partner has no
single page that says where to start or what to do next. Linear:
DOCS-1720.

## Solution

Add one guide, **Build a Supabase integration**, as the first item under
**Build Your Own** in the integrations sidebar. It does not repeat the
detail on the other pages. It links to them.

- **The path at a glance:** two short paths. Partner Catalog: apply,
build a landing page, publish. Integration: apply, build the OAuth flow,
build the integration, publish.
- **Apply to the Partners program**, then **Choose: Partner Catalog or
Integration**, a comparison table with wireframe images (SVG, light and
dark).
- **Partner Catalog: Build your landing page** and **Integration**
(build the OAuth flow, build the integration), each with "Build it"
cards that link to the top of the existing page.
- **Publish:** ask the partner manager to list the partner on the
Partner Catalog or the Integrations page.
- Removes the redirect from
`/docs/guides/integrations/build-a-supabase-integration` to the OAuth
guide, so the new page is reachable at that URL. The old `/oauth-scopes`
redirect stays.
- The progression and card data is in
`apps/docs/data/content-listings/build-a-supabase-integration.data.ts`.

Not in this PR: edits to the existing pages. The cards link to page
tops, so nothing here depends on those edits.

## Please check

- The five progression icons are placeholders from the built-in set. New
icons are coming.
- The table images sit inside table cells with a fixed width. I checked
them in the dev server only.
- I rendered the page with `pnpm dev` and ran `oxfmt --check` on the
changed files. I did not run the docs tests or `build:guides-markdown`.
- Two details are unverified: how partners hand their public key to
Supabase for a signed redirect, and partner status callbacks. The guide
does not describe either.
- The Dashboard Integrations tab wireframe is a drawing, not a
screenshot.

## Preview links

| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| Docs |
[/docs/guides/integrations/build-a-supabase-integration](https://supabase.com/docs/guides/integrations/build-a-supabase-integration)
(redirects to the OAuth guide until this merges) | Vercel bot comment |
`The path at a glance` |

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: John Stokvis <345546350+stokvis-at-supabase@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: John Stokvis <johnstokvis@Johns-MacBook-Pro.local>
2026-12-01 09:53:58 -06:00
cebd7a5eba docs(ref): add Kotlin v4 alpha reference (#54384)
## This PR

- Adds a v4 alpha reference for Kotlin at `/reference/kotlin/v4`, using
the prerelease flag from #53896.
- v3 stays the default at `/reference/kotlin`. v4 shows the alpha notice
and is listed under "Prereleases" in the version menu.
- `spec/supabase_kt_v4.yml` is the v3 spec with links updated to
`supabase/supabase-kt`. The API is the same in v4.
- New `introduction`, `installing` (with `io.supabase` coordinates) and
`upgrade-guide` pages under `docs/ref/kotlin/v4/`.

## Why

- supabase-kt `4.0.0-alpha-1` is on Maven Central. It's the first
official release of the Kotlin SDK and moves it to the `io.supabase`
Maven group and package. The current reference only shows the v3
coordinates.

## Note

- Guides, quickstarts and the existing v3 pages are unchanged. They
switch to `io.supabase` with the stable 4.0.0 release.
- Search doesn't index prerelease versions yet, same as Swift v3.
- I didn't run the docs build locally. Please check
`/docs/reference/kotlin/v4` and
`/docs/reference/kotlin/v4/upgrade-guide` on the preview.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Safa <4990386+safaorhan@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:04:28 +03:00
Miranda Limonczenko 450939ce86 docs: fix the pages the Option 1 nav friction logs got stuck on (#53881)
Part of DOCS-1739

## Problem

People who tried the Option 1 navigation got stuck on these pages:

- **Slow queries:** readers looked for a way to debug a slow query and
didn't find the guide in the nav. Its title, "Log slow and failing
queries", names the mechanism, not the task.
- **JWT:** The Supabase way to build says Auth "issues a signed JWT"
without saying what a JWT is.
- **Docker self-hosting:** the guide opens with its own contents list,
which repeats the table of contents beside it.
- **Launch readiness:** readers who opened Deploy to production to ask
"am I ready to launch?" found a page about branching and environments.
Neither checklist is linked from it.

## Solution

- **Slow-query title.** The title becomes "Find slow and failing
queries", and the nav label in both navigations becomes "Find slow
queries". The description still says "log slow queries", so search keeps
matching. Five inbound links now use the new title.
- **JWT link.** The first mention reads "JSON Web Token (JWT)" and links
to the JWT guide.
- **Launch intro.** Two sentences near the top of Deploy to production
link the production checklist and the production security checklist.
- **Docker contents list.** The in-page list is gone. Nothing linked to
its anchor.


## Manual testing

1. Open [the slow-query guide on the
preview](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/observability/log-slow-queries).
The title reads "Find slow and failing queries", and the sidebar entry
reads "Find slow queries".
2. Open [The Supabase way to
build](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/getting-started/the-supabase-way-to-build).
Under Auth, "JSON Web Token (JWT)" links to the JWT guide.
3. Open [Deployment and
branching](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/deployment).
The third paragraph links both production checklists.

4. Open [Self-hosting with
Docker](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/self-hosting/docker).
The page goes from the intro straight to Before you begin, with no
Contents list.
2026-11-30 11:10:20 -08:00
Miranda Limonczenko 64051f3977 docs: move the Option 1 nav pages readers couldn't find (#53882)
Part of DOCS-1738

## Problem

People who tried the Option 1 navigation couldn't find some pages in the
nav:

- **Preview branches on Vercel:** five of eight readers struggled. The
item sat two rows below Vercel Marketplace and started with "Preview",
so a scan for "Vercel" stopped too early.
- **Rotate a leaked API key:** readers looked under Security and
compliance. The nav listed it under Start, inside API keys.
- **Pause a paid-plan project:** the page sat inside organization
transfers.
- **Start:** API keys came before the quickstarts and tutorials that new
readers come to Start for.
- **Realtime:** readers expected it next to Database, Auth and Storage,
in the home page's order. The nav put it inside "REST, GraphQL and
Realtime".
- **Auth sign-in providers:** about 20 OAuth providers filled the Auth
sidebar, above the other sign-in methods.
- **Observability:** Logs and monitoring kept the layout from before the
Observability regroup in #50074. It also left out the Observability
overview and Logs in the CLI.

## Solution

- **Vercel.** The item becomes "Vercel preview branches" and sits next
to Vercel Marketplace. The Marketplace page and Deploy to production
link to it. Those two page edits ship to all readers, not only Option 1.
- **Rotate a leaked API key.** The item moves to Security and
compliance. The API keys page already links to it.
- **Paid-plan pausing.** The item moves next to Free project pausing.
- **Start order.** Quickstarts and tutorials come first. API keys and
the legacy-key migration follow.
- **Realtime.** Realtime gets its own sidebar and sits after Storage in
Products. The APIs sidebar becomes "REST and GraphQL APIs". Products now
has 8 items, one over the proposal's 7-item rule, by decision.
- **Observability groups.** Logs and monitoring uses today's task
groups: Read project data, Detect and diagnose, Agent prompts, and
Configure and export. It lists the overview and Logs in the CLI again.
The label stays "Logs and monitoring". Metrics API and Platform webhooks
keep their own groups.
- **Auth SDK entries.** "Server SDK" and "Middleware SDK" become "Server
SDK reference" and "Middleware SDK reference", so readers know the link
leaves the guides. The Self-hosting reference entries already use that
pattern.
- **Sign-in options.** "Social sign-in (OAuth)" and "Other sign-in
methods" merge into one "Sign-in options" group. The providers sit in a
collapsible "Social sign-in (OAuth)" group inside it. The level-size
allowlist follows the new path.


## Manual testing

1. Open [Broadcast with Option 1 on the
preview](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/realtime/broadcast?docs-ia-mvp-v1=option-1).
The sidebar header reads "Realtime", with a button back to Products.
2. Open [Vercel Marketplace with Option
1](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/integrations/vercel-marketplace?docs-ia-mvp-v1=option-1).
The sidebar lists "Vercel preview branches" under Vercel Marketplace,
and the page links to Preview branches on Vercel.
3. Open [Logs in the CLI with Option
1](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/observability/cli-logs?docs-ia-mvp-v1=option-1).
The sidebar lists it under Logs and monitoring > Read project data.
4. Run `pnpm run -F docs test:local:unwatch features/IaNav
components/Navigation`. Expect all tests to pass.
5. Open [Vercel Marketplace without the
flag](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/integrations/vercel-marketplace).
The page links to Preview branches on Vercel.
2026-11-30 11:04:59 -08:00
Andrey A. d65dacdb74 chore(self-hosted): update 2026-11-30 - 0.8.6 (#54296) 2026-11-30 16:47:56 +01:00
Pamela Chia c1a71cb1d7 docs(cli): clarify telemetry data and opt-out value (#54172)
The CLI telemetry section said only that the CLI collects "general
usage" data, and it named the opt-out variables without saying the value
must be exactly `1`. I tightened it to one sentence on what the data is
and what it is linked to, the exact-`1` rule, and the switch for the
release check.

**Changed:**
- **What is collected**: I replaced "general usage" with a short
summary: usage data such as the commands you run, linked to a device ID
and, when you authenticate the CLI, to your Supabase account.
Authenticating covers both `supabase login` and an access token in CI.
- **Opt-out value**: I added that `SUPABASE_TELEMETRY_DISABLED` and
`DO_NOT_TRACK` must be exactly `1`. Other values, such as `true`, leave
telemetry on.
- **Release check**: the check for a newer CLI release is separate from
telemetry and its switch, `SUPABASE_NO_UPDATE_NOTIFIER=1`, had no docs.
I added two sentences.

**Note:** every statement on the page holds for the current stable CLI,
so this does not wait on supabase/cli#7811 reaching a stable release. I
left out a link to the CLI repository's analytics reference because that
file tracks the development branch and already describes behavior the
stable CLI does not have. The `Telemetry` and `How to opt out` headings
are unchanged, so existing links to those anchors keep working.

## To test

Tested on the PR preview:
- [x] Open
`/docs/guides/local-development/cli/getting-started#telemetry`, expect
the page to scroll to Telemetry and the first paragraph to mention a
device ID and your Supabase account. Observed: the Telemetry heading is
in view (the section sits near the end of the page, so it lands
mid-viewport) and the paragraph reads as written in the diff.
- [x] Open
`/docs/guides/local-development/cli/getting-started#how-to-opt-out`,
expect the opt-out steps, then "The value must be exactly `1`.", then a
paragraph naming `SUPABASE_NO_UPDATE_NOTIFIER=1`. Observed: the heading
lands at the top of the viewport and the three paragraphs follow the
steps in that order, with the variables rendered as inline code.

## Linear
- fixes GROWTH-1573
2026-11-30 22:21:25 +08:00
supabase-vercel-tedd[bot]andAli Waseem 08753bf24f docs: remove 90-day restore window screenshots from pausing guides (#54302)
## Problem

The docs state that a paused Free plan project can be restored for 1
year. Screenshots on the Upgrading guide and the local backup restore
guide still showed the old 90-day restore window, which contradicts the
text.

## Solution

The Upgrading guide drops the paused-project screenshot that showed a
90-day countdown. The download-backups screenshots on the Upgrading
guide and the "Restoring a downloaded backup locally" guide are cropped
to the Download backups menu, so they keep the useful part (where to
download the backup and find its Postgres version) without the outdated
90-day banner. Both images get alt text that describes what they show.
The `#90-day-window-to-restore` anchor on the Project Pausing page stays
as it is, so existing links keep working.

## How to verify

1. Open
https://docs-git-tedd-paused-restore-window-screenshots-supabase.vercel.app/docs/guides/platform/upgrading#time-limits
and
https://docs-git-tedd-paused-restore-window-screenshots-supabase.vercel.app/docs/guides/local-development/restoring-downloaded-backup#downloading-your-backup.
2. The Time limits section shows no "90 Days Remaining" screenshot, and
its one remaining backup screenshot shows only the Download backups
menu.
3. The Downloading your backup section shows the Download backups menu
with the Postgres version highlighted, and no "90 days" text.
4.
https://docs-git-tedd-paused-restore-window-screenshots-supabase.vercel.app/docs/guides/platform/free-project-pausing#90-day-window-to-restore
still jumps to the Restore window section.

## Checks

Ran `pnpm exec oxfmt --check` on both changed MDX files. Searched
`apps/docs/content` for remaining 90-day restore references and the repo
for references to the removed image. Checked the 1-year window against
the Studio paused-project screens (`PauseDisabledState.tsx`,
`formatRestoreWindow`). No TypeScript changed, so typecheck and lint
were not affected; `build:guides-markdown` was not run in this
environment.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] I have checked that the change works in the preview deployment

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Ali Waseem <waseema393@gmail.com>
2026-11-30 14:07:11 +00:00
Danny White daef6f6e8d fix(studio): align scoped token permission controls (#54164)
## Problem

The scoped token editor uses different access labels from OAuth. Its
permission descriptions are smaller, and the accordion headers can cut
across the rounded corners.

## Solution

Use **No access**, **Read only**, and **Read and write** in the scoped
token editor. Each permission keeps its existing access levels. Make
descriptions easier to read, keep space around badges, and align
selectors in a column on wider screens. Use the same colour for borders
and dividers, and round the outside edges of the permission list and
capability cards.

Use sentence case for permission names in the picker and matching
documentation.

| Before | After |
| --- | --- |
| <img width="767" height="536" alt="CleanShot 2026-11-27 at 11 53 58"
src="https://github.com/user-attachments/assets/f2c36703-9383-49cb-89f0-86f3da0de10c"
/> | <img width="765" height="549" alt="CleanShot 2026-11-27 at 11 53
18"
src="https://github.com/user-attachments/assets/c5abe728-47c9-4594-9787-aff2bc54efec"
/> |

## Review instructions

1. With scoped tokens enabled, open **Account → Access Tokens** and
click **Generate new token**.
2. Choose a resource and expand a permission group. Check the available
access levels, the spacing around badges, and the selector alignment at
desktop and narrow widths.
3. Expand and collapse the first and last permission groups. Open a
scoped token’s details and check the capability card corners.
2026-11-30 16:18:31 +11:00
Timothy LimandClaude Sonnet 5.5 2135b29416 docs(storage): add upload FAQ (#53737)
## Problem

Recent tickets asking for some upload details and nuances of the storage
system

## Solution

Add a Upload FAQ page

## Review instructions

Just content changes but added new sidebar item so would need to check
to ensure that works as expected

## Checklist

Check all before review:

- [X] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [X] If I wrote a new docs topic or edited an existing topic, I used
the `/review-the-docs`
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 07:00:58 +08:00
Tina HaandClaude Sonnet 5.5 653104a8bf docs: clarify disk IOPS and throughput are provisioned separately from compute capacity (#54073)
## Problem

The Compute size section of the Compute and Disk guide says the table
values are minimums that "every project of a given compute size gets".
Readers could easily take the table as the IOPS and throughput their
project gets. The page already says elsewhere that effective IOPS and
throughput are the lower of the instance limit and the provisioned disk
values (gp3 defaults to 3,000 IOPS and 125 MB/s), but that rule sits far
from the table, so the two read as contradicting each other. The same
confusion has come up several times in slack threads.

## Changes

- Compute size intro: describe the table as what the compute instance
can deliver, say it does not set the disk's IOPS or throughput, and link
to the provisioned disk section. The 8XL example now says "supports"
instead of "has".
- New note under the table: effective IOPS and throughput are the lower
of the instance limits and the provisioned disk values, with the gp3
defaults, and a pointer to Disk types for pricing.
- 4XL and above paragraph: the "configure" link pointed at a billing
page. It now points to Infrastructure settings, with the IOPS and
throughput usage pages linked for pricing.
- Corrects "From 8XL, baseline and maximum are the same" to "On larger
sizes like 4XL and above", which matches the compute table.

## Notes

- Docs prose only. No change to the table or shared data.
- The new statements restate text already on this page. The 4XL example
follows from the gp3 default and the effective-is-the-lower rule.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 14:40:17 -05:00
46727fa89b docs: add guide for managing remote config as code (#50353)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

Docs. A new guide for `supabase config diff`, `config pull`, and `config
push`, written for CLI v3. Relates to MARKET-1590.

## What is the current behavior?

The CLI reference lists the three commands, but no guide explains the
workflow. The Select 2026 recap blog tells users to run `config pull`
with nothing to link to.

## What is the new behavior?

- New guide at `/docs/guides/local-development/config-as-code`, in the
nav after "Managing config and secrets".
- Covers diff (labels, `--exit-code` for CI), pull (preview, git check,
where values go), push (one consent question, `--yes` for CI and agents,
the `init` defaults risk), and what push can and cannot write.
- Links to `local-and-hosted-projects` and `migrating-to-v3` for the
shared v3 target and consent rules.

## Additional context

All behavior claims are checked against `supabase/cli` `v3.4.0`.

**Related:** #50594 by @Sweta0519 adds a `config push` section to
`managing-config.mdx`. This guide includes its `[group-write]` and
`init` defaults points, with credit. It might be good to ask if we can
shrink #50594 to a short pointer to this guide, so the two do not repeat
each other.

**Needs review:** one inline `NEEDS REVIEW` comment. "The Dashboard
stays editable" is product intent from the PRFAQ, not confirmed in
platform code.

**Verified:** MDX compiles, internal links and anchors resolve, and the
preview page returns 200 and shows in the nav.

| Before (net-new page) | [After (PR
preview)](https://docs-git-nikrichers-market-1590-launch-config-d-a8be81-supabase.vercel.app/docs/guides/local-development/config-as-code)
|
| ------------------------------ | --- |
| _No production URL, new page._ |
![config-as-code-after](https://moijyfpvgnmgoxvwcikq.supabase.co/storage/v1/object/public/pr-proof/supabase/supabase/pr50353/config-as-code-after-v3-865d0b89.png)
|

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:01:58 -06:00
Sudhi Gupta 6b39a00d33 docs(self-hosted): drop the test OTP expiration from the phone guide (#54061) 2026-11-26 19:19:36 +00:00
Andrey A. 3ac85eb3c6 docs(storage): update the self-hosting imgproxy example to v4 (#54145) 2026-11-26 17:17:48 +01:00
Andrey A. 4a34715279 docs(storage): update image transformation limits (#54146) 2026-11-26 17:17:42 +01:00
Andrey A. 160f233b4e chore(self-hosted): remove env vars Storage no longer reads (#54132) 2026-11-26 16:40:05 +02:00
49bda396bb docs(rbac): enable RLS on the RBAC tables (#48394)
## What kind of change does this PR introduce?

Documentation fix (security footgun).

## What is the current behavior?

Closes #36816.

The RBAC guide's schema block creates `public.user_roles` and
`public.role_permissions` but never enables Row Level Security on
either.

Because both tables are created in the `public` schema, they inherit the
default privileges granted to `anon` and `authenticated`. A reader who
follows the guide as written ends up with the two tables that decide
their entire authorization model readable *and writable* by any
signed-in user — a user can insert `(their_uid, 'admin')` into
`user_roles`, or add a permission to `role_permissions`, and the auth
hook will happily mint them the claim on next token issue.

It also leaves the guide internally inconsistent: the auth hook section
creates

```sql
create policy "Allow auth admin to read user roles" ON public.user_roles ...
```

which has no effect at all while RLS is disabled on that table.

The [Slack Clone
migration](https://github.com/supabase/supabase/blob/master/examples/slack-clone/nextjs-slack-clone/supabase/migrations/20240214102356_init.sql#L74-L79)
that this guide is explicitly based on does have both statements — they
just didn't make it into the doc.

## What is the new behavior?

Adds the two missing statements to the schema block, matching the
example app:

```sql
-- Secure the tables
alter table public.user_roles enable row level security;
alter table public.role_permissions enable row level security;
```

Plus a `caution` admonition explaining why this matters and why neither
table gets an `anon`/`authenticated` policy — `authorize()` is `security
definer`, so it reads `role_permissions` on the caller's behalf without
the caller needing access.

## Additional context

Docs-only change. The `security definer` `authorize()` function and the
`supabase_auth_admin` policy later in the guide continue to work; the
latter in fact only starts working once RLS is enabled.

---------

Co-authored-by: Jeremias Menichelli <jmenichelli@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 13:30:47 +00:00
claude[bot]andClaude 530ae14dab docs(auth): remove claims of automatic cleanup of expired sessions (#54123)
Removes section from the doc stating the sessions are automatically
deleted after 24 hours of expiry.

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 13:53:49 +01:00
Ronan Lehane 2fcbeb10ff Update billing-faq.mdx (#54125)
## Problem

The documentation does not make it clear that the support team cannot
extend grace periods or make exceptions to applied restrictions. This
may lead to incorrect expectations about what support can do.

## Solution

Added a note to the documentation:

> The support team cannot extend grace periods or make exceptions to
applied restrictions.

## Review instructions

1. Open the changed documentation page.
2. Confirm the note is displayed in the appropriate context and clearly
communicates the restriction.

## Checklist

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
2026-11-26 20:23:31 +08:00
Alexander F. 44f50c6cc1 docs(self-hosted): include imgproxy in the macOS Storage volume fix (#53004) 2026-11-26 12:14:36 +00:00
Andrey A. dd1badd5b3 docs(functions): trim self-hosted worker lifecycle section and fix isolate reuse claims (#54013) 2026-11-26 12:21:02 +01:00
Sudhi Gupta 5be1d76ba7 docs(self-hosted): correct NameID, claims, and rate limit details in the SAML guide (#54065) 2026-11-26 10:53:33 +00:00
Sudhi Gupta 49525599d1 docs(self-hosted): enable RLS on user_roles in the auth hooks guide (#54063) 2026-11-26 11:46:37 +01:00
Tyler Hillery 79da6ab86f docs(storage): add object versioning and lifecycle policies guides (#51566)
## What

Adds docs for the Storage object versioning private alpha and bucket
lifecycle policies for noncurrent versions.

- New: `storage/buckets/object-versioning.mdx`,
`storage/buckets/lifecycle-policies.mdx`, plus nav entries
- Updated: copy/move, delete objects (versioned buckets and `aws s3
sync`), S3 compatibility (lifecycle rows, versioning note), schema
diagram (versioning columns), storage size (noncurrent versions count
toward storage size; current vs noncurrent query)
2026-11-25 13:53:55 -06:00
Guilherme Souza 0d9e021060 docs(ref): add Swift v3 alpha reference (#53896)
## Problem

supabase-swift v3 is in alpha (`3.0.0-alpha.2`). The docs have no
reference for it. v3 renames many public APIs, so the v2 reference does
not help people who try the alpha.

## Solution

Add a v3 reference at `/reference/swift/v3`. v2 stays the default at
`/reference/swift`.

- **Prerelease flag.** A version in `REFERENCES` can now set
`prerelease: 'alpha'` (or another stage). Swift versions are `['v2',
'v3', 'v1']`. `versions[0]` is still the latest stable version, so the
existing URL and "latest" logic does not change. Other SDKs can use the
same flag.
- **Alpha notice.** A prerelease page shows "This version is in alpha"
with a link to the stable version. It does not show the "Version out of
date" warning.
- **Version menu.** Prerelease versions show in a separate "Prereleases"
group with a stage badge.
- **Spec.** `spec/supabase_swift_v3.yml` ports the v2 spec to the v3
API. The examples were checked against the v3 source at the
`v3.0.0-alpha.2` tag. It adds the new v3 APIs: MFA recovery codes,
`AuthAdminClient`, admin custom providers, `functions.stream`, and the
Realtime streams API.
- **Pages.** New introduction, installing (Xcode 26, Swift 6.2), and
upgrade guide pages under `docs/ref/swift/v3/`.
- **Navigation.** Nav entries for v3. v3 is excluded from the
"TypeScript support" section.

Not in this PR:

- Search indexing for v3. Search still covers v2 only.
- In the v2 spec, 7 filter ids use camelCase (for example `containedBy`
and `textSearch`). They match no section, so they do not render in the
v2 docs today. The v3 spec uses the matching kebab-case ids. The v2 fix
can be a separate PR.

## Review instructions

1. Open `/docs/reference/swift/v3` on the preview. See the alpha notice
and the v3 sections.
2. Open the version menu. See "Stable releases" (v2.0 with a "Latest"
badge, v1.0) and "Prereleases" (v3.0 with an "Alpha" badge).
3. Open `/docs/reference/swift`. See that it still shows v2 with no
notice.
4. Read the upgrade guide at `/docs/reference/swift/v3/upgrade-guide`.

Typecheck, Prettier, and ESLint pass locally. I did not run the docs
unit tests. The Swift examples were not compiled.

<img width="318" height="236" alt="Screenshot 2026-11-25 at 10 36 01"
src="https://github.com/user-attachments/assets/0f0caf18-7a4a-4835-8f6a-b76df9c66fa9"
/>
<img width="685" height="417" alt="Screenshot 2026-11-25 at 10 36 10"
src="https://github.com/user-attachments/assets/1c55bc44-1fc1-4390-8d8c-48bc55822bd3"
/>

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-25 13:54:58 -03:00