Commit Graph
8742 Commits
Author SHA1 Message Date
Alexis Aguilar 6d14282357 docs: add pull request review section to docs CONTRIBUTING (#54091)
## Problem

The Docs PR Tracker has no written home. Contributors don't know how
fast to expect a review, who merges, or what happens to a PR that goes
quiet, and the upcoming bot comments need a page to link to. Tracked in
[DOCS-1589](https://linear.app/supabase/issue/DOCS-1589), part of
[DOCS-1689](https://linear.app/supabase/issue/DOCS-1689).

## Solution

A new "Pull request review" section in `apps/docs/CONTRIBUTING.md`,
linked from the intro. It covers:

- **Branch PRs vs. fork PRs:** the rules depend on where a PR comes
from, which matches who can merge.
- **Review priorities:** Critical, Urgent, Moderate, and Low. Low is
selected by default in the PR template, and when more than one is
selected, the highest applies. Fork PRs are always Low.
- **Drafts:** every PR that isn't a draft is ready for review. PRs that
are still in progress or blocked stay drafts, and blocked PRs start with
a `[!IMPORTANT]` callout naming the blocker.
- **Claiming:** a Docs team member adds themselves as a reviewer.
- **Merging:** branch PR authors merge their own PRs. The approving Docs
reviewer merges fork PRs. Approvals from community reviewers still need
a Docs team member to claim, approve, and merge the PR.
- **Inactive PRs:** reminders at 15 and 30 days without activity, and
closing at 60. Drafts are exempt.

The PR template matches the new wording: its section is now **Review
priority**, it no longer asks authors to clear Low, and its top comment
covers in-progress PRs as well as blocked ones.

The section is public, so it leaves out internal details like Slack
channels and the daily digest.

## Needs review

- **It describes automation that doesn't exist yet:** the 3-day approval
reminder (DOCS-1597), and the inactive-PR reminders and closing
(DOCS-1598). Merge this only after deciding whether to drop those
sentences until each one ships, or hold this PR until they do.
- **Anchors:** bot comments will link to `#pull-request-review` and its
subsections, so treat the heading names as stable once merged.

## Review instructions

1. Read the new section in the rendered `apps/docs/CONTRIBUTING.md`.
2. Confirm the rules match DOCS-1689.
3. Check that the intro link to `#pull-request-review` jumps to the
section.

## 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)
2026-12-03 18:06:50 -07:00
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
Joey Coleman 97736acdad chore(docs): Add Joey Coleman to humans.txt (#54560)
## Problem

I (Joey) am not yet in the humans.txt file.

## Solution

Edited humans.txt to add myself.

## 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

Check lexical ordering

## 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)~
2026-12-03 13:28:47 -05: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
Franco Victorio 3b41d9f421 Add Franco Victorio to humans.txt (#54479)
## Problem

I'm not on the list.

## Solution

I added myself to the list.

## 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

Check that the position is correct, I guess?

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-12-03 10:38:14 +01: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
Duncan Lutz fcfcd2e30b Add Duncan Lutz to humans.txt (#54439)
## Problem

The team list in humans.txt is missing a new team member.

## Solution

Adds Duncan Lutz to the team list in apps/docs/public/humans.txt, in
alphabetical order.

## How to verify

Open
https://docs-git-duncanlutz-humans-txt-supabase.vercel.app/humans.txt
and confirm "Duncan Lutz" appears.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-12-01 21:31:00 +00:00
supabase-vercel-tedd[bot] dd15ef008c chore(docs): add Lauren Godfrey to humans.txt (#54435)
## Problem

The team list in `humans.txt` is missing a new team member.

## Solution

Adds Lauren Godfrey to the team list in `apps/docs/public/humans.txt`,
in alphabetical order.

## How to verify

1. Open
https://docs-git-tedd-add-lauren-godfrey-humans-supabase.vercel.app/humans.txt
and confirm "Lauren Godfrey" appears between "Laura C" and "Laurence
Isla".

## Checks

Static text file only, so no typecheck, lint, or tests apply. `git diff`
shows a single added line.

## Checklist

- [x] I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
guide
- [ ] 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>
2026-12-01 19:05:49 +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
Alexis Aguilar 6ac0f3f231 fix(docs): include request bodies in the Management API markdown reference (#54343)
## Problem

Agents can't find request body fields for Management API endpoints. In
an eval for the access control guide
([DOCS-1489](https://linear.app/supabase/issue/DOCS-1489)), an agent
read the [Create organization
invitations](https://supabase.com/docs/reference/api/v2-create-organization-invitations)
page and concluded the body accepts only an email. It refused to invite
someone scoped to one project, even though the API accepts `role` and
`projects`.

Reference pages have no `.md` version. Their markdown 404 points agents
to the markdown reference (`llms/api.txt`), which lists path and query
parameters but no request body for any endpoint.

Resolves part of
[DOCS-1823](https://linear.app/supabase/issue/DOCS-1823).

## Solution

Each endpoint with a request body gets a **Request body** section in the
markdown reference. It lists every field as a nested list with its type,
whether it's required, its description, accepted values, defaults, and
constraints. Unions list each option by name, and map-like objects show
the shape of their values.

This changes only the generated markdown. Reference pages render the
same as before.

Reference pages don't have their own `.md` versions yet. That's tracked
in [DOCS-1332](https://linear.app/supabase/issue/DOCS-1332). The new
renderer takes one endpoint's request body and returns markdown, so a
per-page generator can reuse it.

## Follow-ups

- **Reference page HTML (rest of DOCS-1823):** nested schema fields
still reach the HTML only after someone opens their control. Moving
these controls to native `<details>` also needs three fixes found in
review:
- A union option puts an `<li>` inside another `<li>`, which breaks the
list once the content is in the HTML.
- The **Items** control for an array of union items, such as the
notebook `cells` array, opens an empty panel.
- The new summary styles repeat the current trigger's styles. They
should share one base.
- **Parameters:** path and query parameters still use the older one-line
format, so their accepted values don't appear in the markdown reference.
For example, `continent` on the available regions endpoint lists no
values.
- **Shared schema helpers:** the renderer copies `asSchemaArray` from
`Reference.ui.tsx` and adds its own schema type. Sharing both through
`Reference.api.utils.ts` keeps the HTML and the markdown in step.

## 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 the [Management API markdown reference on the
preview](https://docs-git-alexisa-docs-1823-supabase.vercel.app/docs/markdown/reference/api.md).
On production, the same file is served at `/llms/api.txt`.
2. Under **Creates organization invitations**, see the **Request body**
section with `data`, `type`, `attributes`, `email`, `role`, `projects`,
and `require_sso`.
3. Under **Assign or change an organization member role**, see
`data.attributes.role` and `projects`.

## 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 11:15:33 -07: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
Miranda LimonczenkoandClaude 4d9726da1c feat(docs): add last-modified dates to the docs sitemap (#54329)
Closes DOCS-1753

## Problem

Guide pages already show a "Last updated" date
(supabase/supabase#52421), but `sitemap.xml` has no `<lastmod>`, so
crawlers get no recency signal.
## Solution

- Guide entries in `sitemap.xml` now include `<lastmod>`. The date comes
from the same `last_changed` table as the on-page date: the newest
`last_updated` across a page's sections, written as an ISO 8601
timestamp.
- The paginated `last_changed` read moved from `lib/last-changed.ts`
into `lib/last-changed.utils.ts`. The new module has no `server-only`
import, so the `tsx` sitemap script can share it. `getGuideLastUpdated`
behaves the same, including its timeout, cooldown, and Sentry reporting.
- When `NEXT_PUBLIC_SUPABASE_URL` or `SUPABASE_SECRET_KEY` is missing,
or the read fails, the script logs a warning and writes the sitemap
without `<lastmod>`. Local and preview builds still succeed.
- `build:sitemap` in `apps/docs/turbo.jsonc` is now uncached and passes
the two credentials through. The dates change nightly, outside the
task's inputs, so a cache hit could otherwise restore stale dates. The
task is cheap, and its dependencies stay cached.
- Reference pages don't get `<lastmod>` because `last_changed` only
tracks guides.
- `sitemap.md` (marked TBD in the issue) is out of scope.

## Review instructions

| Preview | Link |
| --- | --- |
| Docs sitemap |
https://docs-git-claude-compassionate-dirac-ns0vjr-supabase.vercel.app/docs/sitemap.xml
|
| Docs app |
https://docs-git-claude-compassionate-dirac-ns0vjr-supabase.vercel.app/docs
|

1. Check the `build:sitemap` step in the Vercel build log. It should
print `Total of N pages in sitemap (M with last-modified dates)`, where
M is greater than 0.
2. In the preview deploy, open `/docs/sitemap.xml` and confirm that
guide entries have `<lastmod>` values matching the "Last updated" date
on those pages.
3. Optional local check: run `pnpm -F docs build:sitemap` without
credentials. You should see the warning, and the sitemap should have no
`<lastmod>` entries.

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-01 10:03:01 -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
Charis 34e0361708 feat(docs): send pageview and global crash metrics on preview (#54424)
## Problem

Studio sends pageview and global crash counters to the frontend metrics
endpoint on non-production deployments (#54331). Docs sends neither, so
there is no equivalent signal for docs previews.

## Solution

Port the Studio implementation to `apps/docs`:

- **Gate**: new `IS_PREVIEW` constant, true only on Vercel preview
deployments of the hosted platform. It is false in production, local
dev, self-hosted, and the Nimbus flavor. Docs has no long-running
staging environment, so there is no staging branch in the gate.
- **Sender**: `lib/frontend-metrics.ts`, the same fire-and-forget
`text/plain` POST as Studio, tagged `app: 'docs'`.
- **Pageview**: `usePageviewMetric` sends one count on hydration and on
each pathname change. It is mounted from the root layout through a small
client component.
- **Crash**: `app/error.tsx` and `app/global-error.tsx` each send one
`global_crash`. A given error reaches only one of the two boundaries,
and a `WeakSet` counts each error object once, so effect re-runs do not
double count.
- **Nimbus**: docs had no client-readable Nimbus check, so the gate
reads `NEXT_PUBLIC_IS_NIMBUS` (same name and semantics as Studio) and
the variable is added to the docs build env in `turbo.jsonc`.

No CSP change is needed because docs does not set a
Content-Security-Policy.

## Additional context

`NEXT_PUBLIC_IS_NIMBUS` must be set on the Nimbus docs project for the
Nimbus exclusion to take effect. The metrics also require
`NEXT_PUBLIC_IS_PLATFORM=true` on preview deployments.

## Review instructions

1. Open the docs preview deployment for this PR with the network tab
open.
2. Load any page and confirm one POST to the metrics endpoint with
`metric_name: "pageview"` and `app: "docs"`.
3. Navigate to another page client-side and confirm one more POST.
Changing only the hash or search params should not send one.
4. Run `pnpm -F docs exec vitest run lib/frontend-metrics.test.ts
hooks/usePageviewMetric.test.tsx`.
2026-12-01 12:01:27 -05: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
Chloe Kavanagh 8aaf216d22 docs: add Chloe Kavanagh as per onboarding process (#54385)
### Purpose
As per onboarding doc- add my name to `humans.txt` file

### Solution
Added my name as per instructions 

### Review instructions
Check that "Chloe Kavanagh" is in the list on the expected position.

### 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-01 14:16:58 +00:00
ajjsupabaseandClaude Sonnet 5.5 c8378a0a32 docs: add Aaron Johnson to humans.txt (#54405)
## Problem

My name is missing from the team list in `apps/docs/public/humans.txt`.

## Solution

Add "Aaron Johnson" to the list. The entry sits after "Aaron Byrne" to
keep the list in alphabetical order.

## 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. Open the diff for `apps/docs/public/humans.txt`.
2. Confirm that "Aaron Johnson" appears once, between "Aaron Byrne" and
"Adam Howard".

## 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)

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

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 09:08:28 -05: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
fadymak e58fa85e6c docs: correct py and kt deleteFactor claim that it signs the user out (#54361)
The Python and Kotlin `deleteFactor` reference notes said deleting a
verified factor logs the user out of all active sessions, but the server
only downgrades sessions that reached `aal2` with that factor to `aal1`.
This updates the notes to describe what actually happens, matching the
JS reference fix in supabase/supabase-js#2939.
2026-12-01 12:48:58 +01:00
Jan TennertandSafa Orhan 3e4ee05bfd docs(kotlin): add passkey, oauth server api, realtime filter docs (#49897)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Docs update

**Authentication and Authorization Enhancements:**

* Added documentation and examples for passkey-based authentication and
registration, including manual flows for starting and verifying
authentication and registration using the underlying API methods.
* Introduced detailed documentation for OAuth 2.1 server features,
including methods for retrieving authorization details,
approving/denying authorizations, listing grants, and revoking grants.

**Query and Data Filtering Improvements:**

* Added a new `dryRun()` (limit) function, allowing users to limit query
results by count, with support for specifying a referenced table.
* Updated `selectAsFlow` and `postgresListDataFlow` examples to
demonstrate the use of inline filter lambdas, making it easier to filter
results (e.g., by `id`).
* Enhanced `postgresChangeFlow` example to show how to apply optional
filters using a lambda.

**Realtime and System Events:**

* Added an example for listening to system updates via `systemFlow()` on
a channel, including configuration for broadcasting system messages
(e.g., replication readiness).

---------

Co-authored-by: Safa Orhan <safaorhan@users.noreply.github.com>
2026-12-01 13:37:57 +03:00
anthony lio 6bd006dc08 feat(docs): layout toggle (#53688)
## Problem

- docs layout v2 (variant `option-1` of the `docs-ia-mvp-v1` flag) is
about to roll out and a reader in the rollout has no way back to the
classic layout

## Solution

- adds a toggle button bottom of the guide right column so user in the
rollout can switch back
- adds a dialog that asks for an optional reason when a reader switches
back to classic, and stores the reason in `feedback_comments` with
`metadata.source = 'docs_layout_switch'` so we relying on existing
- adds the `docs_layout_updated` event and stops new experiment
exposures for readers who picked a layout

| toggle | survey |
| -------|------|
| <img width="654" height="312" alt="image"
src="https://github.com/user-attachments/assets/69bcd4b8-7dd2-4fd3-9045-e3246625ccf9"
/> | <img width="654" height="312" alt="image"
src="https://github.com/user-attachments/assets/4b18eb76-b9f1-4d96-be25-14a960b11475"
/> |

<!--
## 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

1. open
[/docs/guides/database/prisma?docs-ia-mvp-v1=option-1](https://docs-git-antlio-feat-docs-layout-switch-v2-supabase.vercel.app/docs/guides/database/prisma?docs-ia-mvp-v1=option-1)
2. click "Switch to classic layout" in the notice and make sure that a
dialog asks "What made you switch back?"

## 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)
2026-12-01 11:43:40 +02:00
fb37145641 docs(skills): the docs review gives each new sentence a verdict and checks each claim (#54082)
## Problem

[#53996](https://github.com/supabase/supabase/pull/53996) passed an
author review, two agent readers, and a full agent review, and still
needed [#54013](https://github.com/supabase/supabase/pull/54013) to fix
it. The new section repeated three sections of the same page, described
worker-pool internals that a reader can't configure, and left the
Functions architecture guide saying the opposite.

`review-the-docs` and the style guide already named repeated facts. The
rule didn't hold, for these reasons:

- The Content review listed problems as examples ("they aren't the full
list"), and its checklist asked only that "each problem is reported". A
light review and a full one produced the same report.
- No rule gave content problems a severity, and core rule 6 called style
notes suggestions.
- No rule covered internals the reader can't act on, or a statement on
another page that says the opposite.
- The review had no claim check of its own. `write-the-docs` has an
accuracy pass, but a review runs on its own and can't count on the
author having used that skill. `test-the-docs` runs only snippets.

Tedd's own review skills filled these gaps with stricter copies of the
rules, so people, Tedd, and CodeRabbit reviewed against different rules.

Closes
[DOCS-1806](https://linear.app/supabase/issue/DOCS-1806/the-docs-review-checks-each-claim-and-gives-each-new-sentence-a)

## Solution

**The Content review in `review-the-docs` asks for a verdict on each
item.** Each new and changed sentence gets a verdict, and so does the
sentence right after each change. Each of these problems is a blocker:

- A repeated fact
- A disagreement with the docs, searched for in `apps/docs/content/` and
`apps/kb/src/content/` by the behavior's terms. The published page can
be the wrong one, so the Fact check decides which sentence is true, and
the change fixes the wrong one
- Mechanism the reader can't act on
- Detail that only fits one reporter's case. The fix for one error, or
an answer that depends on the reader's stack, belongs in `/kb`, per the
`/docs` and `/kb` split in `write-the-docs`
- An unanswered follow-up question

A change longer than the ask needs is a note, because no style guide
rule covers it.

The review also gives a verdict on each new section's place, each new
example's pattern, and each new link. The style pass counts the words of
each long sentence with a script, gives a verdict on each style guide
rule that applies to the changed lines, and checks the page's template
and WORD_LIST. The done criterion lists each verdict, so a skipped item
shows.

**A new Fact check gives each claim a verdict.** Each claim gets one
verdict: ran (a row in a `test-the-docs` verification report), traced to
the source at the version the page uses, or unverified. When a change
has more than 20 claims, or a claim needs a repo that the reviewer can't
read, the review asks the user before it continues. Each path an
instruction names is its own claim. A wrong claim is a blocker, and an
unverified claim is a note to the author. Code runs only through
`test-the-docs`, so the tutorial and example reviews ask to build
example apps there, not in the reviewer's checkout. Before a wrong claim
is made more exact, the review checks whether the reader needs it at
all.

**The `write-the-docs` accuracy pass checks that the reader needs a
claim.** Its old step 3 said to add an exception the code has, or narrow
the sentence, which pushed #53996 toward more internals. A new step 2
cuts a claim about mechanism the reader can't use, instead of making it
more exact. An exception goes in only when it changes what the reader
sees or does. The skill stays self-contained: it runs whether or not a
review follows.

**The style guide holds the rules the review applies.** New rules:
"Document what the reader can use", "Answer the reader's next question",
"Name what a command changes", "Model an example on the page's other
examples", and "Put text under the heading for its topic". "Cut repeated
points" now says to link to a fact that another section or page states.
Required text, such as the standard SQL snippet, doesn't count as a
repeat, and neither does a one-sentence term explanation or a warning
that the task needs. "Link selectively" now covers two sections that
send the reader to each other. The review links to each rule instead of
restating it.

**CodeRabbit reviews docs content against the style guide.**
`.coderabbit.yaml` applies each top-level file in
`apps/docs/style-guide/`, but not the templates, to
`apps/docs/content/**/*.mdx` as code guidelines, so a new rule file is
picked up without a config change.

**Stale references.** `ask-the-docs`'s `app-map.md` and `write-the-docs`
no longer point at `content/troubleshooting/`, which #52339 removed.

## Review instructions

1. Read the Content review and Fact check in `review-the-docs/SKILL.md`.
2. Check that each blocker links to a rule in `apps/docs/style-guide/`.

A fresh agent ran an earlier version of the Content review and Fact
check on #53996's merge commit, without seeing #54013. It requested
changes and reported the problems that #54013 fixed:

- The CPU cap and rotation across workers, as mechanism the reader can't
act on
- The same reuse fact stated four times in the section, and "runs once
per worker" repeated from a later section
- `guides/functions/architecture.mdx` saying "A new V8 isolate is spun
up for each invocation" and "each run is stateless"

It also traced each claim to `supabase/edge-runtime@v1.79.2`, and found
a repeated link, a 26-word sentence, and two unverified claims. Its
internals finding has a caveat: the new style guide example comes from
this same case.

After the review suggestions, a second fresh agent ran the current
Content review and Fact check on the same commit. It found the same
three problems, as blockers. It listed 17 claims, under the 20 at which
the Fact check asks before it continues, so it checked each one. It
reported the repeats inside the section as notes, not blockers.

## 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)

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-30 17:24:56 -07:00
Jeremias Menichelli 9623f958be feat: Produce sitemap and full markdown files for docs (#54069)
## Problem

Agents have no single index of the docs markdown exports, unlike the
KB's `sitemap.md`. www's `/llms.txt` and `/llms-full.txt` also read docs
files from disk, which forces www's build to wait on the docs build.

## Solution

**docs**
- Add `build:markdown-sitemap`, which writes
`public/markdown/sitemap.md`. It scans `public/markdown/**/*.md` and
lists each file as `[title](url.md)`. Guide URLs are
`/docs/guides/<page>.md` and the rest are `/docs/markdown/<page>.md`,
built with the existing `internal-links` helpers.
- Add `build:markdown-full`, which writes `public/markdown/full.md`. It
concatenates the same files.
- Both scripts share one file-list helper
(`internals/markdown-files.ts`), so they always cover the same files and
exclude `sitemap.md` and `full.md`.
- Both tasks depend on `build:markdown` and are wired into `build` in
turbo.
- Search v2 ingestion and the `docs.tar.gz` archive now ignore both
files.

**www**
- `/llms.txt` and `/llms-full.txt` now fetch `sitemap.md` and `full.md`
from `NEXT_PUBLIC_DOCS_URL`, replacing only their docs parts. Pricing,
product overviews, agent resources, the KB link and the customer stories
link are unchanged. If docs is unreachable, the docs section is left out
instead of returning a 404.
- Remove the on-disk docs reads, the `outputFileTracingIncludes`
entries, and the `docs#build:guides-markdown` dependency and docs input
globs from www's turbo config. These routes were the only link between
www and the docs build. `turbo-build.test.ts` is updated to match.
- Add a `/docs.md` → `/docs/markdown/sitemap.md` redirect, next to the
existing `/kb.md` one.

Routes without a markdown export are not patched, they are simply absent
from the sitemap.

## Review instructions

From the Docs preview link:

1. Open /docs/markdown/sitemap.md it should show a file with all links
to the docs pages available in markdown
1. Open /docs/markdown/full.md it should show a file with all the
content from all the pages

Sadly, only after deployed...
1. www project should return the content of both files when:
a. supabase.com/llms.txt is queried should return docs sitemap.md
content
b. supabase.com/llms-full.txt is queried should return docs full.md
content
1. supabase.com/docs.md should return sitemap.md file

## 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)
2026-12-01 09:11:29 +11:00
anthony lio 02e61b9cda fix(docs): layout v2 reference fixtures (#54233)
## Problem

- after #53761 the option-1 sidebar reference list has no row for
server, middleware and tanstack db
- list marks no row as current on a library page, for example on
`/reference/javascript/select`
- management api intro shows its endpoint list in the right rail and its
toc in an extra column inside the content

## Solution

- adds the server, middleware and tanstack db rows with the new and
experimental badges of the current nav
- fixes the reference list so it marks the library of the current page
- changes the management api to open as its own sidebar level with the
endpoint list on the left
- moves the toc, the links and the feedback of the management api intro
into the right rail + removes the rail on endpoint pages
- adds the "on this page" menu to the management api intro below `lg`
- adds the reference library column to the option-1 nav size allowlist
because it is a list of peer libraries

| before | after |
| -------|------|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/3a216c0b-31c1-4629-82a1-0590c7e639ae"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/c53afc0e-8d15-45d7-9dc8-320443761ed2"
/> |

| before | after |
| -------|------|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/5dc79bb9-b160-44e6-a3c5-39182fb71d4f"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/9e0dff3c-5261-4c70-b1f1-f74314231a08"
/> |

<!--
## 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

1. open
[/docs/reference?docs-ia-mvp-v1=option-1](https://docs-ivb0vb1qq-supabase.vercel.app/docs/reference?docs-ia-mvp-v1=option-1)
and do all steps in the same tab because the flag override lasts only
for the tab
2. make sure that the reference list shows server and middleware
3. open
[/docs/reference/javascript/select](https://docs-ivb0vb1qq-supabase.vercel.app/docs/reference/javascript/select)
and make sure that the sidebar marks only the javascript row
4. click `Management API` in the sidebar and make sure that the sidebar
shows `< Management API` with the endpoint list
5. make sure that the right rail shows the toc, the additional links and
the feedback buttons
6. open
[/docs/guides/database/overview](https://docs-ivb0vb1qq-supabase.vercel.app/docs/guides/database/overview)
and make sure that the sidebar and the right rail did not change

## 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)
2026-11-30 20:19:04 +00:00
anthony lioandalexisintech 25ceafcb3f fix(kb): guide tabs (#54046)
## Problem

- on kb topic pages the guide row text is misaligned vs tab title
- community guide row shows the favicon and the author before the title
leading to inconsistence when among other list items
- kb guide list and the docs code tabs each keep a copy of the folder
tab indicator

## Solution

- extracts the folder tab indicator to `ui` + the curve variables to the
shared tailwind config
- changes the tab corner to follow the active tab because chrome does
not update a `:has()` rule on the tabs root
- fixes the square corner + the background flash on the active kb tab
before hydration
- changes the kb guide rows to align with the tab labels + adds padding
to the tabs and the row hover
- moves the community favicon and author after the title

| before | after |
| -------|------|
| <img width="2304" height="1533" alt="image"
src="https://github.com/user-attachments/assets/585a1b1c-0314-4708-818c-69b324028d18"
/> | <img width="2304" height="1517" alt="image"
src="https://github.com/user-attachments/assets/5eb9614f-1873-42ed-86f4-1f7c8fa5e4f6"
/> |

<!--
## 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

1. open the live and preview
[/kb/topics/database](https://kb-git-antlio-kb-guide-tabs-supabase.vercel.app/kb/topics/database)
2. make sure that the row titles start at the same position as the "All"
tab label

## 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)

---------

Co-authored-by: alexisintech <98043211+alexisintech@users.noreply.github.com>
2026-11-30 22:09:49 +02:00
anthony lio 77a62ffab4 fix(docs): sidebar section (#54251)
## Problem

- layout v2 nav (`?docs-ia-mvp-v1=option-1`) sidebar picks its section
from the url prefix and not from the tree that lists the page
- tree lists `/guides/platform/read-replicas` under database, but the
sidebar opens "projects, organizations and compute" and the page is not
in that list
- nine pages have this problem and on load or back the sidebar stays at
the top while the active link of a deep page is out of view

## Solution

- changes the sidebar to open the section whose tree lists the page +
uses the url prefix only for a page that no tree lists
- changes the header breadcrumbs to come from the same tree
- adds a scroll of the active link into view on load, reload and back or
forward, with no scroll when the link is already visible
- changes a closed sidebar group to open when the user goes to a page
inside it
- changes the default nav for one page:
`/guides/database/postgres/testing-row-level-security` now opens in
local development, the tree that lists it
- adds a test that resolves every option-1 guide page and checks that
its sidebar lists it

`read replicas`

| before | after |
|
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/7ac6eae2-9141-4f0b-9046-dbcf3c1fb5df"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/98fbfffa-4141-416d-9c65-98dc3f1a8584"
/> |

`hypopg`

| before | after |
|
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/690b6b41-db7d-49af-99e2-126ee5ee9324"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/52e15ad8-484a-4e37-860d-024da58dfe50"
/> |


<!--
## 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

1. visit [read
replicas](https://docs-ka3i13eje-supabase.vercel.app/docs/guides/platform/read-replicas?docs-ia-mvp-v1=option-1)
and make sure that the sidebar shows "database" and highlights
"overview" under "read replicas"
2. make sure that the header breadcrumbs show "database replication",
"read replicas" and "about read replicas"
3. visit
[hypopg](https://docs-ka3i13eje-supabase.vercel.app/docs/guides/database/extensions/hypopg?docs-ia-mvp-v1=option-1)
and make sure that the sidebar scrolls to "hypopg: hypothetical indexes"
under "performance and monitoring"
4. reload the page and make sure that the active link stays in view

## 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)
2026-11-30 20:05:33 +00:00
anthony lio 5578904100 fix(docs): sidebar v2 nav polish (#54267)
## Problem

- layout v2 docs sidebar current page has only brighter text and users
in the friction log could not find their place
- section headings have the same gray as the rows under them and users
found the sections hard to tell apart
- in the light theme most provider icons on the auth pages do not load
because the sidebar lacks of a light version

## Solution

- fixes the provider icons in the light theme
- changes the current row in the page tree to a filled row with a
heavier weight
- changes the rows in the page tree to one step brighter so the section
headings read as labels
- fixes the overview row at the top of each product tree, which looked
like a second current row

| before | after |
| -------|------|
| <img width="560" height="1280" alt="image"
src="https://github.com/user-attachments/assets/d09afb9b-8d27-46f6-9e14-65b749d9ed5b"
/> | <img width="560" height="1280" alt="image"
src="https://github.com/user-attachments/assets/45a8cd1b-f2e9-4ac3-847c-97adc857cf72"
/> |

<!--
## 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

1. visit
[/docs/guides/auth/users?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-sidebar-nav-polish-supabase.vercel.app/docs/guides/auth/users?docs-ia-mvp-v1=option-1)
2. make sure that the `Users` row has a filled background and that
`Getting Started` has the same gray as the other rows
3. open
[/docs/guides/auth/sessions/pkce-flow?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-sidebar-nav-polish-supabase.vercel.app/docs/guides/auth/sessions/pkce-flow?docs-ia-mvp-v1=option-1)
and make sure that `PKCE flow` keeps the green line and has no fill
4. open
[/docs/guides/auth/social-sign-in/auth-google?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-sidebar-nav-polish-supabase.vercel.app/docs/guides/auth/social-sign-in/auth-google?docs-ia-mvp-v1=option-1)
in the light theme and make sure that each provider under `Social
Sign-in (OAuth)` shows an icon

## 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)
2026-11-30 21:44:15 +02: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
Miranda Limonczenko 7636e18f8d docs: shorten and sentence-case the Option 1 sidebar labels (#53880)
Part of DOCS-1737

## Problem

People who tried the Option 1 navigation reported labels that wrap onto
two lines, such as "Architecture, limits and pricing". The old
35-character limit let that label through at 32 characters.

They also reported labels that aren't in sentence case, such as
"Framework Quickstarts" and "ORM Quickstarts". The docs style guide asks
for sentence case.

## Solution

- **28-character limit, enforced.** A new test in `option1.test.ts`
fails on any Option 1 sidebar label over 28 characters. 97 labels were
over the limit. They're shortened.
- **Sentence case.** About 120 more labels are recased. Proper nouns and
product feature names keep their capitals, such as Edge Functions, Row
Level Security and Auth Hooks. "Self-Hosting" becomes "Self-hosting" in
the top nav and the sidebar title.
- **Parallel Start labels.** "Web app demos" becomes "Web app
tutorials", to match "Mobile tutorials".
- **Build becomes Products.** The tree test ran each candidate label
against the shipped Option 1 tree, with 93 tasks and 3 runs each.
Products raised direct success from 51% to 59%, and first clicks on the
right section from 78% to 88%.
- **Test fixtures.** `DocsSidebarNav.test.tsx` and the level-size
allowlist reference labels by name, so they change too.


## Manual testing

1. Open [Getting started with Option 1 on the
preview](https://docs-git-docs-nav-label-casing-supabase.vercel.app/docs/guides/getting-started?docs-ia-mvp-v1=option-1).
The sidebar shows "Framework quickstarts" and "Web app tutorials".
2. Run `pnpm run -F docs test:local:unwatch features/IaNav
components/Navigation`. Expect all tests to pass.
2026-11-30 11:00:01 -08:00