129 Commits
Author SHA1 Message Date
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
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
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 daef6f6e8d fix(studio): align scoped token permission controls (#54164)
## Problem

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

## Solution

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

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

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

## Review instructions

1. With scoped tokens enabled, open **Account → Access Tokens** and
click **Generate new token**.
2. Choose a resource and expand a permission group. Check the available
access levels, the spacing around badges, and the selector alignment at
desktop and narrow widths.
3. Expand and collapse the first and last permission groups. Open a
scoped token’s details and check the capability card corners.
2026-11-30 16:18:31 +11:00
Firdaws Farukh af75c3f8d9 Change deprecation notice in docs to mention early 2027 (#54052)
A notice was added in the Project's Settings -> API Keys page via [pull
request 52250](https://github.com/supabase/supabase/pull/52250) that
mentions `Legacy API keys will be retired in early 2027` but the notice
in the docs still mentions `Supabase is deprecating the anon and
service_role keys by the end of 2026`. This pull request updates the
docs to be consistent with the Dashboard UI to avoid confusion.
2026-11-25 18:27:32 +03:00
supabase-vercel-tedd[bot] 3a9459fef2 docs: say which requests count toward the Management API rate limits (#53974)
## Problem

The Management API rate limits section explains the limit, its scope,
and its headers, but not which traffic it applies to. Readers can't tell
whether CLI commands or calls to their own project, such as Edge
Function invocations, count toward it.

Related to
[FDBKIN-22153](https://linear.app/supabase/issue/FDBKIN-22153/clarify-documentation-for-management-api-rate-limits-and-what-actions)
Closes
[DOCS-1764](https://linear.app/supabase/issue/DOCS-1764/say-which-requests-count-toward-the-management-api-rate-limit)

## Solution

The "Rate limits" section of the Management API introduction now opens
by saying that only requests to `https://api.supabase.com` count, and
that requests to a project's own URL don't. The "Rate limit scope"
subsection ends with a CLI example: `supabase functions deploy` sends at
least one Management API request per function, so a large deploy to one
project might reach the per-endpoint limit. The example sits after the
scope rules so it reads as an application of them. The limits, tables,
scope rules, and headers are unchanged.

## How to verify

1. Open `/docs/reference/api/introduction` in the preview and go to
"Rate limits".
2. The intro says only requests to `https://api.supabase.com` count, and
that requests to `https://<project-ref>.supabase.co`, such as Edge
Function invocations and Data API calls, don't.
3. The end of "Rate limit scope" says the Supabase CLI uses the
Management API, and that `supabase functions deploy` to one project with
many functions might reach the per-endpoint limit.
4. The limit tables, scope list, and response headers match production.

## Checks

Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm
turbo run lint --filter='[origin/master]'` (no errors), and `pnpm exec
oxfmt --check` on the changed file. Checked the CLI claim against
`supabase/cli` `apps/cli/src/shared/functions/deploy.ts`. By default it
bundles with Docker and calls `POST /v1/projects/{ref}/functions` or
`PATCH /v1/projects/{ref}/functions/{slug}` per function, then one bulk
`PUT /v1/projects/{ref}/functions`. With `--use-api`, or when Docker
isn't running, it calls `POST /v1/projects/{ref}/functions/deploy` per
function. Because of that, the text doesn't name a single endpoint. The
Edge Function invocation URL comes from the Edge Functions quickstart.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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-1764](https://linear.app/supabase/issue/DOCS-1764/say-which-requests-count-toward-the-management-api-rate-limit).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 13:53:09 -07:00
Miranda Limonczenko 4e15414929 docs(guides): rework five more explainer pages to the explainer template (#53757)
## Problem

Five more concept pages are close to the explainer template from #53751.
They have short or missing descriptions, generic or question headings, a
pointer-only heading, and no Related resources. Several also have
filler, marketing language, or time phrases.

Closes DOCS-1617. This is a second batch on top of #53755.

## Solution

The PR is one squashed commit. It covers a style pass, the restructure
to the template, critic-pass fixes, tables and lists, the opener change,
content moved in from other pages, and two headings renamed to `X vs Y`.

### Structure

| Page | Change |
| --- | --- |
| `ai/keyword-search` | Value statement, `Using full-text search` (a
pointer-only heading) and `See also` folded into Related resources |
| `ai/vector-indexes` | Value statement, a `## Limits` section for the
dimension limits and version check, `Resources` to Related resources |
| `storage/buckets/fundamentals` | Retitled `Storage buckets`, value
statement, an access model table, the bucket types promoted to H2,
`Example use cases` headings to lead-in sentences, Related resources |
| `storage/analytics/introduction` | Retitled `Analytics buckets`, value
statement, question and generic headings made descriptive, Related
resources |
| `realtime/architecture` | Retitled `Realtime architecture`, value
statement, `Elixir & Phoenix` to `Elixir and Phoenix`, Related resources
|

- **Linked headings**: headings that other pages link to keep their
text: `#distance-operators`, `#public-buckets`, `#private-buckets`, and
`#access-model`. Moving a bucket type from H3 to H2 keeps its slug.
- **Openers and tables**: only the value statement and a cross-reference
come before the first heading, and each concept opener moves into the
first H2, per the template change in #53751. Prose comparisons and
parallel facts become tables and lists. On Realtime architecture, the
WAL streaming steps are a numbered list.
- **Moved content**: each explainer now owns its concept, and the page
that held it links back. Nothing is newly written; every added fact
comes from an existing page:
- Keyword search: `## How keyword search works`, summarized from the
Usage section of [Full text
search](/docs/guides/database/full-text-search#usage), which links back.
- Vector indexes: `## Trade-offs` and `## When to use each index type`,
from [HNSW indexes](/docs/guides/ai/vector-indexes/hnsw-indexes) and
[IVFFlat indexes](/docs/guides/ai/vector-indexes/ivf-indexes). Both now
link back, and their copies of the index list and dimension limits are
replaced with links.
- Analytics buckets: `## Services`, moved from the Architecture overview
in [Iceberg
Catalog](/docs/guides/storage/analytics/connecting-to-analytics-bucket),
and `## Limits`, from [Create an analytics
bucket](/docs/guides/storage/analytics/creating-analytics-buckets) and
[Analytics buckets limits](/docs/guides/storage/analytics/limits).
- **Facts**: unchanged. The value statements, the access model table,
and Related resources are the only new text, and the table summarizes
facts already on the page.

### Style

- **Descriptions**: add or rewrite one per page, 150 to 160 characters.
- **Alt text**: rewrite the Realtime diagram's alt text against the
image. It was `Architecture`.
- **Terms**: `WORD_LIST.md` passes for numbers, _will_, _since_, _allows
you to_, _performant_, _here_ as link text, filler, and marketing
language such as "perfect for" and "an amazing Supabase user".
- **Critic pass**: shorter sentences, repeated points and idioms cut,
fewer repeated links, lowercase SQL, code-formatted type names, and
external links that name their destination.

### Structure numbers

These numbers are from before the opener and table changes.

| Page | Chars before → after | Headings | Generic headings |
Description chars |
| --- | --- | --- | --- | --- |
| `ai/keyword-search` | 2,611 → 2,544 | 3 → 2 | 1 → 0 | 40 → 156 |
| `ai/vector-indexes` | 2,557 → 2,890 | 3 → 4 | 1 → 0 | 28 → 153 |
| `storage/buckets/fundamentals` | 2,128 → 3,189 | 5 → 4 | 2 → 0 | 41 →
156 |
| `storage/analytics/introduction` | 1,698 → 2,332 | 2 → 3 | 0 → 0 | 0 →
158 |
| `realtime/architecture` | 4,474 → 5,185 | 6 → 7 | 0 → 0 | 45 → 153 |

### How the template did

- **New learnings, added to #53751**: an optional `## When to use
<concept>` section, because the template's own reader question asks
"when do I use it?". One H2 per Process stage, for
`realtime/architecture`. More than one Parts section, because
`ai/vector-indexes` has index types and distance operators.
- **Fit well**: `storage/buckets/fundamentals` is a parts table followed
by one H2 per part, which is the rule from the first batch.
- **Still loose**: `realtime/architecture` maps to the template only as
a run of Process stages. A future rework could group them, or split
`Broadcast from Postgres` into its own page.
`storage/analytics/introduction` keeps a descriptive comparison heading
instead of `## Trade-offs`.

Skipped on purpose: the Realtime PNG diagram isn't converted to Mermaid,
because that's new content.

### Preview

| Page | Live | Preview |
| --- | --- | --- |
| Keyword search |
[Live](https://supabase.com/docs/guides/ai/keyword-search) |
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/ai/keyword-search)
|
| Vector indexes |
[Live](https://supabase.com/docs/guides/ai/vector-indexes) |
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/ai/vector-indexes)
|
| Storage buckets |
[Live](https://supabase.com/docs/guides/storage/buckets/fundamentals) |
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/storage/buckets/fundamentals)
|
| Analytics buckets |
[Live](https://supabase.com/docs/guides/storage/analytics/introduction)
|
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/storage/analytics/introduction)
|
| Realtime architecture |
[Live](https://supabase.com/docs/guides/realtime/architecture) |
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/realtime/architecture)
|

## Review instructions

1. Open each page's live and preview links from the Preview table side
by side.
2. Check that each page opens with a value statement and ends with
Related resources.
3. Open `/docs/guides/ai/vector-indexes#distance-operators` and
`/docs/guides/storage/buckets/fundamentals#public-buckets` on the
preview, and check that each jumps to its heading.
4. On Storage buckets, check that the access model table matches the
Private buckets and Public buckets sections.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-23 16:23:21 -08:00
Timothy LimandClaude Sonnet 5.5 b103d6098b docs(platform): post-restore reconfiguration partial for migration and clone guides (#53782)
Move the list of items that a restore doesn't carry over into a single
`restore-manual-configurations` partial, rendered as a caution
admonition, and include it on the clone, backup-restore, and
dashboard-restore pages.

- Add the partial with links for transferring Storage objects and Edge
Functions.
- Replace the inline lists in clone-project and dashboard-restore.
- Move compute size, disk, SSL, and network restrictions into the "What
will be transferred?" list on the clone page.

## Problem

- Inconsistent usage of steps that require reconfiguration after
migration/cloning
 
## Solution

- Consolidate to a partial and add it to one migration guide that didn't
have instructions previously

## Review instructions

- Doc only contents so should be sufficient to review from source
- Notable changes
- Previously [Backup and Restore using the
CLI](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore)
did not have any notice of this
- Removed mention of storage and bucket configuration as that is stored
in the database <img width="2840" height="1026" alt="Screen Capture
2026-11-23 at 17 19 34@2x"
src="https://github.com/user-attachments/assets/b2e8af76-2c1c-4581-9b61-099773976211"
/>
   - Document some differences between the clone and non cloning options
     - database extension
- compute instance size, disk attributes, SSL enforcement settings, and
network restrictions
- Removed mention of database extensions in [Restore to a new
project](https://supabase.com/docs/guides/platform/clone-project) as it
is inconsistent with admonition later on in the doc: `Restore to a new
project is a binary restore: it copies the entire database, including
any enabled extensions`
   
    
## Preview

[Backup Dashboard
backup](https://supabase.com/docs/guides/platform/migrating-within-supabase/dashboard-restore)
<img width="1410" height="664" alt="Screen Capture 2026-11-23 at 17 00
24@2x"
src="https://github.com/user-attachments/assets/c73f6592-899f-4727-98c2-6bd17b894953"
/>

[Backup and Restore using the
CLI](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore)
<img width="1404" height="671" alt="Screen Capture 2026-11-23 at 17 00
41@2x"
src="https://github.com/user-attachments/assets/d5beb415-f023-4910-a942-5a3486ee8b58"
/>

[Restore to a new
project](https://supabase.com/docs/guides/platform/clone-project)
<img width="1396" height="616" alt="Screen Capture 2026-11-23 at 17 01
02@2x"
src="https://github.com/user-attachments/assets/00b19cdf-113d-4994-be09-24ddaf13a3f5"
/>


## Checklist

Check all before review:

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 19:07:36 +08:00
Colum Ferry 95cf9a78a7 docs(cli): show config examples in TOML and JSONC (#53449)
## Problem

The CLI reads `supabase/config.jsonc` (and `config.json`) since v3.1.0,
but every docs page still shows `config.toml` only. There's also no page
explaining the formats, how to switch, the `$schema` / `#:schema`
declaration, or editor setup, and no reference pages for the new
`supabase config convert` and `supabase config validate` commands.

Linear: CLI-2871

## Solution

- **Dual-format examples from one source.** A new directive
(`features/directives/ConfigFormats.ts`) picks up any ```` ```toml ````
fence with `name=supabase/config.toml` and renders it as
`supabase/config.toml` / `supabase/config.jsonc` tabs. The JSONC is
generated at build time with `convertCliConfigTomlToJsonc` from
`@supabase/config`, the same converter `supabase config convert` uses,
so authors only write TOML and the JSONC matches what the CLI would
produce (comments included). Inside `<$CodeTabs>` the JSONC is added as
an extra tab.
- **The format choice sticks.** `ConfigCodeTabs` keeps the selected
format in `localStorage`, so choosing JSONC switches every config
example on the page and on later pages.
- **Config reference.** The `usage` examples on
`/guides/local-development/cli/config` use the same tabs (they were
highlighted as Python before), and the intro mentions `config.jsonc`.
The `remotes.<branch_name>` example now uses `[remotes.staging]`, since
`<branch_name>` isn't a valid TOML key.
- **New guide, "Config file formats"**
(`/guides/local-development/cli/config-formats`): which file wins,
minimum CLI version, `convert` and `validate`, schema declaration and
versioning, and editor setup (VS Code trusted domains, Even Better TOML,
Tombi, SchemaStore).
- **CLI reference.** Adds `supabase-config-convert` and
`supabase-config-validate` to the CLI reference nav.
`cli_v1_commands.yaml` is the generated v3.2.0 reference, identical to
the release bot's update in #53463, so the two PRs don't conflict.
- **Content.** About 60 existing config examples across the guides,
including the Branching configuration page, are tagged
`name=supabase/config.toml`. Branching reads `config.json` and
`config.jsonc` as well, and the Branching configuration page now says
so. Non-Supabase TOML (`pyproject.toml`, `bunfig.toml`) and the v2-era
`[inbucket]` before/after snippet stay TOML-only.
- **Format-neutral prose.** Sentences that described the config as
`config.toml` now say "your config file", naming `supabase/config.toml`
and `supabase/config.jsonc` once per page. TOML section syntax in prose
(`max_frequency` under `[auth.email]`) is written as key paths
(`auth.email.max_frequency`), which read the same in both formats.
Headings that named `config.toml` keep their old anchors. Sentences
about what `supabase init` creates still say `config.toml`.
- **Markdown export for agents.**
`internals/generate-guides-markdown.ts` runs the same transform, so the
`.md` pages served to AI agents include the JSONC example after each
TOML one.
- A test converts every tagged example under `content/`, so a broken
TOML example fails tests instead of the build.

New dependencies for `apps/docs`: `@supabase/config` (^1.8.0) and
`effect` (the same `effect` version Studio pins).

`config convert` and `config validate` ship in CLI v3.2.0, which is now
stable.

## Review instructions

1. Open `/docs/guides/local-development/seeding-your-database` on the
preview. Switch an example to `supabase/config.jsonc` and check the
other examples on the page switch too.
2. Open `/docs/guides/local-development/cli/config` and check the usage
examples open on JSONC.
3. Read `/docs/guides/local-development/cli/config-formats`.
4. Open `/docs/reference/cli/supabase-config-convert` and
`/docs/reference/cli/supabase-config-validate`.

## Self-review

Ran the `review-the-docs` local self-review (content, pipeline, and
component checks) over the 54 changed pages.

- No blockers. Fixed the nits it found: leftover TOML section syntax in
prose (diff engines, declarative schemas, Branching, the common settings
table on Local and hosted projects), a few long or ungrammatical
sentences, and the conversion follow-up steps on Config file formats,
now a list.
- Links, custom anchors, nav wiring, and frontmatter check out.
- The `.md` export on the preview shows each TOML example followed by
its JSONC version.
- `test-the-docs` deferred: the changed fences are config snippets, and
`ConfigFormats.test.ts` already converts every tagged example. No
procedural steps changed apart from the `config convert` and `config
validate` commands on the new page.

## 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-11-20 14:34:59 +00:00
edb2937b44 feat: update mgmt api docs (#53136)
This PR updates Management API docs automatically.

This regenerates:

- Management API specs and sections
- Personal Access Tokens permission-to-endpoint table
- Personal Access Tokens MCP tool permissions table

Sources include the live Management API specs, MCP permission map,
and Studio's shared permission catalog.

Co-authored-by: phamhieu <689843+phamhieu@users.noreply.github.com>
Co-authored-by: Ali Waseem <waseema393@gmail.com>
2026-11-18 14:50:58 +00:00
Riccardo Busetti 2a9b02a99a feat(docs): Improve Pipelines docs and UI (#53450) 2026-11-16 16:25:00 +00:00
Kody JacksonandClaude Sonnet 5.5 80a8b3a7d2 docs: add cross-links in shared partials + fix broken links flagged by e2e (#53383)
## What

Adds internal cross-links where a page mentions a product, feature, or
concept that has its own canonical page. This PR covers the two shared
docs partials, so each link appears once in source and propagates to
every page that includes the partial (the social-login setup pages and
the quickstarts).

## How links were chosen

- One canonical target per keyword, preferring docs guides over
marketing or blog pages for docs content.
- Only plain prose mentions: nothing inside headings, code, frontmatter,
existing links, or UI labels.
- One link per sentence, and no second link to the same target on a
page.

## Testing

- Prettier passes on all changed files.
- Not yet run: docs build and internal link test, KB build. Draft until
those are checked.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 09:42:28 -06:00
Kody JacksonandClaude Sonnet 5.5 5ca501cd24 chore(docs) - Remove inline Accordion component for machine readability -> details/summary instead (#53274)
## Problem

Accordion components -- as currently constructed -- aren't machine
readable b/c they require JS. Additionally, they aren't heavily used at
all.

## Solution

Removes accordion component from codebase + moves existing usage into
`<details>` / `<summary>` components. Adds some default styling for the
new HTML pattern so they look similar.

Could also refactor accordion to auto-template out details/summary too.
No strong pref here.

## Limits

The sidebar navigation accordions use radix-ui directly and are
unchanged.

## Preview links

### Before

[Creating a client
(before)](https://supabase.com/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions)


https://github.com/user-attachments/assets/fd320358-7a35-46f8-b7b4-177b023e748e

### After

[Creating a client
(before)](https://docs-git-kody-devrel-850-remove-accordions-docs-mdx-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions)


https://github.com/user-attachments/assets/22049184-9157-46d2-a3a6-64ca2c991e24

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:31:54 -06:00
Kody JacksonandClaude Sonnet 5.5 396358c7cb chore(docs,www) - added, deleted, redirected URLs (#53097)
## Problem

added, deleted, redirected URLs + urls for new blog posts

## Preview links

N/A

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 14:18:02 -06:00
Miranda Limonczenko 1d50816f47 docs: enforce duplicate ID a11y rules and fix duplicates (#52720)
Closes DOCS-1573

## Problem

Recently, @antlio surfaced that our side nav was visually breaking. This
is caused by a duplicate-id issue.

The docs E2E axe scan reports duplicate `id` attributes as a warning
only, so pages with duplicate IDs ship. A full scan of production guides
found duplicate IDs on 25 of 586 pages.

**Causes:**

- **Repeated headings:** a page uses the same heading text twice, for
example `#### Example` under two sections. Each heading slugs to the
same ID.
- **Pricing partials:** three usage pages put `## Pricing` directly
above a shared partial that starts with its own Pricing heading.
- **Components:** Mermaid diagrams hardcode SVG marker and node IDs. The
Apple secret generator renders `id="undefined-optional"` on each field
label. Each "Build it" listing on the Supabase way page renders
`#build-it`.

## Solution

- **Enforce the rules:** add `duplicate-id`, `duplicate-id-active`, and
`duplicate-id-aria` to `ENFORCED_RULES`.
- **Repeated headings:** give each later duplicate a
`[#parent-section-heading]` anchor. The first occurrence keeps its ID.
- **Pricing headings:** remove the page heading above the three partials
that start with `## Pricing`. The PITR partial starts with `###
Pricing`, so it gets `[#pitr-pricing]` and the page keeps its H2.
- **Mermaid:** prefix the SVG IDs of each diagram with `useId()`.
- **Apple secret generator:** give each field an ID. The label now also
points at its input.
- **Content listings:** add an optional `headingAnchor` to listing
groups, and set it on the repeated "Build it" groups.
- **pg_net:** the `http_delete` signature had `[#post-signature]`,
copied from `http_post`. It is now `[#delete-signature]`.

**Cross-references:** no link in the repo targets a changed ID. Each
first occurrence keeps its ID, so existing links resolve to the same
heading as before.

**Not changed:** the www suite and `packages/ui-patterns`. All fixes
stay in `apps/docs`.

**Verification:**

- Against production,
`/docs/guides/platform/manage-your-usage/log-drains` fails the @a11y
test with `duplicate-id`.
- Against a local docs server, the @a11y test passes on all 28 changed
or affected pages.

**Unverified:** a full-site run with `A11Y_ENFORCE_ALL=1`. Run it
against the preview before merge.

## Review instructions

1. From `e2e/docs`, run the a11y test against production. See it fail
with `duplicate-id`:

   ```bash
DOCS_E2E_PAGE_PATHS=/docs/guides/platform/manage-your-usage/log-drains
PLAYWRIGHT_BASE_URL=https://supabase.com pnpm exec playwright test
--grep @a11y
   ```

2. Run the same command with `PLAYWRIGHT_BASE_URL` set to the docs
preview URL from the Vercel bot comment. See it pass.
3. On the preview, open
`/docs/guides/platform/manage-your-usage/log-drains`. In the table of
contents, select **Pricing** under **Log Drain Events**. See the page
scroll to the second Pricing section.
4. On the preview, open
`/docs/guides/integrations/partner-integration-guide`. See both sequence
diagrams render with arrowheads.

## 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-11-03 11:56:33 -08:00
Colum Ferry d97a410577 docs: add a Supabase CLI v2 to v3 migration guide (#52147)
## 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

## What is the current behavior?

There's no page covering the breaking changes between Supabase CLI v2
and v3. v3.0.0 was released on 2026-11-02.

## What is the new behavior?

Adds a migration guide at
`/docs/guides/local-development/cli/migrating-to-v3`, linked from the
Local Dev / CLI nav just under "Install and run the CLI". It's modelled
on [Vite's migration guide](https://vite.dev/guide/migration): a short
summary, what to do before upgrading, how to install (or stay on v2), a
CI quick-reference table, then one section per change, ending with the
removed commands, flags, config keys and env vars as tables.

The content comes from the `BREAKING CHANGE` footers of the breaking PRs
on supabase/cli `next`, checked against the code there:
supabase/cli#6609, supabase/cli#7064, supabase/cli#7066,
supabase/cli#7074, supabase/cli#7109, supabase/cli#7116,
supabase/cli#7172, supabase/cli#7176, supabase/cli#7188 and
supabase/cli#7221.

## Additional context

The page describes v3.0.0 as released: npm `latest`, Homebrew, Scoop and
the Linux packages all install v3.

The "Staying on v2" channels are live with v2.122.1: npm `v2.stable`,
`supabase/tap/supabase@2`, `supabase-v2-stable` on Scoop, and `version:
v2.stable` or a semver range like `^2` on `supabase/setup-cli@v3`
(ranges need v3.2.0).

It also updates about 60 existing guides and troubleshooting pages for
v3. Hosted examples pass `--remote`, CI examples that change a hosted
project pass `--yes`, deprecated target flags and removed commands are
replaced, and pages that described migra as the default now describe
pg-delta.

It adds a new concept page, "Running commands against local and hosted
projects" at `/docs/guides/local-development/local-and-hosted-projects`,
linked from the Local Dev nav after "Local development workflow". It
covers how a command picks its target (local by default, `--remote` and
its forms, the linked project, the `Target:` line), how settings resolve
(flag, then shell env, then project env files, then config), and when
the CLI asks before changing a hosted project (`--yes`, `SUPABASE_YES`,
`--dry-run`, seeding), with a CI recipe and a section for AI coding
agents. The migration guide links to it from its target, consent and
config sections.

Tracks CLI-2747

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-02 13:44:40 +00:00
supabase-supabase-autofixer[bot]andphamhieu 8e2ff1f0e8 feat: update mgmt api docs (#52615)
This PR updates Management API docs automatically.

This regenerates:

- Management API specs and sections
- Personal Access Tokens permission-to-endpoint table
- Personal Access Tokens MCP tool permissions table

Sources include the live Management API specs, MCP permission map,
and Studio's shared permission catalog.

Co-authored-by: phamhieu <689843+phamhieu@users.noreply.github.com>
2026-11-02 14:16:44 +02:00
Kody Jackson 051d5f79da chore(docs) - remove troubleshooting guides and rendering logic (#52339)
## Problem

Dupe content and workflows when this content now all lives in the KB.

## Solution

Removes various artifacts from the docs repo (content files, github
workflows, etc.) from the docs app.

These paths have already been redirected to /kb in #52095 and we haven't
seen any meaningful 404 traffic indicating the redirects were done
incorrectly.

## Preview links

TBD
2026-10-27 12:32:33 -05:00
Miranda Limonczenko 038e68b777 docs: unify pooler guidance across the docs (#52332)
Closes DOCS-1519

## Problem

DOCS-1519 asks the docs team to do two things: unify the connection
recommendations, and remove PgBouncer deprecation notices. PgBouncer
isn't deprecated. It runs the dedicated pooler.

**Deprecation notices:** no page in `apps/docs` says PgBouncer is
deprecated. The last notice was in a 2021 blog post, and #52249 removed
it. Two notices remain outside the docs:

- **Studio:** the support form's IPv4 alert links to a "PGBouncer and
IPv4 Deprecation" discussion.
- **Blog:** a September 2023 update says PgBouncer is deprecated as of
January 2024.

**Recommendations:** Supabase runs two server-side poolers. The shared
pooler runs on Supavisor and is on every plan. The dedicated pooler runs
on PgBouncer and is on the Pro Plan and above.

The docs name the two poolers in many ways, and many pages leave out the
dedicated pooler. Some pages contradict the recommendations table in
[Connect to your
database](https://supabase.com/docs/guides/database/connecting-to-postgres#choose-a-connection-method):

- **Prepared statements:** `connecting-to-postgres` says transaction
mode doesn't support them. That is true for the shared pooler only. The
dedicated pooler supports them on PgBouncer 1.21 and later.
- **Migrations:** the restore pages, the quickstart partial, and the
RedwoodJS quickstart send migrations and `pg_dump` through session mode.
The table says to use the direct connection.
- **Dedicated pooler:** `pooling-and-limits` says to use it on any IPv6
network. The table keeps it for high-load apps.

## Solution

- **Names:** pages say _shared pooler_ and _dedicated pooler_, in
lowercase. Each page names Supavisor or PgBouncer once, after the pooler
name. _Session pooler_ and _Transaction pooler_ stay only where a page
quotes the Connect dialog.
- **Plans:** pooler and connection pages say _Pro Plan and above_
instead of _paid plans_.
- **Recommendations:** every page above now matches the table. The
shared pooler in session mode is the fallback for IPv4-only networks.
- **Dedicated pooler coverage:** Managing connections and the IPv4
add-on page now cover the dedicated pooler.
- **Word list:** `WORD_LIST.md` gets `dedicated pooler`, `shared
pooler`, and `paid plan` entries.

**Also fixed:**

- The direct connection examples in both restore pages had the wrong
username and `.supabase.com`.
- The Managing connections heading changed. It keeps the
`#configuring-supavisors-pool-size` anchor, because Studio links to it.

**Not changed:** billing and usage pages that say _paid plans_,
self-hosting pages, `apps/www`, and Studio. The Postgres and Render
migration guides moved to `apps/kb` on `master` while this PR was open,
so their edits are no longer in this diff.

**Troubleshooting articles:** production redirects
`/docs/guides/troubleshooting/` to `/kb/troubleshooting/`, which builds
from the troubleshooting repo. The troubleshooting edits move there
under DOCS-1521.

**Size:** 25 files, 115 lines added and 97 removed.

## Preview links

| Page | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| /connecting-to-postgres |
[Live](https://supabase.com/docs/guides/database/connecting-to-postgres)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres)
| A high-load application on the Pro Plan and above |
| /pooling-and-limits |
[Live](https://supabase.com/docs/guides/database/connecting-to-postgres/pooling-and-limits)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits)
| Use it for high-load applications |
| /connection-management |
[Live](https://supabase.com/docs/guides/database/connection-management)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connection-management)
| The pool size applies to both the shared pooler |
| /ipv4-address |
[Live](https://supabase.com/docs/guides/platform/ipv4-address) |
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/ipv4-address)
| When using the dedicated pooler in an IPv6-incompatible network |
| /backup-restore |
[Live](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/backup-restore)
| Use the direct connection string. If your network |
| /dashboard-restore |
[Live](https://supabase.com/docs/guides/platform/migrating-within-supabase/dashboard-restore)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/dashboard-restore)
| Use the direct connection string. If your ISP |
| /redwoodjs |
[Live](https://supabase.com/docs/guides/getting-started/quickstarts/redwoodjs)
|
[Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/getting-started/quickstarts/redwoodjs)
| This quickstart uses two connection strings |


## Review instructions

1. Open [Connect to your
database](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres).
The table and the **Dedicated pooler** section say _Pro Plan and above_.
2. Open [Connection pooling and
limits](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits).
It recommends the dedicated pooler for high-load apps only.
3. Open [Managing
connections](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connection-management).
The pool size section covers both the shared pooler and the dedicated
pooler.
4. Open [Backup and
restore](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/backup-restore).
Step 3 says to use the direct connection string.

## Checklist

Check all before review:

- [ ] 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-10-27 08:35:59 -07:00
supabase-supabase-autofixer[bot]andantlio ce393db239 feat: update mgmt api docs (#52280)
This PR updates Management API docs automatically.

This regenerates:

- Management API specs and sections
- Personal Access Tokens permission-to-endpoint table
- Personal Access Tokens MCP tool permissions table

Sources include the live Management API specs, MCP permission map,
and Studio's shared permission catalog.

Co-authored-by: antlio <14966155+antlio@users.noreply.github.com>
2026-10-26 15:28:56 +02:00
Miranda Limonczenko 07e69b9737 docs: fix broken anchor links (#52181)
## Problem

A full docs E2E run with the anchor check from #52174 found 58 broken
anchor links on 53 guide pages. Most point to renamed or removed
headings. Fixing them sets a baseline of zero for the IA restructure.

Closes DOCS-1516

## Solution

- Retarget each link to the section that covers it today, verified on
production.
- Add a custom id where links already use a hand-written slug, such as
`#phx_join`.
- Drop the anchor where no section fits.

## Preview links

Rows with an anchor link straight to a new custom id, which is broken on
live and works on the preview. For the rest, search the page for the
phrase to find the changed link.

| Live | Preview | Search for | Change |
| --- | --- | --- | --- |
|
[with-react](https://supabase.com/docs/guides/getting-started/tutorials/with-react)
|
[with-react](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/getting-started/tutorials/with-react)
| Row Level Security | `auth#row-level-security` →
`database/postgres/row-level-security` (20 links, 15 files) |
| [nextjs](https://supabase.com/docs/guides/auth/quickstarts/nextjs) |
[nextjs](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/nextjs)
| Supabase Auth docs | `auth#authentication` → `auth` |
| [astrojs](https://supabase.com/docs/guides/auth/quickstarts/astrojs) |
[astrojs](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/astrojs)
| Supabase Auth docs | `auth#authentication` → `auth` |
|
[custom-domains](https://supabase.com/docs/guides/platform/custom-domains)
|
[custom-domains](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/custom-domains)
| Owner or Admin permissions | `access-control#manage-team-members` →
`#manage-organization-members` |
|
[network-restrictions](https://supabase.com/docs/guides/platform/network-restrictions)
|
[network-restrictions](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/network-restrictions)
| Owner or Admin permissions | `access-control#manage-team-members` →
`#manage-organization-members` |
|
[postgres-connection-logging](https://supabase.com/docs/guides/platform/postgres-connection-logging)
|
[postgres-connection-logging](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/postgres-connection-logging)
| Owner or Admin permissions | `access-control#manage-team-members` →
`#manage-organization-members` |
|
[ssl-enforcement](https://supabase.com/docs/guides/platform/ssl-enforcement)
|
[ssl-enforcement](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/ssl-enforcement)
| Owner or Admin permissions | `access-control#manage-team-members` →
`#manage-organization-members` |
|
[with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
|
[with-expo-react-native-social-sign-in](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
| copied earlier | `#get-the-api-keys` → `#get-api-details` |
|
[with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
|
[with-expo-react-native-social-sign-in](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
| Apple Developer Console | `auth-apple#configuration-web` →
`#configuration-web-oauth` |
|
[with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
|
[with-expo-react-native-social-sign-in](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
| Google Sign In | Dropped `#react-native`, a non-default tab |
|
[with-flutter](https://supabase.com/docs/guides/getting-started/tutorials/with-flutter)
|
[with-flutter](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/getting-started/tutorials/with-flutter)
| copied earlier | `#get-the-api-keys` → `#get-api-details` |
|
[going-to-prod](https://supabase.com/docs/guides/ai/going-to-prod#hnsw-understanding-efconstruction--efsearch--and-m)
|
[going-to-prod](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/ai/going-to-prod#hnsw-understanding-efconstruction--efsearch--and-m)
| HNSW, understanding | Custom id matching the links from
`ai/choosing-compute-addon` |
|
[rag-with-permissions](https://supabase.com/docs/guides/ai/rag-with-permissions)
|
[rag-with-permissions](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/ai/rag-with-permissions)
| query plan analyzer |
`platform/performance#optimizing-poor-performing-queries` →
`database/query-optimization#analyze-the-query-plan` |
|
[ivf-indexes](https://supabase.com/docs/guides/ai/vector-indexes/ivf-indexes)
|
[ivf-indexes](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/ai/vector-indexes/ivf-indexes)
| Distance operators | `#distance-operators` →
`ai/vector-indexes#distance-operators` |
|
[custom-claims-and-role-based-access-control-rbac](https://supabase.com/docs/guides/api/custom-claims-and-role-based-access-control-rbac)
|
[custom-claims-and-role-based-access-control-rbac](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/api/custom-claims-and-role-based-access-control-rbac)
| local development | `auth-hooks#local-development` → `#developing` |
|
[native-mobile-deep-linking](https://supabase.com/docs/guides/auth/native-mobile-deep-linking)
|
[native-mobile-deep-linking](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/native-mobile-deep-linking)
| password reset |
`passwords#resetting-a-users-password-forgot-password` →
`#resetting-a-password` |
|
[mcp-authentication](https://supabase.com/docs/guides/auth/oauth-server/mcp-authentication)
|
[mcp-authentication](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/oauth-server/mcp-authentication)
| authorization UI | `getting-started#build-your-authorization-endpoint`
→ `#build-your-authorization-ui` |
| [passwords](https://supabase.com/docs/guides/auth/passwords) |
[passwords](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/passwords)
| implicit flow | `sessions#implicit-flow`, `sessions#pkce-flow` →
`sessions/implicit-flow`, `sessions/pkce-flow` |
| [redirect-urls](https://supabase.com/docs/guides/auth/redirect-urls) |
[redirect-urls](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/redirect-urls)
| third-party providers | Dropped the `auth-signinwithoauth` example
anchor |
| [users](https://supabase.com/docs/guides/auth/users) |
[users](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/users)
| User Identity | `auth-identity-linking#the-user-identity` →
`identities#the-user-identity-object` |
|
[upgrading](https://supabase.com/docs/guides/platform/upgrading#upgrading-to-pg_graphql-160)
|
[upgrading](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/upgrading#upgrading-to-pg_graphql-160)
| Upgrading to pg_graphql | Custom id matching the link from
`database/extensions/pg_graphql` |
| [import-data](https://supabase.com/docs/guides/database/import-data) |
[import-data](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/import-data)
| disk management | `database-size#disk-management` → `#disk-size` |
| [multigres](https://supabase.com/docs/guides/database/multigres) |
[multigres](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/multigres)
| Private Alpha | Dropped the link. `getting-started/features` redirects
to `/features` |
|
[data-deletion](https://supabase.com/docs/guides/database/postgres/data-deletion)
|
[data-deletion](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/postgres/data-deletion)
| Check for blocked queries | `#monitoring-locks` →
`#check-for-blocked-queries` |
|
[postgres-log-config](https://supabase.com/docs/guides/database/postgres/postgres-log-config)
|
[postgres-log-config](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config)
| Supavisor | `connecting-to-postgres#poolers` →
`pooling-and-limits#shared-pooler` and `#dedicated-pooler` |
|
[partner-catalog](https://supabase.com/docs/guides/integrations/partner-catalog)
|
[partner-catalog](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/integrations/partner-catalog)
| Project GraphQL API | `api#graphql-api-overview` → `graphql` |
|
[vercel-marketplace](https://supabase.com/docs/guides/integrations/vercel-marketplace)
|
[vercel-marketplace](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/integrations/vercel-marketplace)
| How your Vercel team maps | `#permissions` →
`#how-your-vercel-team-maps-to-supabase` |
|
[managing-config](https://supabase.com/docs/guides/local-development/managing-config)
|
[managing-config](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/local-development/managing-config)
| Managing secrets for branches |
`branching#managing-secrets-for-branches` →
`branching/configuration#managing-secrets-for-branches` |
| [reports](https://supabase.com/docs/guides/observability/reports) |
[reports](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/observability/reports)
| Query Performance Advisory | `performance#examine-query-performance` →
`#examining-query-performance` |
| [backups](https://supabase.com/docs/guides/platform/backups) |
[backups](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/backups)
| legacy logical backup | `backup-restore#backup-database-using-the-cli`
→ `#back-up-database-using-the-cli` |
|
[backups](https://supabase.com/docs/guides/platform/backups#pitr-restoration-process)
|
[backups](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/backups#pitr-restoration-process)
| Restoration process | Custom id matching the link from
`read-replicas/getting-started` |
|
[branching](https://supabase.com/docs/guides/platform/manage-your-usage/branching)
|
[branching](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/manage-your-usage/branching)
| persistent branches | `branching#persistent-branches` →
`#how-branching-works` |
|
[point-in-time-recovery](https://supabase.com/docs/guides/platform/manage-your-usage/point-in-time-recovery)
|
[point-in-time-recovery](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/manage-your-usage/point-in-time-recovery)
| backup frequency | `backups#frequency-of-backups` → `backups` |
|
[read-replicas](https://supabase.com/docs/guides/platform/read-replicas)
|
[read-replicas](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/read-replicas)
| IPv4 add-on | `ipv4-address#read-replicas` →
`#read-replicas-and-ipv4-add-on` |
|
[protocol](https://supabase.com/docs/guides/realtime/protocol#access-token)
|
[protocol](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/protocol#access-token)
| access_token | Custom id matching the link from
`realtime/authorization` |
|
[postgres-changes](https://supabase.com/docs/guides/realtime/postgres-changes#negating-a-filter-not)
|
[postgres-changes](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/postgres-changes#negating-a-filter-not)
| Negating a filter | Custom id matching the existing in-page link |
|
[protocol](https://supabase.com/docs/guides/realtime/protocol#phx_join)
|
[protocol](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/protocol#phx_join)
| phx_join | Custom id matching the existing in-page link |
| [reports](https://supabase.com/docs/guides/realtime/reports) |
[reports](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/reports)
| Broadcast via REST API | `broadcast#broadcast-via-rest-api` →
`#broadcast-using-the-rest-api` |

<details>
<summary>The 15 files with Row Level Security links</summary>

- `_partials/quickstart_intro.mdx`, used by the framework tutorials
- `auth/phone-login`
- `auth/quickstarts/with-expo-react-native-social-sign-in`
- `database/postgres/column-level-security`
- `getting-started/tutorials/`: `with-flutter`, `with-ionic-angular`,
`with-ionic-react`, `with-ionic-vue`, `with-kotlin`, `with-nuxt-3`,
`with-redwoodjs`, `with-solidjs`, `with-svelte`, `with-swift`,
`with-vue-3`

</details>

## Review instructions

1. Open a few live and preview links side by side, and click the changed
link on each to confirm the preview lands on the right section.
2. From a checkout of `docs/e2e-anchor-links`, run the anchor check
against the preview with the changed pages, as described in
`e2e/docs/README.md`:
`DOCS_E2E_PAGE_PATHS=<changed /docs/... paths>
PLAYWRIGHT_BASE_URL=https://docs-git-docs-fix-broken-anchors-supabase.vercel.app
pnpm exec playwright test --grep-invert @a11y`
3. Confirm the anchor check reports no failures.

## 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-10-23 12:24:57 -07:00
Alexis Aguilar 8a78b7e5be docs: call Edge Functions from Postgres with the secret key (#51990)
Found during my dogfooding project :)

## Problem

Three guides give conflicting guidance on how Postgres should
authenticate when it calls an Edge Function:

- **Securing Edge Functions:** calls from `pg_net` and cron jobs send
the secret key on `apikey`, with `auth: 'secret'` and `verify_jwt =
false`. The Dashboard agrees: the webhook and cron job forms only offer
**Add secret key**.
- **Scheduling Edge Functions:** the only example that stores a key in
Vault sends the publishable key. A request with only the publishable key
passes the `verify_jwt` check, so anyone who has that public key can
call the function.
- **Database Webhooks:** doesn't cover calling an Edge Function or
authenticating to it. Its SQL example writes headers inline, so a
webhook created in a migration puts the secret key in a committed file.

Resolves [DOCS-1458](https://linear.app/supabase/issue/DOCS-1458),
[FDBKIN-19992](https://linear.app/supabase/issue/FDBKIN-19992)

## Solution

All three pages now recommend the secret key for calls from Postgres.

- **Scheduling Edge Functions:** stores and sends the secret key,
explains why the publishable key isn't safe here, and links to the
function-side setup.
- **Database Webhooks:** a new Call an Edge Function section covers the
Supabase Dashboard flow and a migration. The migration reads the key
from Vault in a `security definer` trigger function. The section
explains that the definer is required, because the roles that insert
rows can't read Vault.
- **Securing Edge Functions:** the service-to-service section is now a
two-step setup. It shows how to disable the `verify_jwt` check in
`supabase/config.toml`, with a link to the Authorization headers guide,
and how to use `auth: 'secret'` in the function. It then links to
Database Webhooks and Scheduling Edge Functions.
- **`pg_net` queue:** Database Webhooks and Scheduling Edge Functions
show a caution that any role that can log in to the database can read
the secret key while the request waits, because `pg_net` writes the
decrypted key to `net.http_request_queue` until it sends the request.
Both pages include the caution from a new partial,
`_partials/pg_net_queued_key.mdx`, which links to the troubleshooting
article.

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

| Snippet / step | Class | Sandbox | Result | Notes |
| --- | --- | --- | --- | --- |
| Function with `auth: 'secret'` and `verify_jwt = false`, called with
the secret key on `apikey` | runnable-with-setup | Compose runner +
`supabase start` | pass | Returns `200` |
| Same function, called with the publishable key, then no key |
runnable-with-setup | Compose runner + `supabase start` | pass |
Rejected with `INVALID_API_KEY`, then `MISSING_CREDENTIALS` |
| Scheduling Edge Functions: Vault secrets, then `cron.schedule` |
runnable-with-setup | Compose runner + `supabase start` | pass | The
cron run succeeded, and the function returned `200` |
| Database Webhooks: Vault-based trigger function and trigger |
runnable-with-setup | Compose runner + `supabase start` | pass | Inserts
as `postgres` and as `authenticated` both reached the function with the
documented payload |
| Same trigger function as `security invoker`, insert as `authenticated`
| runnable-with-setup | Compose runner + `supabase start` | pass | Fails
with `permission denied for schema vault`, which confirms the page's
explanation |
| Database Webhooks: Dashboard steps | deferred | — | deferred | Needs a
hosted project. Labels confirmed in the Studio source. |

**Tier A path:** Vault secrets → `pg_cron` job → `pg_net` request → Edge
Function with `auth: 'secret'` returns `200`.

**Environment:** OrbStack; compose sandbox (`sandbox/run.sh`); fences
in-container only. Two deviations from the stock sandbox, neither
committed:

- The sandbox pins Supabase CLI v2.39.2, which predates `sb_secret_` and
`sb_publishable_` keys. The run used v2.121.0.
- The `dind` service doesn't mount `/work`, so local functions fail with
`failed to determine entrypoint`. The function file was copied into the
DinD filesystem.

`project_url` pointed at the local API gateway, because the database
container can't reach the runner's `127.0.0.1`.

## Preview links

- [Database
Webhooks](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/database/webhooks)
- [Scheduling Edge
Functions](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/functions/schedule-functions)
- [Securing Edge
Functions](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/functions/auth)


## Post-merge

> [!IMPORTANT]
> After this PR merges, post the following comment on
[FDBKIN-19992](https://linear.app/supabase/issue/FDBKIN-19992) and close
it:
>
> The "Missing required headers" error happens when the webhook doesn't
send an auth header to the Edge Function. Database Webhooks send only
the headers you configure. [Database Webhooks → Call an Edge
Function](https://supabase.com/docs/guides/database/webhooks#call-an-edge-function)
shows how to add the secret key, either in the Dashboard with **Add
secret key** or in a migration that reads the key from Vault. [Securing
Edge
Functions](https://supabase.com/docs/guides/functions/auth#service-to-service-calls)
covers the function side: disable `verify_jwt` and use `auth: 'secret'`.
2026-10-22 19:19:42 +00:00
Alexis Aguilar 70fe3de074 docs: move social login URLs to social sign-in (#52111)
## Problem


[supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102)
and
[supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109)
rename *social login* to *social sign-in* in visible text, so every
sign-in method follows the same pattern. The URLs still say
`social-login`, and the Expo quickstart's says `social-auth`. Keeping
feature names consistent includes the URLs: readers see them in the
address bar, in search results, and in links shared between docs, the
Dashboard, and the marketing site.

Part of [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459).

## Solution

| Old URL | New URL |
| --- | --- |
| `/docs/guides/auth/social-login` | `/docs/guides/auth/social-sign-in`
|
| `/docs/guides/auth/social-login/*` (18 provider pages) |
`/docs/guides/auth/social-sign-in/*` |
| `/docs/guides/auth/quickstarts/with-expo-react-native-social-auth` |
`/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in` |
| `/features/social-login` | `/features/social-sign-in` |

- **Redirects:** `apps/www/lib/redirects.js` has a permanent redirect
for each old URL. One `:path*` entry covers the provider pages. Existing
redirects that pointed at the old URLs point straight at the new ones,
so no URL redirects twice.
- **Links:** docs content, navigation, provider data, and SDK specs,
Studio's Auth provider settings (29 "Learn more" links), the marketing
site, the UI library docs, and the knowledge base use the new paths.
- **Code name:** the docs navigation list `SocialLoginItems` is
`SocialSignInItems`.

Intentionally unchanged:

- **Blog posts:** their links keep the old URLs and use the redirects.
- **Sitemaps:** the `refresh-sitemaps.yml` workflow regenerates them.
- **Image file names:** for example, `social-login.png` and
`supabase-expo-social-auth-login.png`. Readers don't see them.
- **UI library blocks:** the blocks are named `social-auth`, and the
name is part of their install commands, so renaming them is a decision
for the UI library's owners.

## Related PRs

The rename spans three PRs, so the feature has one name on every
surface:

-
[supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102)
(merged): the docs.
-
[supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109)
(merged): the marketing site, the Dashboard command menu, the UI library
docs, the knowledge base, and the Docker configuration comments.
- **This PR:** the URLs, including the Expo quickstart's, move to
`social-sign-in` with redirects.

## Verification

- Docs typecheck and the guides Markdown build pass.
- `redirects.js` loads with 841 entries and no conflicting sources.
- No `social-login` path remains outside blog posts, snapshots,
generated files, the redirect sources, and image file names.

To check the redirects, use the marketing site's preview, because `www`
applies the docs redirects and the docs preview doesn't. If that preview
serves production docs, the redirected page shows as missing until the
new paths deploy. The redirect itself is what to check:

-
[/docs/guides/auth/social-login](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-login)
-
[/docs/guides/auth/social-login/auth-google](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-login/auth-google)
-
[/docs/guides/auth/quickstarts/with-expo-react-native-social-auth](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-auth)
-
[/features/social-login](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/features/social-login)

## Preview links

- [Social
sign-in](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-sign-in)
- [Sign in with
Google](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-sign-in/auth-google)
- [Expo
quickstart](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
- [Social sign-in feature
page](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/features/social-sign-in)
2026-10-22 18:23:26 +00:00
Alexis Aguilar 3f4ff4fd4d docs: use social sign-in and phone sign-in consistently (#52102)
## Problem

The docs used several names for the same sign-in methods: "social auth",
"social authentication", and "social login" for social providers, and
"Phone Auth" and "Phone Login" for phone. Other methods use *sign-in*,
such as passwordless email sign-in and anonymous sign-in. The Auth
overview also listed the sign-in methods without linking to their pages,
and the custom OAuth/OIDC provider note had two different versions.

Resolves [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459).

## Decision

This PR first standardized on *social login*, which the [word
list](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/WORD_LIST.md)
named as an exception to *sign-in*. @czenko approved dropping the
exception, so the feature is now *social sign-in*, and every sign-in
method follows the same pattern. One name per feature keeps the docs
consistent for readers and AI agents, and new pages don't need a special
case.

## Solution

- **Social sign-in:** "social auth", "social authentication", and
"social login" are "social sign-in" in docs page titles, headings, body
text, link text, navigation labels, the getting started listing, and the
C# SDK reference specs.
- **Phone sign-in:** the Auth overview's providers list and both phone
navigation labels match the phone pages' titles.
- **Word list:** drops *social login* as an exception, and names *social
sign-in*, *phone sign-in*, and *anonymous sign-in* as feature names.
- **Auth overview:** each sign-in method links to its page.
- **Custom provider note:** a new partial,
`_partials/custom_oauth_providers_note.mdx`, is included by the
providers list and Social sign-in.
- **Expo quickstart:** both image alt texts describe their screenshots.

Intentionally unchanged:

- **URLs, code names, and file names:**
`/docs/guides/auth/social-login/...`, `SocialLoginItems`, MDX file
names, and image files such as `social-login.png`.
- **Dated and quoted content:** blog posts, an event page, a customer
story, and a quoted user tweet.
- **JS SDK reference text:** "Social Login (OAuth) providers" in
`signInWithOAuth` comes from the `supabase-js` repository.

## Related PRs

The rename spans three PRs, so the feature has one name on every
surface:

- **This PR:** the docs.
-
[supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109):
the marketing site, the Dashboard command menu, the UI library docs, the
knowledge base, and the Docker configuration comments. The UI library's
blocks keep the name `social-auth`, because the name is part of their
install commands, so renaming them is a decision for the UI library's
owners.
-
[supabase/supabase#52111](https://github.com/supabase/supabase/pull/52111):
the URLs, including the Expo quickstart's, move to `social-sign-in` with
redirects.

Merge this PR and #52109 first, then rebase #52111, because it edits
some of the same lines.

## Preview links

- [Auth
overview](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth)
- [Social
sign-in](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth/social-login)
- [Build a Social Sign-in App with Expo React
Native](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-auth)
- [Choosing the Right SSO Sign-in
Flow](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/choosing-login-flow)
- [Understanding SSO Sign-in
Flows](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/login-flows)
- [SSO Testing and Best
Practices](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/testing-best-practices)
- [Restore a Platform Project to
Self-Hosted](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/self-hosting/restore-from-platform)
- [Configure Social Sign-in (OAuth)
Providers](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/self-hosting/self-hosted-oauth)
2026-10-22 08:29:54 -07:00
Kody Jackson d4a2c464b2 chore(docs) - update troubleshooting links to new destinations (#52095)
## Problem

KB now has definitive version of the troubleshooting guides. Need to
update the in content links to match work happening in #52088.

## Preview links

N/A... all atomic changes to links, so previews not very helpful here.
2026-10-22 08:02:23 -05:00
supabase-supabase-autofixer[bot]andantlio 61d9b7304d feat: update mgmt api docs (#51246)
This PR updates Management API docs automatically.

This regenerates:

- Management API specs and sections
- Personal Access Tokens permission-to-endpoint table
- Personal Access Tokens MCP tool permissions table

Sources include the live Management API specs, MCP permission map,
and Studio's shared permission catalog.

Co-authored-by: antlio <14966155+antlio@users.noreply.github.com>
2026-10-20 16:19:00 +03:00
Shane AdamsandClaude Sonnet 5.5 6c150d26d9 docs(mgmt-api): clarify rate limits are per endpoint (#51379)
## Problem

The Management API rate limits docs said limits are per user and per
project or organization. They didn't say that each endpoint also has its
own limit, or how requests without a project or organization, and tokens
versus OAuth apps, are counted. The partial also had a typo, a repeated
example, and a tracking-key sentence that listed endpoint as a scope.

## Solution

Edits to `apps/docs/content/_partials/api_rate_limits.mdx`, in one
commit per change type:

1. `docs(mgmt-api): clarify rate limits are per endpoint`: the content
change. It adds the per-endpoint model, the user scope, the `POST
/v1/projects` scoping, and who the limit applies to.
2. **Style**: fixes the `enpoint` typo and the table alignment, removes
the repeated Project A/B paragraph and the `database/context` note that
restated its table rows, unwraps hard-wrapped lines, and aligns bold
labels and wording with the style guide.
3. **Structure**: moves "Rate limit response headers" after "Who the
limit applies to", so the concept sections come before the reference
sections. No headings were renamed, and no inbound anchors to them exist
in `apps` or `packages`.
4. **Technical**: the tracking-key sentence now reads "scope (project or
organization) and the endpoint". It previously listed endpoint as a
scope, which contradicted the scope list.

Not verified against the rate limiter, which isn't in this repo. A
reviewer with access should confirm:

- Requests without a project or organization count against the user.
- `POST /v1/projects` is organization-scoped via `organization_slug`.
- Personal access tokens share the user's limit, and OAuth apps share
the app's limit.
- The tracking-key wording in commit 4 is inferred from the page, not
from code.

## Preview links

| Site | Live | Preview | Search for |
| ---- |
-------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ------------------------------ |
| Docs |
[/docs/reference/api/introduction](https://supabase.com/docs/reference/api/introduction)
|
[/docs/reference/api/introduction](https://docs-git-docs-mgmt-api-rate-limits-per-endpoint-supabase.vercel.app/docs/reference/api/introduction)
| `Who the limit applies to` |

## Review instructions

1. Open the live and preview links side by side and scroll to "Rate
limits".
2. Check that the section order is: Standard rate limit, Rate limit
scope, How rate limits are tracked, Who the limit applies to, Rate limit
response headers, Endpoint exceptions, Best practices.
3. Check that the scope table and the endpoint exceptions tables render
correctly.
4. Review commit by commit, since each commit is one change type.
5. If you can read the rate limiter code, check the unverified claims
listed above.

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

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-07 10:22:44 -06:00
supabase-supabase-autofixer[bot]andzamotany e54394cfd8 feat: update mgmt api docs (#49743)
This PR updates Management API docs automatically.

This regenerates:

- Management API specs and sections
- Personal Access Tokens permission-to-endpoint table
- Personal Access Tokens MCP tool permissions table

Sources include the live Management API specs, MCP permission map,
and Studio's shared permission catalog.

Co-authored-by: zamotany <17573635+zamotany@users.noreply.github.com>
2026-09-30 18:34:09 +02:00
Joey Lei d15634ae58 updated guidance for logs pricing, revised manage logs usage pages, introduction of the grace period(#49656)
Supabase Logs is moving to usage-based pricing. We're announcing changes early so impacted projects have time to adjust before billing begins when the grace period through early 2027.
2026-09-24 10:27:23 -07:00
Andrey A. 8ed27fdb50 docs(auth): forward Set-Cookie headers on server-side OAuth redirect (PKCE) (#50722) 2026-09-22 16:01:37 +02:00
e357ec8f9f docs(cli): update local development workflow docs for pg-delta default diffing (#49280)
## 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.

## What is the current behavior?

Linear:
[CLI-1618](https://linear.app/supabase/issue/CLI-1618/update-cli-workflow-docs-for-pg-delta-default-diffing)

Four docs pages lag the shipped CLI behavior now that `pg-delta` is the
default diff engine for projects created by a recent `supabase init`:

- **CLI workflows** claims `db diff` compares `supabase/schemas/`
against migrations. Under `pg-delta`, declarative files are never the
`db diff` baseline (and `[db.migrations].schema_paths` no longer changes
it) — the declarative flow goes through `supabase db schema declarative
sync`. The cleanup guidance describes `migra`-era output.
- **Declarative database schemas** teaches the old `db diff -f` +
`schema_paths` flow throughout, and its known-caveats list is the
`migra` issue list.
- **Managing environments** still presents `--use-migra` as an
"experimental flag" for a "more concise" diff — inverted now.
- **Backup and restore (migrating within Supabase)** and the CLI
workflows guide both steer users to `db diff`/`db pull` with `--schema
auth,storage`. Under `pg-delta`, `--schema` layers an extra exclude
policy on top of the Supabase profile: it can only narrow a diff, never
re-include managed schemas, and managed-schema selections can even fail
closed (e.g. `--schema auth` when a trigger function lives in `public`).
Unfiltered diffs are the supported path.

## What is the new behavior?

All claims verified against the CLI source at current `develop` —
including supabase/cli#6300, which upgraded the engine to
`@supabase/pg-delta` 1.0.0-alpha.46 — against the pinned pg-delta
package source (profile rules, format defaults, coverage doc), and
against a live dogfood run of the documented workflows on `develop`
`38f31b4` (two OSS corpus projects, warm shadow cache).

- **`cli-workflows.mdx`**: adds a "Which diff engine you're on" note
(`pg-delta` for new `supabase init` projects, `migra` for existing ones
until they opt in by adding `[experimental.pgdelta] enabled = true`;
per-run fallbacks `--use-migra` on `db diff` / `--diff-engine migra` on
`db pull`); corrects `db pull` and `db diff` mechanics (shadow built
from migrations vs. live database; the baseline history record is
offered, not unconditional); switches the declarative flow to `supabase
db schema declarative sync`; reworks the cleanup section around pg-delta
output (uppercase keywords at max width 180, `format_options`, per-unit
migration files with numeric segment suffixes, the `-- pg-delta:
transaction=false` directive on genuinely non-transactional files,
engine-neutral grant/revoke review guidance, coverage warnings +
`--strict-coverage`); documents what pg-delta captures in managed
schemas (user triggers, RLS policies on `auth` tables and on
`storage.objects`/`storage.buckets`/`realtime.messages`) versus what it
doesn't; adds key-command rows for the declarative commands and
troubleshooting entries (`db pull` non-zero exit when in sync, the
`schema_paths` warning, `PGDELTA_DEBUG=1` bundles under
`supabase/.temp/pgdelta/v2/debug/`).
- **`declarative-database-schemas.mdx`**: swaps `db diff -f` for `db
schema declarative sync -f` throughout; replaces
lexicographic/`schema_paths` ordering guidance with automatic dependency
ordering and the `generate` export layout (`_cluster/`, reserved
`_custom/`); bootstraps from production via `db schema declarative
generate --linked` (explicit target + `--overwrite` in scripts) and
refreshes via `db pull --declarative`; rewrites known caveats for
pg-delta (DML including storage buckets, untracked object kinds + the
`_custom/` escape hatch, managed schemas, extension-managed objects, and
the two gates when adopting an existing schema tree:
`[experimental.webhooks]` for `pg_net` migrations and declaring the
tree's extensions) keeping the `migra` workflow and issue list under a
legacy section for projects that haven't enabled it.
- **`managing-environments.mdx`**: frames the verbose grant sample as
legacy-engine output, notes that generated migrations can include grant
statements on any engine, describes `--use-migra` as a single-run
fallback, and adds a `db diff --strict-coverage` CI step.
- **`backup-restore.mdx`**: replaces `db diff --linked --schema
auth,storage` with a plain `db diff --linked` on `pg-delta` (keeping the
`--schema auth,storage` form for the legacy engine) and explains what
the engine includes (user triggers on managed tables, user RLS policies
on `auth`, `storage.objects`/`storage.buckets`/`realtime.messages`) and
what must be recreated manually.
- **New `diff-engines.mdx` page** (from #49889): the single home for how
the engine is selected, a behavior matrix for `pg-delta` versus `migra`,
the per-command fallback flags, a procedure for switching an existing
project (the first `db pull` after enabling may write a catch-up
migration), and how to go back with `enabled = false`. Registered in
navigation. A shared `diff_engine_check` partial replaces the inline
engine parentheticals across seven pages, and a
`managed_schemas_diff_capture` partial carries the managed-schema
capture rules.
- **CLI reference (`cli_v1_commands.yaml`, `cli_v1_config.yaml`)**: `db
pull`, `db schema declarative sync`/`generate` flags and descriptions,
`experimental.pgdelta.*` and `db.migrations.schema_paths` config keys,
and the `db diff` description updated to describe both engines. Note
that `cli_v1_commands.yaml` is generated from the CLI repo;
[supabase/cli#6557](https://github.com/supabase/cli/pull/6557) carries
the matching `db pull` example and overlay text so the next publish
keeps it.
- **`examples/prompts/declarative-database-schema.md`**: rewritten for
the `db schema declarative sync` flow, with the `[experimental.pgdelta]`
prerequisite.

## Additional context

The first draft was written against pg-delta 1.0.0-alpha.42.
supabase/cli#6300 (engine upgrade to alpha.46) then changed two
documented behaviors, both reflected here: generated SQL now defaults to
uppercase pretty-printed keywords, and user RLS policies on
`storage.objects`/`storage.buckets`/`realtime.messages` are included via
the engine's `SUPABASE_USER_POLICY_SURFACES` allowlist. A follow-up
dogfood run on `develop` `38f31b4` then falsified three more claims
(pg-delta emits no grant noise, `_schema_changes`/`_after_enum_values`
multi-file names, directive on every split file), all corrected in the
last commit.

**Update (Sep 14 to 17):**
[#49889](https://github.com/supabase/supabase/pull/49889) and
[#50220](https://github.com/supabase/supabase/pull/50220) were merged
into this branch, so this PR now carries the full stack. #50220
corrected the `schema_paths` warning wording (the CLI warns only when
the setting lists paths), added `auth` RLS policies to the
managed-schema partial, and described the migra initial pull accurately
(the `pg_dump` skips managed schemas and the migra diff pass that
follows appends the trigger and policy changes). It also reframed
`pg-delta` as the default for every project ahead of supabase/cli#6391.
That plan changed: no breaking default flip before Select, so
[#50332](https://github.com/supabase/supabase/pull/50332) restores the
opt-in framing (`pg-delta` requires `[experimental.pgdelta] enabled =
true`, which `supabase init` writes for new projects) and also resolves
the four CodeRabbit findings from the latest review round.

Two claims are pending confirmation from the owning teams: that
branching runs every migration in a transaction and ignores the `--
pg-delta: transaction=false` directive, and the `--db-url`
pooler-versus-direct connection advice, which currently disagrees with
the CLI's own `db pull` docs.

Stale spots found in the CLI repo's own docs while verifying (out of
scope here, worth follow-ups): four `SIDE_EFFECTS.md` files still claim
lowercase output, `docs/supabase/db/diff.md` still lists `migra`-era
"known failure cases" that alpha.46 fully models, the `supabase init`
template's commented `format_options` example shows `maxWidth: 80`
against an actual default of 180, and the CLI upgrade recipe appends
`--experimental` even when the config already enables pg-delta.

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

https://claude.ai/code/session_01SUuaVmXLRbV6tZjzhka3cp

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Clarified `pg-delta` and legacy `migra` behavior, configuration, and
switching guidance.
* Expanded declarative schema workflows, including synchronization,
migration generation, baselines, deployment, and legacy-engine support.
* Documented managed schemas, permissions, extensions, transaction
handling, dependency ordering, and troubleshooting.
* Added guidance for strict coverage checks, output directories,
non-interactive workflows, and declarative pull modes.
* Added a dedicated diff engines guide and updated CLI navigation,
backup and restore, branching, deployment, and CI documentation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Wen Bo Xie <wenbox323@gmail.com>
2026-09-21 12:07:10 +02:00
Riccardo Busetti ced974e073 docs(pipelines): Align and streamline replication guides (#49252) 2026-09-21 08:27:07 +02:00
Miranda Limonczenko e8547352c5 docs(auth): answer the four most repeated SSR auth questions (#50289)
Closes DOCS-1313
Closes FDBKIN-4573
Closes FDBKIN-15214
Closes FDBKIN-10628

## Problem

Four asks come up repeatedly in feedback intake. The Eval is green and
this feedback cannot be included in the Eval. Using the Evals work as an
excuse to action on the feedback. 😄

Readers can't tell which auth call verifies a token and which only reads
stored state. They don't know that the response the cookies were written
to is the response they have to return, because that only ever existed
as a code comment. Nobody is warned that refreshing in two places burns
a single-use refresh token, which surfaces as users being signed out at
random. And nothing in `apps/docs` says `proxy.ts` is Next.js 16 and
later, so a reader on 15 writes a file the framework never calls.

## Solution

- Add the fact that `getClaims()` refreshes a session close to expiring
before it verifies. It was only in the typedoc remarks, and it is what
makes the double refresh warning make sense.
- Say that `setAll` rebuilds `supabaseResponse` on every write, so a
response built earlier is stale, and show how to copy the cookies onto a
different one.
- Warn that a second refresh outside the reuse window revokes the
session, linking refresh token reuse detection.
- Note that `proxy.ts` is Next.js 16 and later, and that the file is
`middleware.ts` before that.
- Name the file in the proxy fence in
`examples/prompts/nextjs-supabase-auth.md`, which gave agents the export
name and no path.

The auth methods partial is shared by five other pages, so that first
change surfaces there too.

## Manual testing

1. Open the [SSR client
guide](https://docs-git-docs-ssr-client-feedback-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client)
on the deploy preview. The Next.js panel carries the version note, the
refresh warning, and the response guidance.
2. Select the refresh token reuse detection link. It resolves to the
sessions guide.
3. Open the [Next.js Auth
prompt](https://docs-git-docs-ssr-client-feedback-supabase.vercel.app/docs/guides/ai-tools/ai-prompts/nextjs-supabase-auth).
The proxy section names the file and says it is `proxy.ts` on Next.js 16
and later.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Documentation

- Clarified that `getClaims` refreshes sessions when access tokens are
near expiration, helping server-rendered sessions remain active.
- Expanded Next.js SSR guidance for session-refresh setup, including
file placement and version-specific naming.
- Added warnings about refresh-token reuse and session revocation after
repeated refreshes outside the reuse window.
- Added guidance for preserving authentication cookies and cache-related
headers when returning updated responses.
- Clarified that refreshed tokens should be passed to Server Components
to keep sessions active.
- Clarified the required session-refresh handler export and example
filename.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-16 12:48:23 -07:00
Gildas GarciaandAlaister Young 9b1dddde11 Scoped PAT: add api_gateway_keys_secret_read and data_api_config_secret_read permissions (#50134)
## What kind of change does this PR introduce?

Surface the new scoped personal access token permissions published in
`@supabase/shared-types` 0.1.95 (added by
https://github.com/supabase/platform/pull/38060, now deployed).

**Stacked on #50234**, which regenerates the Management API types so
Studio's scope type includes the new ids. This PR targets that branch
and will retarget to `master` when it merges.

## What's in here

- Bump `@supabase/shared-types` to 0.1.95 (Studio and shared-data).
- Catalog entries in
`packages/shared-data/scoped-access-token-permissions.ts`:
- **API Key Secrets** (`api_gateway_keys_secret_read`): gates
`?reveal=true` on the API keys endpoints. Renamed from "JWT secret",
which described the wrong thing.
- **Data API JWT Secret** (`data_api_config_secret_read`): gates the
`jwt_secret` field on the PostgREST config endpoint.
- **Compute** (`workers_read` / `workers_write`): shared-types 0.1.95
also publishes the workers scopes, so they surface in the catalog now.
Named to match Studio's product naming (#50208).
- Minimum roles for the four new ids in `FGA_SCOPE_MINIMUM_ROLE`,
transcribed from the OpenFGA model (secret reads: developer; workers
read: readonly; workers write: developer).
- Docs generator (`generateAccessControlPartials.mts`):
  - Drop the workers exclusion now that the scopes are live.
- When an endpoint lists alternative permission sets (for example API
keys read alone, or read plus secret read for reveal), a row's footnote
now only considers the alternatives that include that row's own scope.
Previously the API Key Secrets row would have said "Requires API Keys
(Read), or API Keys (Read) and API Key Secrets (Read)".
- Regenerated PAT guide tables. The committed Management API specs
predate the secret scopes, so this also includes the same spec refresh
the weekly docs bot performs (`chore(docs): refresh the Management API
specs`, kept as its own commit). Besides the new rows it picks up two
new upstream endpoints under Advisors and the branch rows.

## Verified

- `pnpm --filter studio typecheck` clean on top of #50234.
- Access token test suite passes, including the guard that the role
table covers exactly the ids shared-types publishes.
- Partial regeneration is idempotent, so the Docs Tests stale-table gate
passes.

## Follow-ups (not in this PR)

- `apps/docs/content/guides/getting-started/api-keys.mdx` says a
fine-grained token needs `api_gateway_keys_read` for the `?reveal=true`
example. It now also needs `api_gateway_keys_secret_read`.
- `project:api_gateway_keys` still says "Read exposes API keys" in its
risk reason, which overstates it now that secret values sit behind a
separate scope. Rewording may mean revisiting its risk level.
- The comment in `ComputeLayout.tsx` about shared-types not exposing
`workers_read` is stale.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added permission support for API key secrets, Data API JWT secrets,
and compute workers.
  * Added API endpoints to run project advisors and create branches.
* Added support for additional log-drain destinations, including S3,
Last9, and OTLP.
* Added storage object versioning information to project configuration
responses.
* **Documentation**
* Updated access-control documentation for new permissions, worker
operations, advisor runs, and branch creation.
  * Clarified Data API configuration and secret descriptions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-09-11 13:31:21 +08:00
ŁUKASZ KORBASIEWICZ 8121df5b0a docs: correct Auth rate limit details (#49772)
## 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

## What is the current behavior?

The Auth rate-limit table contains stale customization statuses and time
windows, omits SMS and Web3 limits, and describes the anonymous sign-in
burst incorrectly.

## What is the new behavior?

- Aligns documented limits with the current Auth, Studio, and Management
API behavior
- Documents SMS, Web3, and sign-up/sign-in request limits
- Corrects verification, token, MFA, email, and anonymous sign-in
details
- Updates shared rate-limit values and units used by the docs

## Additional context

Validation:

- Prettier check
- Focused MDX lint
- Shared-data TypeScript check
- All 16 SharedData references resolve

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Updates**
* Refined authentication rate limits with clearer per-minute and
per-five-minute windows.
* Added rate limits for SMS, password reset requests, and Web3 sign-ups
and sign-ins.
* Updated sign-in, sign-up, verification, token refresh, MFA, and
anonymous sign-in limits, including customizable settings where
supported.
  * Clarified email-sending limits and OTP behavior.

* **Documentation**
* Updated rate-limit reference tables and guidance on request bucket
capacity and sustained traffic.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-08 18:52:22 +02:00
6f2effd9e2 docs: add hire-an-agent templates for observability routines (#49504)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
## Stack

Draft stack extracted from `docs/monitoring`. Merge bottom-up.
Troubleshooting / debugging-guide rewrite is out of scope.

1. #49503 move inspect and advisors
2. #49501 split Studio logs from ClickHouse queries
3. #49500 treat reports as signal dashboards
4. #49502 add Observe the data hub
5. #49506 add agent setup components
6. **#49504** add hire-an-agent templates ← **this PR**
7. #49505 restructure observability nav and overview

## 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. Sixth layer in the observability stack.

## What is the current behavior?

Humans and agents have no packaged, copy-paste observability routines to
run in their own harness.

## What is the new behavior?

- Hire an agent hub plus Doctor, Security officer, Personal trainer, and
Accountant
- Each page is a prompt + schedule + harness setup (Claude, Codex,
Cursor)
- MCP security guidance covers unattended read-only monitoring on
production

## Additional context

These pages are the agent-facing templates from the prototype. #49505
puts them in the Observability overview and sidebar.
<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-a3cb5ece-925b-4046-b58a-5d69e9a9d794?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-a3cb5ece-925b-4046-b58a-5d69e9a9d794&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Saxon Fletcher <SaxonF@users.noreply.github.com>
Co-authored-by: Steven Eubank <eubank.steven88@gmail.com>
2026-09-04 13:38:38 +10:00
Miranda Limonczenko 5bd0b90cf0 docs: add all ways to get an API key (not just Studio) (#49797)
## 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.

## What is the current behavior?

"Find your keys" offers only the Dashboard. Readers working from a
script, a preview branch, or a local stack have no path, which accounts
for several logged reports of people unable to locate a key.

## What is the new behavior?

Replace the procedure with a tabbed selector so a reader picks the path
that matches where they work:

- Dashboard, through the Connect dialog or Settings > API Keys.
- Supabase CLI, `supabase projects api-keys --project-ref`, including
the note that a preview branch has its own keys and needs its own ref.
- Management API, `GET /v1/projects/{ref}/api-keys?reveal=true`, for
deploy scripts and provisioning tooling.
- Local stack, from `supabase start` output or `supabase status`.

`queryGroup="retrieval-method"` makes each tab deep-linkable, so a
reader can be sent straight to one path.

## Additional context

PR 3 of 4. Base is #49796.

## Manual testing

1. Open the API keys guide on the deploy preview and find "Find your
keys".
2. Select each tab. One panel shows at a time, and the URL gains
`?retrieval-method=<tab>`.
3. Open that URL in a new tab. It restores the same selection.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Documentation**
- Updated the API key deprecation guidance to link to the “Find your
keys” guide.
- Expanded the guide with instructions for retrieving keys through the
Dashboard, CLI, Management API, and local stack.
- Added guidance to create keys in the Dashboard when none are
available.
  - Reworded the table of contents entry for improved clarity.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-01 14:40:54 -07:00
Miranda Limonczenko d7f1a44e53 docs: restructure the API keys guide by information type (#49796)
## 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. Restructure, mostly moved lines, plus a tense fix in a
shared partial.

## What is the current behavior?

Context, procedure, and reference material are interleaved, so
background reading interrupts the action path.

- The page never states which key to use as an answer. You infer it from
a five-column reference table.
- Finding a key is a fragment inside an admonition, placed above the
page's own definition of an API key.
- Rotating a leaked key, the only procedure on the page, is the last H3.
- The "Changes to API keys" notice narrates a past change in future
tense, and "They will be deprecated" has no antecedent in its paragraph.

## What is the new behavior?

Group the guide into context, procedure, and reference sections, per
CONTRIBUTING § Guides on mixed information types.

- Lead with "Which key do you use?", a decision table keyed on where the
code runs. Section navigation sits directly below the intro.
- Collect the conceptual sections under "How API keys work" and give
publishable and secret keys parallel headings.
- Promote both procedures into "Find and use your keys". Rotation is now
an ordered procedure.
- Move the enumerated secret key rules into "Security reference",
grouped under bold labels by the kind of mistake each prevents, and
leave a short danger admonition where secret keys are introduced.
- Promote the five-sentence coexistence admonition to its own section.
Admonitions are for short warnings.
- Rewrite the shared deprecation partial for timeless documentation:
present tense, no dangling "They", no "now". The partial renders on five
pages.
- Pin a stable anchor on the rotation heading and update the one inbound
link, in the rotating-anon-service-and-jwt-secrets troubleshooting
entry.
- Align link text across docs for this guide. Twenty-one links pointed
at it under fourteen labels, including two that named the wrong
destination. Rule: when a link means the guide, the text is "API keys";
when it means a specific key or section, the specific text stays. Twelve
now share "API keys", up from three.

Review with `git diff --color-moved=zebra`.

## Additional context

PR 2 of 4. Base is #49795. Includes the link-text alignment previously
opened as #49866.

## Manual testing

1. Open the API keys guide on the deploy preview.
2. Check the table of contents. It shows three groups: How API keys
work, Find and use your keys, Security reference.
3. Open the rotating-anon-service-and-jwt-secrets troubleshooting entry
and follow "Rotate a leaked or compromised key" under Further readings.
It lands on the renamed heading.
4. Open the Realtime Broadcast guide and check the "Changes to API keys"
notice. It reads in present tense there too.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Documentation**
- Updated API key guidance to explain the transition from legacy `anon`
and `service_role` keys to publishable and secret keys by the end of
2026.
- Reorganized the API keys guide with clearer key-selection guidance,
security recommendations, usage examples, and rotation steps.
- Updated troubleshooting references to point to the revised leaked-key
rotation guidance.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-01 14:40:54 -07:00
Wen Bo Xie 2681a21f5c docs: add Personal Access Tokens guide with generated permission tables (#49732)
Add a guide that compares classic and scoped personal access tokens,
explains how account roles constrain token permissions, and walks
through creating and testing a project-scoped token. Include generated
tables mapping permissions to Management API endpoints and MCP tools,
and link the guide from docs navigation and Studio token sheets.

Move the scoped-token permission catalog from Studio into shared-data.
Studio and docs generation now share permission names, categories,
descriptions, risk metadata, modes, scopes, and display order.

Generate the tables from the shared catalog, OpenAPI
x-fga-permissions, and the downloaded MCP permission map. Exclude
Workers permissions until the feature is live.

Run regeneration through the docs Makefile, verify checked-in output in
CI, and refresh it in the weekly Management API workflow. Add Dashboard
and Docs ownership plus contributor guidance so permission changes stay
synchronized.
2026-09-01 12:30:56 +00:00
Danny White 34454037d3 clean up docs admonition structure (#48669)
## What kind of change does this PR introduce?

Docs update. Resolves DEPR-634.

Stacked on #48664. The linter package and CI revision pins will be
updated after
[supa-mdx-lint#121](https://github.com/supabase-community/supa-mdx-lint/pull/121)
merges and is released.

## What is the current behavior?

Admonition body content can contain structural headings, which inherit
prose spacing and produce awkward callout layouts. Standalone Docs
actions are also rendered as ordinary body content in two places.

| Before |
| --- |
| <img width="1264" height="840" alt="70168"
src="https://github.com/user-attachments/assets/00aa7620-a6b4-452c-971f-b3ce2eda0e8c"
/> |
| _Recent violation with Markdown header in `children`. Notice the big
gap up top._ |

## What is the new behavior?

- Documents that admonition titles belong in the `title` prop,
standalone calls to action belong in `actions`, and document sections
belong outside admonitions.
- Configures heading-inside-admonition violations as errors for the
forthcoming linter release.
- Moves the UI-library and wrapper dashboard buttons into the existing
`actions` slot without changing the shared component.

Validated with the forthcoming linter across all 810 Docs sources, Docs
type-checking, targeted ESLint and Prettier checks, and desktop/mobile
rendering.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Clarified admonition guidelines for optional titles, headings, rich
content, and standalone calls to action.
* Improved guidance on when contextual links and interactive examples
belong in admonition content.

* **Style**
* Updated documentation call-to-action buttons to use the designated
actions area.

* **Quality Improvements**
* Added validation to prevent headings inside admonitions and maintain
consistent formatting.
  * Updated documentation linting to apply the latest validation rules.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-24 00:26:03 +00:00
Illia BasalaievandMiranda Limonczenko ee1eb5dbca docs: standardize quickstart guides (#48950)
## 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

## What is the new behavior?

- All 19 guides follow one step order: create project → set up database
→ create app → AI tooling → add keys → create client → query data → run
it → go to production. Added _template.mdx with structure requirements;
it is not enforced with a lint check for now - this will be a separate
PR before adding new guides.
- 4 new partials replace copy-pasted blocks (AI tooling, connection
strings, mobile env vars, going to production).
- Error handling: return a message instead of a blank page when a query
fails.
- All guides verified and tested separately - all work as described.
What was fixed: wrong env var names in the Hono sample, a Next.js page
that redirected to login, missing database permissions in Refine and
Hono, and stale file paths and APIs in SvelteKit, Refine, and TanStack.
- Astro, Expo, Python, Laravel, and Rails were live but missing from the
quickstart grid or listing page. Added, with two new icons.

## Quick links for review

Base preview:
https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs

**Quickstart discovery**: new Astro/Expo/Python/Laravel/Rails entries
and icons

- [Docs homepage
grid](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs)
<img width="1998" height="882" alt="CleanShot 2026-08-12 at 12 06 31@2x"
src="https://github.com/user-attachments/assets/942eb7e2-1e85-4b20-a6a7-c2b127d31b2b"
/>


- [Getting started
overview](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started)
<img width="856" height="878" alt="CleanShot 2026-08-12 at 12 13 30@2x"
src="https://github.com/user-attachments/assets/d48091a9-7daf-4796-a521-14116b7479c9"
/>

### New shared files:


**[apps/docs/content/guides/getting-started/quickstarts/_template.mdx](https://github.com/supabase/supabase/blob/e311542913cf8da07f322a7586339d6f5de30c61/apps/docs/content/guides/getting-started/quickstarts/_template.mdx?plain=1)**
A reference contract the other 19 quickstart guides are checked against.
Documents the required frontmatter, the canonical 10-step section order,
every guide's deviation from that order (and why), the direct-Postgres
exception (Laravel/Rails/RedwoodJS/Spring Boot), and the
discovery-surface/icon requirements for adding a new guide. No lint rule
enforces it yet; that's a follow-up PR.


**[apps/docs/content/_partials/quickstart_ai_tooling.mdx](https://github.com/supabase/supabase/blob/e311542913cf8da07f322a7586339d6f5de30c61/apps/docs/content/_partials/quickstart_ai_tooling.mdx?plain=1)**
Example:
[Next.js](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/nextjs#4-set-up-ai-tooling-optional)
→ "Set up AI tooling" section
Shared by all 19 guides: astrojs, expo-react-native, flask, flutter,
hono, ios-swiftui, kotlin, laravel, nextjs, nuxtjs, reactjs, redwoodjs,
refine, ruby-on-rails, solidjs, spring-boot, sveltekit, tanstack, vue


**[apps/docs/content/_partials/quickstart_going_to_production.mdx](https://github.com/supabase/supabase/blob/e311542913cf8da07f322a7586339d6f5de30c61/apps/docs/content/_partials/quickstart_going_to_production.mdx?plain=1)**
Example:
[Next.js](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/nextjs#going-to-production)
→ "Going to production" section
Shared by all 19 guides: same full list as above


**[apps/docs/content/_partials/quickstart_connection_string.mdx](https://github.com/supabase/supabase/blob/e311542913cf8da07f322a7586339d6f5de30c61/apps/docs/content/_partials/quickstart_connection_string.mdx?plain=1)**
Example:
[Laravel](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/laravel#5-set-up-the-postgres-connection-details)
→ connection string setup step
Shared by 3 guides: laravel, ruby-on-rails, spring-boot – the
ORM/backend frameworks that connect directly to Postgres rather than
through the Data API


**[apps/docs/content/_partials/quickstart_mobile_env_note.mdx](https://github.com/supabase/supabase/blob/e311542913cf8da07f322a7586339d6f5de30c61/apps/docs/content/_partials/quickstart_mobile_env_note.mdx?plain=1)**
Example: [iOS
SwiftUI](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/ios-swiftui#get-api-details:~:text=This%20guide%20substitutes%20your%20project%20URL%20and%20key%20directly)
→ environment variables step
Shared by 3 guides: ios-swiftui, flutter, kotlin – note Expo React
Native is mobile too but doesn't use this partial, since it has its own
`EXPO_PUBLIC_` prefix convention inline instead.

## Per guide changes

**[Astro](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/astrojs#9-query-supabase-data-from-astro)**
Typed query error in the server client sample.

**[Expo React
Native](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/expo-react-native#8-query-data-from-the-app)**
Added an `error` state alongside instruments. Also removed the broken
[`--web` verification
path](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/expo-react-native#9-start-the-app):
expo-sqlite needs Metro wasm + COEP/COOP config the guide never had
(CodeRabbit finding).


**[Flask](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/flask#7-create-the-supabase-client)**
Split "Create the Supabase client" and ["Query
data"](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/flask#8-query-data-from-the-app)
into their own steps.


**[Flutter](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/flutter#9-setup-deep-links-optional)**
Reworded the deep-links section; keeps the framework-specific [Android
`INTERNET` permission
subsection](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/flutter#android)
under "Going to production."


**[Hono](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/hono#6-declare-supabase-environment-variables)**
Split into "Install dependencies," "Declare environment variables," "Set
up anonymous sign-ins," and "Query data" as separate steps. Fixes wrong
env var names from the previous sample.

**[iOS
SwiftUI](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/ios-swiftui#8-query-data-from-the-app)**
Added an `isLoading` state so the loading overlay doesn't hang forever
on a successful empty result (CodeRabbit fix).


**[Kotlin](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/kotlin#5-install-dependencies)**
Fixed the Compose compiler plugin declaration: `apply false` was missing
from the app module (CodeRabbit finding).


**[Laravel](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/laravel#5-set-up-the-postgres-connection-details)**
Now uses the shared `quickstart_connection_string.mdx` partial for the
session-pooler/SSL guidance instead of inline copy.


**[Next.js](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/nextjs#6-allow-public-access-to-the-instruments-page)**
New step fixing the page that previously redirected to login. Its
middleware path check is also now segment-aware so it doesn't over-match
paths like `/instruments-private` (CodeRabbit finding).


**[Nuxt](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/nuxtjs#7-create-the-supabase-client)**
"Create the Supabase client" and ["Query
data"](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/nuxtjs#8-query-data-from-the-app)
split out as their own steps.


**[React](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/reactjs#7-create-the-supabase-client)**
Same
client-creation/[query-data](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/reactjs#8-query-data-from-the-app)
split as the other Vite-based guides.


**[RedwoodJS](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/redwoodjs#2-gather-database-connection-strings)**
Expanded into explicit transaction-mode/session-mode connection strings,
Prisma schema, migration, seed, and scaffold steps; fixes stale file
paths and APIs from the previous version.


**[Refine](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/refine#8-allow-writes-to-the-instruments-table)**
New step fixing the missing RLS grants that made the scaffolded
create/edit pages fail.

**[Ruby on
Rails](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/ruby-on-rails#4-set-up-the-postgres-connection-details)**
Now uses `quickstart_connection_string.mdx`; added a [reminder to save
the database
password](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/ruby-on-rails#1-create-a-supabase-project)
before it's needed for the connection string.


**[SolidJS](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/solidjs#7-create-the-supabase-client)**
Same
client-creation/[query-data](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/solidjs#8-query-data-from-the-app)
split, adapted to Solid's `resource.error`.

**[Spring
Boot](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/spring-boot#4-set-up-the-postgres-connection-details)**
Connection-string section now uses the shared partial instead of a
duplicated inline caution.


**[SvelteKit](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/sveltekit#8-query-data-from-the-app)**
Updated `load` functions (both `+page.js` and `+page.server.ts`
variants) with explicit query-error typing; fixes stale file paths and
APIs from the previous version.


**[TanStack](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/tanstack#8-query-supabase-data-from-tanstack-start)**
`fetchInstruments` now returns and renders the query error instead of
silently returning an empty list (CodeRabbit finding); fixes stale file
paths and APIs from the previous version.


**[Vue](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/vue#7-create-the-supabase-client)**
Same
client-creation/[query-data](https://docs-git-docs-standardize-framework-quickstarts-supabase.vercel.app/docs/guides/getting-started/quickstarts/vue#8-query-data-from-the-app)
split as the other Vite-based guides.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added SolidJS, RedwoodJS, Refine, Laravel, and Ruby on Rails
quickstarts.
* Added framework discovery entries for Astro, Expo React Native,
Python, Laravel, and Rails.
* Added optional AI tooling, MCP setup, connection-string, mobile
configuration, and production-readiness guidance.
* Added a Hono authentication example with anonymous sign-in, user
details, and instrument data.

* **Documentation**
* Expanded setup, environment, authentication, RLS, migration, SSL, and
deployment guidance.

* **Bug Fixes**
  * Improved sample error handling for failed data requests.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io>
2026-08-14 15:03:37 +02:00
dancer13andPamela Chia 5627d01183 docs: Update tab reference in project setup documentation (#48451)
Tab naming has changed

## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

* YES/NO

## What kind of change does this PR introduce?

* docs update

## What is the current behavior?

* Tab section referred do NOT exist anymore

## What is the new behavior?

<img width="1823" height="823" alt="image"
src="https://github.com/user-attachments/assets/7f2253ba-a251-434d-a005-10a598ae83b9"
/>



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Updated the User Management Starter quickstart navigation instructions
to use **Reference > Examples** in the Dashboard.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
2026-08-14 03:23:57 +00:00
Saxon Fletcher cb35e1f98e chore(library): update routes, redirects, and naming (#48668)
Our UI Library registry is expanding to include blocks that go beyond UI
and in some cases focus purely on back-end. This PR is a precursor to
adding more back-end related blocks. This PR includes the `ui-library ->
library` rename plus redirects and small UI copy updates. Since this is
a rename we'll need to update Vercel configuration.

## Vercel rollout

Keep the Library project Root Directory as `apps/ui-library`

1. In the **Library** Vercel project, set:

   `NEXT_PUBLIC_BASE_PATH=/library`

Apply it to Preview and Production, then redeploy the Library project.

2. In the **www** Vercel project, add:

`NEXT_PUBLIC_LIBRARY_URL=<current value of NEXT_PUBLIC_UI_LIBRARY_URL>`

Apply it to Preview and Production. Keep `NEXT_PUBLIC_UI_LIBRARY_URL`
during the migration, then redeploy the www project.

3. Deploy in this order:

   1. Library project
   2. www project

4. Validate:

   - `/library`
   - `/library/docs/nextjs/password-based-auth`
   - `/ui` redirects to `/library`
- `/ui/docs/nextjs/password-based-auth` redirects to
`/library/docs/nextjs/password-based-auth`
- `/ui/docs/ai-editors-rules/*` still uses its existing Docs redirects

No Vercel dashboard redirect rules are needed. Environment-variable
changes require a new deployment.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Supabase UI Library has been renamed to **Supabase Library** across
navigation, pages, documentation, and resource links.
* The Library is now available at `/library`, with updated descriptions
covering components, blocks, and developer tools.
* **Bug Fixes**
* Added permanent redirects from legacy `/ui` URLs to corresponding
`/library` paths.
* Updated links throughout the site and documentation to prevent broken
navigation and references.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-11 13:37:32 +10:00
Miranda LimonczenkoandClaude Sonnet 5 e7d9c88cbc fix(docs): resolve remaining heading-order issues found in Pass 2 diagnostic (#48664)
## Problem

After merging [#48456](https://github.com/supabase/supabase/pull/48456)
(shared components) and
[#48459](https://github.com/supabase/supabase/pull/48459) (per-page
content fixes), a follow-up diagnostic pass found 22 remaining
heading-order violations, logged as Pass 2 in the [triage
report](https://app.notion.com/p/supabase/Playwright-E2E-Triage-Reports-3ab5004b775f81e3bc60d058fa5a02c1).
None of them were caught by the earlier fixes because they came from
places that scan didn't check: shared partials, raw HTML heading tags
written directly in MDX, and a couple of shared/interactive components
rendering hardcoded heading levels.

## Solution

- `_partials/social_provider_setup.mdx`: `#### Local development` →
`###`, matching the `##` that always precedes it on all 14 social-login
pages.
- `guides/database/functions.mdx` and
`guides/integrations/vercel-marketplace.mdx`: replaced raw `<h4>`/`<h5>`
tags with correctly-nested real headings (`### Planets`/`### People`;
`#### Deploy a Next.js app...`) — no styling workarounds needed since
they nest naturally one level below their parent section.
- `auth/quickstarts/{nextjs,react-native,react,astrojs}.mdx`: these 4
pages had no heading at all before the embedded
`_partials/api_settings.mdx` partial's own `### Get API details`
heading, so added a `## Quickstart` heading above the walkthrough to
give it a valid parent.
- `packages/ui`'s `Accordion` component: Radix's
`AccordionPrimitive.Header` renders as an unconditional `<h3>`
regardless of where the accordion is used. That's shared across Studio,
www, and design-system, not just docs, and surfaced on docs'
vendor-agnostic telemetry page. Now rendered via `asChild` onto a plain
`div` instead, since a generic accordion has no way to know what heading
level (if any) is valid in a given page.
- SQL-to-REST translator tool (`/docs/guides/api/sql-to-rest`): its
`Assumptions`/`FAQs` section labels were hardcoded `<h3>` with no `h2`
anywhere on the page. Converted to styled spans rather than promoting to
a real `<h2>`, because real h1/h2/h3 tags in this codebase force a prose
font-size that utility classes can't override — promoting the tag would
have visibly changed its size.
- `RealtimeLimitsEstimator` (embedded on both `postgres-changes` and
`benchmarks`): its 3 section headings were hardcoded `<h4>`, but the two
embedding pages need different levels (h3 vs h4) for that spot to be
valid — no single correct heading level. Converted to styled spans, same
pattern used throughout this project for components embedded at varying
heading depths.

## Manual testing

1. Check out this branch and run `pnpm dev:docs`.
2. Visit `/docs/guides/auth/social-login/auth-github` (or any other
provider page) and confirm the "Local development" callout under "Find
your callback URL" still looks and reads the same.
3. Visit `/docs/guides/database/functions` → "Returning data sets" tab
and confirm the "Planets" / "People" table captions still look the same.
4. Visit `/docs/guides/integrations/vercel-marketplace` → "Quickstart" →
"Via template" and confirm the CTA card title still looks the same.
5. Visit `/docs/guides/auth/quickstarts/nextjs` (or
react-native/react/astrojs) and confirm a "Quickstart" heading now
appears above the walkthrough, and "Get API details" still renders
correctly further down.
6. Run `pnpm dev:design-system` and open
`/design-system/docs/components/accordion` — expand/collapse an item and
confirm it still animates and looks identical; inspect the DOM and
confirm the trigger's wrapper is a `div`, not an `h3`.
7. Visit `/docs/guides/api/sql-to-rest`, translate any query, and
confirm the "Assumptions"/"FAQs" section labels still look the same.
8. Visit `/docs/guides/realtime/postgres-changes` and
`/docs/guides/realtime/benchmarks`, scroll to the connection-limits
calculator, and confirm its section labels still look the same on both
pages.
9. (Optional, for a full re-check) Run `pnpm e2e:docs:a11y --all`
against a deployed preview of this branch — only `/docs/guides/cli`
(pre-existing 404, unrelated to headings) should fail; every other page
should pass.

Verified with a full Playwright run against a real preview deployment:
**756 passed, 1 failed** (`/docs/guides/cli`, the pre-existing unrelated
404). Zero heading-order violations remain.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
- Added clearly labeled Quickstart sections to Astro, Next.js, React
Native, and React authentication guides.
- Improved heading hierarchy and formatting across social provider
setup, database functions, and deployment documentation.
- Updated estimator and SQL-to-REST section presentation for more
consistent content structure.

- **Bug Fixes**
- Improved accordion trigger layout while preserving existing behavior,
styling, accessibility, and icon display.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 09:00:29 -07:00
Steven Eubank d8491cc0cc Remove unvalidated pricing, improve direction to help users (#48534)
## 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 fix/update

## What is the current behavior?

Shows pricing information that is not accurate/approved yet

## What is the new behavior?

helpful docs, which indicate pricing may be relevant and the future and
already directs users to help management tools

## Additional context

NA

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated Logs pricing and quota guidance to clarify that details may
change before billing enforcement begins.
* Replaced preliminary pricing tables and billing examples with notices
that finalized information will be published later.
* Expanded usage optimization guidance for log ingestion and querying,
including filtering, time ranges, polling, and database logging
recommendations.
* Directed readers to per-SKU pages for the latest pricing, quotas,
billing, and optimization information.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-03 17:02:24 +02:00
Illia Basalaiev 5c5d7bcc63 docs: fix quickstart catalog gaps (#48618)
## 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. 
Getting Started page is the most visited page in the docs at the moment:
https://supabase.com/docs/guides/getting-started.
Looking at all 19 guides, they appear to have drifted apart because
there was never a written standard for what a quickstart must contain.
Additionally, we are missing some frameworks, languages, and ORMs
quickstarts.

Phase 1 (this PR) fixes broken numbering, duplicated steps, and dead-end
pages. Later phases bring all 19 guides into line with a single
"definition of done" contract (error handling in samples, env vars
everywhere, consistent Connect-panel pattern). The end goal is that
every quickstart, regardless of framework, gives the same complete,
trustworthy path from zero to a working app.

## What is the new behavior?

1. SvelteKit and Hono cards added to the [homepage
grid](https://docs-git-docs-fix-quickstart-catalog-gaps-supabase.vercel.app/docs)
(FrameworkQuickstarts.tsx). Only added the most popular missing
frameworks to the grid.
2.
[Rails](https://docs-git-docs-fix-quickstart-catalog-gaps-supabase.vercel.app/docs/guides/getting-started/quickstarts/ruby-on-rails#2-install-agent-skills-optional):
Add missing second step (Agent Skills), add next steps at the end (point
6)
3.
[Laravel](https://docs-git-docs-fix-quickstart-catalog-gaps-supabase.vercel.app/docs/guides/getting-started/quickstarts/laravel#6-set-up-the-postgres-connection-details):
Remove duplicated instruction to create project from step 6.
4.
[Refine](https://docs-git-docs-fix-quickstart-catalog-gaps-supabase.vercel.app/docs/guides/getting-started/quickstarts/refine#5-update-supabaseclient-with-environment-variables):
In step 5, create .env file (VITE_SUPABASE_URL,
VITE_SUPABASE_PUBLISHABLE_KEY), and the client reads them via
import.meta.env, matching the Vite-based refine-supabase preset.
5.
[Hono](https://docs-git-docs-fix-quickstart-catalog-gaps-supabase.vercel.app/docs/guides/getting-started/quickstarts/hono#6-set-up-the-required-environment-variables)
TODO resolved: In step 6, add the "Open Connect panel" Button with the
generic api_settings.mdx partial call, identical to the Flask and Expo
pattern.
6. Next steps added to the 9 guides missing it at the end of the guide,
linking to the framework tutorial or Auth, UI components, data import,
and Storage (Flutter, Kotlin, Laravel, Nuxt, RedwoodJS, Refine, Ruby on
Rails, SolidJS, and Vue).
7. Remove 4 stale screenshots from RedwoodJS and Refine, along with
their now-orphaned image assets under apps/docs/public/img/. The
surrounding text already covers what they showed; they weren't
Connect-panel screens, so the Button pattern didn't apply as a
replacement.
8. Add [Supabase Agent
Skills](https://docs-git-docs-fix-quickstart-catalog-gaps-supabase.vercel.app/docs/guides/getting-started/quickstarts/nextjs#4-install-agent-skills-optional)
purpose and benefits for the user
9. Start all guides from creating Supabase project 

## Additional context

Add any other context or screenshots.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Documentation

- Added SvelteKit and Hono quickstarts with icons and documentation
links.
- Expanded Agent Skills guidance across framework quickstarts, including
current authentication, SSR, and migration patterns.
- Improved project creation, Connect panel, API configuration, and
credential setup instructions.
- Added framework-specific “Next steps” resources for Auth, database
imports, Storage, UI components, and libraries.
- Clarified PostgreSQL SSL, password encoding, connection, and
environment-variable requirements.
- Replaced outdated screenshots with clearer setup guidance and relevant
examples.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-03 13:08:10 +02:00
Danny White 3b06c6c7cc fix(docs): unify docs card hover and retire IconPanel (#48379)
## What kind of change does this PR introduce?

Bug fix / docs UI polish.

## What is the current behavior?

- Many docs `GlassPanel`s use `background={false}`, so hover only tweaks
the border and reads as having no hover state
- Compact icon+label grids still use `IconPanel`, which has a broken
`-z-10` hover fill and overlaps with the newer `IconLink` pattern
- Description card grids jump to 3-up too early on medium widths

## What is the new behavior?

**GlassPanel**
- Removes the `background` prop; cards always use the filled surface
with stronger border hover
- Tightens icon→description gap (`gap-6` → `gap-3`)
- Decorative icons/logos use empty `alt` so screen readers don’t hear
the title twice

**Icon tiles**
- Retires `IconPanel` from docs and deletes it from `ui-patterns`
- Uses `IconLink` / `IconLinkList` for compact navigation tiles (auth
providers, social login, etc.)
- Adds `IconLinkButton` for SMS provider pickers (same chrome, opens a
dialog)
- Adds focus styles, list labelling, and dialog-trigger ARIA where
needed

**Layout / content**
- Migrate-to-Supabase description cards on resources use `GlassPanel`
(not slim icon tiles)
- Grid spans use `md:… xl:…` so cards stay 2-up until ~1280px
- Fixes migrate links to `/guides/platform/migrating-to-supabase/…` and
SSR quickstarts to `creating-a-client` with framework query params
- Moves the Extensions list `key` onto the outer `Link`

| Before | After |
| --- | --- |
| <img width="1185" height="1323" alt="Resources Supabase Docs"
src="https://github.com/user-attachments/assets/1677bf65-d3a3-4202-8c70-e758f7c3bcce"
/> | <img width="1185" height="1323" alt="Resources Supabase Docs"
src="https://github.com/user-attachments/assets/51760f0f-62b6-4010-9841-de26039f37b4"
/> |

## Additional context

Homepage compact sections already use `IconLinkList` from #48317; this
PR finishes that pattern for remaining docs `IconPanel` callsites and
cleans up GlassPanel hover.

`www/customers` only drops the removed `background` prop; those cards
already use the filled surface via `logo`.

## Test plan

- [ ] `/guides/getting-started`: GlassPanels show filled surface and
clearer border hover
- [ ] `/guides/resources`: migrate cards are GlassPanels with working
`/platform/…` links; 2-up until xl
- [ ] `/guides/auth/social-login` and auth providers partial: IconLink
tiles hover/focus correctly
- [ ] `/guides/auth/phone-login`: SMS provider buttons open dialogs;
keyboard focus works
- [ ] Docs homepage: migrate / self-host IconLinkLists unchanged in
behaviour
- [ ] `/guides/auth/server-side`: Next.js / SvelteKit cards resolve on
docs preview

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Improved Layouts**
* Made “GlassPanel” card grids more responsive and consistent; refined
card and success badge spacing for a cleaner presentation.
* **Updated Documentation**
* Refreshed multiple guide and resource pages (including quickstarts and
migration content) with standardized card layouts and updated link
destinations.
* **Component Updates**
* Standardized “GlassPanel” styling (background toggle removed) and
simplified icon-based panels; added an `IconLinkButton` for action
tiles; updated authentication provider grids to use the shared tile UI.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-31 06:34:05 +10:00
Miranda Limonczenko abbf667084 fix(docs) Resolve local link paths caused that have redirects (#48453)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## Problem

The Docs E2E link checker found broken links throughout docs, starting
with `phone-login.mdx` pointing to `/docs/guides/cli/config` (404).

Old links like `/docs/guides/cli/config` still work on the live site
because `supabase.com` has redirects set up for them, but these links
break on the docs preview site, which is what the E2E check tests
against. These issues look clean on the live site, and I didn't catch
them in my first pass because I was testing production instead of the
preview.

The E2E check only tests the ~20 pages a given PR happens to touch, so
fixing the pages it flagged kept exposing more of the same problem one
page at a time as each fix pulled in a new file. To stop chasing this
incrementally, I cross-referenced every `/docs/guides/*` and
`/docs/reference/*` redirect source in `apps/www/lib/redirects.js`
against actual usage across all of `apps/docs`, and verified each
candidate against the live preview.

## Solution

Rather than updating the Docs E2E link checker, this PR resolves the
links. **Why:** we own these docs, so keeping the links clean without
redirects is keeping the house maintained. See [Broken Window
Theory](https://blog.codinghorror.com/the-broken-window-theory/).

Updated every link still using an old path to point straight at the
current page instead of relying on a redirect. This covers old links
like:

- `/docs/guides/cli/config` →
`/docs/guides/local-development/cli/config`
- `/docs/guides/cli/getting-started` →
`/docs/guides/local-development/cli/getting-started`
- `/docs/guides/cli/local-development` →
`/docs/guides/local-development/database-migrations`
- `/docs/guides/cli/managing-environments` →
`/docs/guides/deployment/managing-environments`
- `/docs/guides/cli/seeding-your-database` →
`/docs/guides/local-development/seeding-your-database`
- bare `/docs/guides/cli` → `/docs/guides/local-development`
- `/docs/guides/platform/compute-add-ons` →
`/docs/guides/platform/compute-and-disk`
- `/docs/guides/platform/shared-responsibility-model` →
`/docs/guides/deployment/shared-responsibility-model`
- `/docs/guides/database` → `/docs/guides/database/overview`
- `/docs/reference/javascript`, `/docs/reference/dart`,
`/docs/reference/kotlin`, `/docs/reference/python`,
`/docs/reference/csharp` → their `/introduction` pages (the redirect's
own destination, `/start`, turned out to be dead even on production — a
separate bug in `redirects.js` I didn't touch here)
- and about 35 more of the same pattern, listed in the commit messages

Also fixed a handful of dead heading anchors found along the way (links
that resolve to the right page but point at a `#section` that got
renamed or moved), including the original `#bigquery` anchor and a few
in `connecting-to-postgres.mdx` where content moved to its own dedicated
page.

Left alone on purpose:
- `content/guides/cli.mdx` — this page has no route in the docs app at
all (no `app/guides/cli/` directory), so it 404s even in production
before the `www` redirect ever fires. Fixing its internal link wouldn't
change that; it needs an actual routing/content decision, not a link
fix.
- A few candidates that already resolve fine as-is (`pg_partman`, bare
`/docs/reference/api`, bare `/docs/reference/cli`) — confirmed via curl,
left untouched.

## Manual testing

1. Confirmed every new link target actually exists by checking the
destination file/page and matching heading anchors.
2. Cross-referenced every `/docs/guides/*` and `/docs/reference/*`
redirect source in `apps/www/lib/redirects.js` against real usage in
`apps/docs`, and curl-verified each old path (404) and new path (200)
against the live PR preview before fixing it.
3. Ran the Docs E2E link checker locally against changed pages.
4. Spot-checked the original broken link from CI
(`/docs/guides/cli/config`) to confirm it now points to a working page.
2026-07-29 14:47:17 -07:00
Miranda Limonczenko 0d465e7b5f chore(ui): Remove 'tip' from Admonition (#48419)
Closes FE-3966

## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## Problem

- The admonition uses both 'tip' and 'note', but the visual distinction
has long-ago collapsed.
- 'Note' is used far more frequently than 'tip'
- The two are very similar and it is confusing to know which one to use
when they are visually identical

## Solution

Collapse 'tip' and 'note' into one by removing all places where there is
'tip' and updating all references to 'tip' into 'note'.

**Note:** This PR also resolves new broken links flagged by the E2E docs
checker. It may move to another PR since E2Es keep erroring.

### Specific changes

See below for an AI-generated list of changes:

- **Type system** — removed `'tip'` from `AdmonitionType`, its
`TYPE_TO_VARIANT`/`TYPE_LABEL` entries, and the test case in
[`packages/ui-patterns/src/Admonition/](packages/ui-patterns/src/Admonition/)
- **Remark plugin** —
[remarkAdmonition.ts](apps/docs/lib/mdx/plugins/remarkAdmonition.ts) now
maps mkdocs `tip` → `note`
- **Lint allowlist** — `tip` dropped from `supa-mdx-lint.config.toml`
- **Content migration** — all 109 files with `type="tip"` (across
`apps/docs`, `apps/www`, `apps/studio`) converted to `type="note"`; zero
remaining hits confirmed by repo-wide grep
- **Style guide** — `CONTRIBUTING.md` and `contributing/content.mdx`
updated to describe 4 admonition types instead of 5

### Usage before implementation

See the usage table that points toward 'note' as being dominant across
all apps:

Here's the usage table:

| Location | `note` | `tip` |
|---|---|---|
| apps/docs | ~480 | ~143 |
| apps/studio | 34 | 6 |
| apps/www (blog) | 19 | 3 |
| packages/ui-patterns (tests) | 3 | 1 (parametrized) |
| design-system / ui-library / packages/ui / packages/common | 0–1 (test
fixture only) | 0 |

## Preview links


| App | Page | Search text (Ctrl+F) | Verify |
|---|---|---|---|
| docs |
[/docs/guides/ai-tools/byo-mcp](https://docs-git-admonition-collapse-note-tip-supabase.vercel.app/docs/guides/ai-tools/byo-mcp)
| official MCP TypeScript SDK | callout's aria-label="Note" |
| docs |
[/docs/guides/ai-tools/mcp](https://docs-git-admonition-collapse-note-tip-supabase.vercel.app/docs/guides/ai-tools/mcp)
| MCP server is available at | callout's aria-label="Note" |
| docs |
[/docs/guides/ai/python-clients](https://docs-git-admonition-collapse-note-tip-supabase.vercel.app/docs/guides/ai/python-clients)
| Click Connect at the top of any project page | callout's
aria-label="Note" |
| docs |
[/docs/guides/auth/audit-logs](https://docs-git-admonition-collapse-note-tip-supabase.vercel.app/docs/guides/auth/audit-logs)
| Disabling Postgres storage reduces your database storage costs |
callout's aria-label="Note" |
| docs |
[/docs/guides/database/tables](https://docs-git-admonition-collapse-note-tip-supabase.vercel.app/docs/guides/database/tables)
| access a custom schema through the Supabase Data API | callout's
aria-label="Note" |
| docs |
[/docs/guides/troubleshooting/edge-function-404-error-response](https://docs-git-admonition-collapse-note-tip-supabase.vercel.app/docs/guides/troubleshooting/edge-function-404-error-response)
| Always configure an appropriate time frame | callout's
aria-label="Note" (was single-quoted type='tip') |
| www | [blog:
cli-v2-config-as-code](https://zone-www-dot-com-git-admonition-collapse-note-tip-supabase.vercel.app/blog/cli-v2-config-as-code)
| Detecting config drift | callout's aria-label="Note" |
| www | [blog:
cli-v2-config-as-code](https://zone-www-dot-com-git-admonition-collapse-note-tip-supabase.vercel.app/blog/cli-v2-config-as-code)
| Setting Edge Function secrets | callout's aria-label="Note" |
| www | [blog:
nosql-mongodb-compatibility-with-ferretdb-and-flydotio](https://zone-www-dot-com-git-admonition-collapse-note-tip-supabase.vercel.app/blog/nosql-mongodb-compatibility-with-ferretdb-and-flydotio)
| If your network supports IPv6 connections | callout's
aria-label="Note" |

Note: the `www` rows use the `zone-www-dot-com` preview host, not the
`docs` one you gave — since blog pages are served from the www app, not
docs.


## Manual testing

1. Open preview links for affected pages.
2. Inspect. Open console.
3. Paste the following in and see there is no 'Tip' on the page:
```
document.querySelectorAll('[role="alert"]').forEach(el => console.log(el.getAttribute('aria-label'), el.textContent.slice(0,60)))
```



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Standardized informational callouts across docs and tutorials from
**“Tip”** to **“Note”**, updating multiple examples and guidance blocks.
* Updated a few related doc references/links and conditional “Next
steps” content.
* **UI Updates**
* Switched various in-app banners and notices to the **“Note”** style
variant.
* **Bug Fixes / Improvements**
* Removed support for the retired **“Tip”** callout type and aligned
docs linting, component behavior, and aria labeling to the remaining
admonition types.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-29 09:26:50 -07:00
Alaister YoungandAlaister Young 0d2d47c26f docs: point dashboard links at the Infrastructure settings page (#48437)
Follow-up to #48370, which merged the Compute and Disk settings page
into Infrastructure and made `/settings/compute-and-disk` a permanent
redirect.

**Changed:**

- Retargeted all 17 dashboard links from
`/dashboard/project/_/settings/compute-and-disk` to
`/dashboard/project/_/settings/infrastructure` (15 files across guides,
troubleshooting entries, and the `migration_warnings` partial)
- Updated link text that named the old page ("Compute and Disk settings"
→ "Infrastructure settings", plus one stale "Database Settings" label in
the compute-and-disk guide)

Links to the `/docs/guides/platform/compute-and-disk` docs guide are
untouched — that page still exists; only dashboard deep links changed.

> [!NOTE]
> Best merged after #48370 — until then the Infrastructure page doesn't
host the compute and disk config (the old URL keeps working either way
via the redirect).

## To test

- Spot-check a few changed pages on the preview (e.g.
`/guides/platform/database-size`,
`/guides/troubleshooting/high-cpu-usage`) and confirm the dashboard
links land on the Infrastructure settings page
- Confirm the compute-and-disk guide page itself still renders and its
docs-internal links are unchanged

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
- Updated migration and troubleshooting guidance to direct users to the
**Infrastructure** settings page, replacing outdated **Compute and
Disk** links.
- Refreshed platform/database/performance links for resizing, disk
throughput/IOPS, upgrade steps, and related troubleshooting to use the
updated **Infrastructure** routes and anchors.
- Adjusted “Using the CLI” to point to the current local development
getting-started page, and refined wording in the “Hit rate” section.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-07-29 23:22:45 +08:00