859 Commits
Author SHA1 Message Date
supabase-vercel-tedd[bot]andalexisintech 9ca221ee86 docs(storage): explain which policies a public bucket needs (#54558)
## Problem

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

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

## Solution

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

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

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

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

## How to verify

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

## Checks

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

## Follow-ups

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

## Checklist

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

## Feedback for Tedd

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

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: alexisintech <98043211+alexisintech@users.noreply.github.com>
2026-12-03 16:10:00 -07:00
Pedro Rodrigues 1d269914f7 docs(mcp): document scoped OAuth access for MCP (#54156)
## Problem

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

## Solution

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

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

## Verification

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

Closes AI-1343
2026-12-02 19:31:51 +00:00
3f0edcecd1 docs: scoped oauth apps [CTRL-2123] (#53658)
## Problem

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

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

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

## Solution

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

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

Edits to existing pages:

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

Key choices:

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

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

## Preview links

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


### Self-review

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

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

## Checklist

Check all before review:

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-12-02 12:23:57 +07:00
Danny White 30a1b38da0 feat(studio): rename temporary access to database token access (#54282)
## Problem

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

## Solution

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

## Review instructions

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

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

## Problem

The Postgres Changes page is failing. 

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

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

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

## Solution

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

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

## Manual testing

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

## Problem

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

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

## What changed

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

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

## Eval on the preview

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

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

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

## Manual testing

1. Open the [Anonymous sign-ins
preview](https://docs-git-docs-anonymous-claim-refresh-supabase.vercel.app/docs/guides/auth/auth-anonymous).
2. Check the new caution and function example under **Access control**,
and the new **Refresh the session after linking** section.
3. Click the anchor links between the two sections and to the RLS guide.
2026-12-01 10:13:18 -08:00
Guilherme Souza 51fa9b8e8d docs: mark C# and Kotlin SDKs as official (#54429)
## Problem

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

## Solution

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

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

## Review category (docs PRs only)

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

## Review instructions

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

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-01 14:42:00 -03:00
b53403e1d7 docs(integrations): add Build a Supabase integration guide (#54088)
## Problem

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

## Solution

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

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

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

## Please check

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

## Preview links

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

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

---------

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

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

## Why

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

## Note

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

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

---------

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

## Problem

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

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

## Solution

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


## Manual testing

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

4. Open [Self-hosting with
Docker](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/self-hosting/docker).
The page goes from the intro straight to Before you begin, with no
Contents list.
2026-11-30 11:10:20 -08:00
Timothy LimandClaude Sonnet 5.5 2135b29416 docs(storage): add upload FAQ (#53737)
## Problem

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

## Solution

Add a Upload FAQ page

## Review instructions

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

## Checklist

Check all before review:

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

---------

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

YES

## What kind of change does this PR introduce?

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

## What is the current behavior?

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

## What is the new behavior?

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

## Additional context

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

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

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

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

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

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

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:01:58 -06:00
Tyler Hillery 79da6ab86f docs(storage): add object versioning and lifecycle policies guides (#51566)
## What

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

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

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

## Solution

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

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

Not in this PR:

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

## Review instructions

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

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

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

## Checklist

Check all before review:

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

- keyboard users hit focus problems in the option-1 docs layout because
the on this page rail clips focus rings and Firefox adds an unlabeled
tab stop on the sidebar scroll area
- skip link to the content does not render
- reference sits in a dropdown next to the logo which doesn't feel
optimal
- header breadcrumbs repeat the sidebar section with group crumbs that
never link

## Solution

- fixes the focus rings and tab stops in the sidebar, the rails and the
footers so each ring is inset and is not clipped
- changes the header breadcrumbs to show the parent and the page + links
a group crumb to its overview page when it has one
- moves reference into the sidebar section list with a back button +
removes the sections dropdown and points the logo to the docs home
- moves the knowledge base to the top of the sidebar footer and removes
the changelog link
- removes the hover backgrounds and color transitions from the sidebar
and rail rows + fades the sidebar list under the back button on scroll
- aligns the home agent prompt with the second framework column and
changes the footer separator to a square

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

1. visit
[/docs/guides/database/replication/pipelines?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-layout-v2-nits-supabase.vercel.app/docs/guides/database/replication/pipelines?docs-ia-mvp-v1=option-1)
2. reload the page and press Tab once to make sure that the first stop
is the skip link to the content
3. press Tab through the sidebar, the on this page rail and the page
footer to make sure that each ring is inset and round and is not clipped
4. click the back button in the sidebar until the section list shows,
then click `Reference` to make sure that it opens the reference list
with a back button

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-25 15:45:44 +02:00
Illia Basalaiev 1eb8684d60 docs: rewrite the project transfers guide (#53540)
## Problem

Rewrite apps/docs/content/guides/platform/project-transfer.mdx so
readers can answer their own transfer questions. Support sees a steady
stream of tickets on project transfers, and most of the questions aren’t
answered by the current page.
Preview:
https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer

## Solution

The guide is seven pages. The four task pages follow the [how-to guide
template](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/templates/how-to-guide.md),
applied the way #53650 applies it. The other three have no template yet,
so they follow the document types in `03-page-structure.md`.

<img width="275" height="239" alt="CleanShot 2026-11-20 at 14 32 51"
src="https://github.com/user-attachments/assets/bdbf7d39-df13-4418-a5c3-32a4ae1b9e3d"
/>

| Page | Type | What it holds |
| ------------------------------------------------ | --------------- |
---------------------------------------------------------------------------------------------------
|
| `project-transfer.mdx` | How-to | Transfer a project with the
Dashboard or the Management API, then verify it |
| `project-transfer/transfer-ownership.mdx` | How-to | Move a project to
another person's organization, or hand over the whole organization |
| `project-transfer/vercel-marketplace.mdx` | How-to | Move projects out
of an organization managed through the Vercel Marketplace |
| `project-transfer/pause-project.mdx` | How-to | Pause a project from
the Pro Plan or Team Plan by transferring it to a Free Plan organization
first |
| `project-transfer/requirements.mdx` | Reference | Every check a
transfer runs, what blocks it, and partner-managed projects |
| `project-transfer/what-changes.mdx` | Explainer | What stays the same,
downtime, billing, access and tokens, notifications, what the Free Plan
removes |
| `project-transfer/troubleshooting.mdx` | Troubleshooting | Each
Dashboard and API message with its cause and fix |


Corrections to existing claims (downtime, log drains, target
organization role, free project limit).

New content
- Requirements checklist, including SSO accounts, usage restrictions
between Free Plan organizations, and overdue invoices
- Dashboard steps and a Management API path
(/v2/projects/{ref}/transfers and /previews)
- What stays the same (data, ref, URL, keys, connection strings) and
when apps need an update
- Downtime per direction, billing, access tokens, timing, notifications,
and audit log
- What a move to the Free Plan removes, and how to pause a project from
the Pro Plan or above
- Handing a project or an organization to another person, lost access to
the Owner account
- Vercel Marketplace, AWS Marketplace, Stripe Projects, and a pointer
for Lovable backends
- Troubleshooting tables that quote each Dashboard message with its
cause and fix
- New updated screenshots

The six pages under `project-transfer/` are new, so they have no live
version.

| Site | Live | Preview | Search for |
| ---- |
--------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------------------------------------------------------------
| ---------------------------------- |
| Docs | [Project
Transfers](https://supabase.com/docs/guides/platform/project-transfer) |
[Transfer a
project](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer)
| `Transfer a project` |
| Docs | Not on `master` | [Project transfer
requirements](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/requirements)
| `Account requirements` |
| Docs | Not on `master` | [Changes after a project
transfer](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/what-changes)
| `What stays the same` |
| Docs | Not on `master` | [Transfer project
ownership](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/transfer-ownership)
| `Hand over the whole organization` |
| Docs | Not on `master` | [Transfer a Vercel-managed
project](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/vercel-marketplace)
| `Vercel-managed organization` |
| Docs | Not on `master` | [Pause a Pro or Team Plan
project](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/pause-project)
| `Pause the project` |
| Docs | Not on `master` | [Troubleshoot a project
transfer](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/troubleshooting)
| `Role and membership messages` |


## Review instructions

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

**Note:** The changes were made based on all support tickets related to
project transfers; all statements were cross-checked in the code and
tested on a hosted project.

1. Please check if the structure of the pages meets docs standards. 
2. Please confirm "Project transfers" is a valid title; let me know if
it should be capitalized.
3. Please confirm if the table with error messages fits into this
documentation under troubleshooting
([preview](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer?queryGroups=method&method=dashboard#troubleshooting)).
Done this way so that customers can find the full message in the search.

## 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 18:12:15 +01: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
Bruno Gale c484941fac docs: add Unity quickstart (#51898)
## Problem

#51257 added Unity to the Connect panel, but the docs have no Unity
quickstart to go with it.

## Solution

New page at `quickstarts/unity.mdx`, built from `_template.mdx`. It uses
the same setup as the Connect panel: NuGetForUnity for the install and a
`SupabaseManager` script for the client.

I also added the nav entry, the `ai-prompts.data.ts` entry, and two
notes in `_template.mdx` on where Unity differs (the key goes in the
script, IL2CPP code stripping).

Tested on Unity 6.3 with the `Supabase` NuGet package 8.11.0, in the
editor and in an IL2CPP Windows build.

Not changed: the Connect link in the shared `api_settings` partial
doesn't pass `using=unity`, so it opens the default .NET variant.

## Review instructions

1. Open the docs preview at
`/docs/guides/getting-started/quickstarts/unity`.
2. Optional: follow the guide in a new Unity 6.3 project. The Console
should print `violin`, `viola` and `cello`.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-20 14:07:00 +01:00
Andrey A. f80095cd92 docs(self-hosted): add a guide for configuring the OAuth 2.1 server (#53544) 2026-11-18 10:51:22 +01:00
Anthony Lio 51c07ef6b2 feat(docs): ai layout sidebar tree (#52972)
## Problem

- current sidebar shows only the page's product, so a reader opens the
top bar menus to reach another product
- redesign moves the global nav into the sidebar, so the sidebar needs
levels and a way back up

## Solution

- adds a sidebar that opens one level at a time: the docs sections, then
a section's products, then a product's pages
- adds a header row with a back link to the level above, and a home link
at the top level
- changes a product row to open the product overview and show its pages
at once
- adds icons to the top level sections in the current nav and in the
option-1 nav
- changes the new page tree to show a background on hover only, and text
color on the current page
- adds an overview row to the start section, which only the new layout
shows

#52971 must merge first, because the sidebar uses the `layout-v2:` css
variant

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. run `pnpm --filter docs exec vitest run
components/Navigation/NavigationMenu`, and make sure that all tests pass
2. read `DocsSidebarNav.test.tsx`, and make sure that the tests cover
the back link, the home link and the product link to its overview
3. the layout mounts the sidebar in the stack top, so check the sidebar
on the preview of that pr

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-11 16:31:32 +02:00
Anthony Lio 0daddc4551 feat(docs): agent feedback capabilities (#53115)
## Problem

- an agent that finds a wrong docs page leading to use a different
method gets no report
- mcp server and the cli can send feedback, but no page tells agents to
report docs problems

## Solution

- adds a note for ai agents at the top of each guide's markdown version,
so agents report wrong pages
- adds an agent-only instructions page with a disabled nav entry, so
agents learn how to write and send a report
- adds a "report documentation problems" section to the ai tools guide,
so users can approve, turn off or delete reports
- changes the mcp guide to say that `submit_feedback` takes
documentation feedback, so the tool list matches the new use
- adds the instructions page to `llms.txt`, so agents that start from
supabase.com find it

Linear: DEPR-698

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. open the preview
[/docs/guides/auth.md](https://docs-git-anthonylio-depr-698-explore-agent-feed-2bdb50-supabase.vercel.app/docs/guides/auth.md),
and make sure that the page starts with the "Note for AI agents"
blockquote
2. make sure that the note links to `agent-feedback.md`, tells the agent
to read it before the final reply, and asks "Send this report to
Supabase?"
3. open the preview
[/docs/guides/ai-tools/agent-feedback.md](https://docs-git-anthonylio-depr-698-explore-agent-feed-2bdb50-supabase.vercel.app/docs/guides/ai-tools/agent-feedback.md),
and make sure that the page has the five-line report template and no
agent note
4. open the preview
[/llms.txt](https://zone-www-dot-com-git-anthonylio-depr-698-explor-a825b7-supabase.vercel.app/llms.txt),
and make sure that it lists "Report documentation problems" with the
`.md` link

## 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-11 14:38:47 +02:00
Jordi Enric 5a3e1fd871 docs(logs): document unified CLI logs DEBUG-267 (#53086)
## Problem

The unified CLI logs commands need a public guide. The existing SQL
guide also says the CLI cannot query hosted ClickHouse logs, which is
only true for v2.

## Fix

Add **Logs in the CLI** to the Observability navigation and overview
cards. Cover local and remote queries, filters and time ranges,
interactive versus JSON output, exports, SQL, command options,
migration, and troubleshooting.

Include screenshots of the explorer and full record details using demo
local logs. Keep the v2 CLI reference unchanged and update links from
the existing logs and SQL guides.

Merge after the CLI version with unified logs is released. Tracks
[DEBUG-267](https://linear.app/supabase/issue/DEBUG-267) and
[DEBUG-268](https://linear.app/supabase/issue/DEBUG-268).

## How to test

Open `/docs/guides/observability/cli-logs` in the preview. Check the
section order, images, option tables, and links from Observability, Logs
in Studio, and Query logs with SQL.

Local examples were verified using the CLI PR build and retained log
fixtures. Hosted examples were checked against the implementation but
were not rerun against a live project for this docs change.

## Screenshots

Explorer showing demo local logs:

![Interactive log
explorer](https://raw.githubusercontent.com/supabase/supabase/0f47956edf/apps/docs/public/img/guides/observability/cli-logs/explorer.jpg)

Full selected record:

![Full log
details](https://raw.githubusercontent.com/supabase/supabase/0f47956edf/apps/docs/public/img/guides/observability/cli-logs/details.jpg)
2026-11-09 16:32:33 +01:00
LennyandAlexis Aguilar ab54becc60 docs(storage): move url signing keys to dedicated page (#52954)
## Problem

Details about URL signing keys are embedded in the downloads page, but
it is a broader security related topic that applies to both uploads and
downloads.

There is no signed URL guidance in the Standard Upload section

## Solution

- Move details about URL signing keys to a dedicated page under the
storage>security tab (content mostly the same)
- Replace URL signing key details in downloads page with a brief blurb
and a link (keep header in case it has been hot linked)
- Add link to URL signing key details to resumable upload > signed url
section
- Add signed URL details to standard upload page, and similarly link to
url signing key page
- Update link in URL signing key page of dashboard to point to new
dedicated URL Signing key page

## Additional context

Follow up to: https://github.com/supabase/supabase/pull/52522

---------

Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
2026-11-05 11:08:12 +08:00
5a1e59eb2e docs: add Claude as ID-JAG issuer for MCP Enterprise-Managed Auth (#52021)
## Problem

Anthropic now lets Claude issue the ID-JAG for enterprise-managed MCP
auth when a customer's identity provider can't. No Supabase code change
is needed: the platform already validates ID-JAGs against whichever
issuer URL the organization configures.

The page called the feature "enterprise-managed authentication." It
implements the MCP spec's Enterprise-Managed Authorization extension and
is built on an RFC 7523 authorization grant. Authentication stays with
the IdP. The Studio field description had the same wrong word.

## Solution

**New section, "Using Claude as the ID-JAG issuer."** Covers the
Claude-side steps (Organization settings > Connectors > Supabase >
Managed authorization > Set up, copy the Issuer URL, leave Tenant ID
empty), the Supabase-side step (same ID-JAG Issuer field), and the
connection test. Two constraints were verified against our platform
code: one issuer per SSO provider so the Claude URL replaces the IdP URL
and members need an SSO identity in Supabase. The third, that a
Claude-issued ID-JAG attests Claude-org membership rather than an IdP
session, comes from Anthropic's partner guide.

**Rename to "enterprise-managed authorization."** Page title, headings,
body, SSO guide section, nav label (title case, matching sibling
entries), and the Studio description. The slug moves to
`enterprise-mcp-authorization` with a permanent redirect from the old
path in `apps/www/lib/redirects.js`. The Studio "Learn more" link and
the two published blog posts that linked the page point at the new slug
directly.

## Checklist

Check all before review:

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

---------

Co-authored-by: Ana <30495040+ana1337x@users.noreply.github.com>
Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-11-03 12:54:58 -05:00
Miranda Limonczenko fca0f99354 docs: move the explain() guide to guides/api/query-plans (#52471)
Closes DOCS-1496

## Problem

The Debugging performance issues page is moved to the Data API as a part
of the Information Architecture plan laid out in Option 1 of the [Docs
navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

The [docs tree
tests](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests)
in supabase/evals drove the rename. Each test gives an agent a developer
goal and only the navigation labels, with no page content and no search.

- **The task:** [one
test](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests/investigate-tree-036-client-call-execution-plan)
asks how to see the plan Postgres uses for a slow supabase-js
`.from('orders').select()` call. Its answer is this page.
- **Today's label:** the page sits under Database as "Debugging
performance issues". That label names a symptom many pages share, not
the tool the page teaches.
- **The change:** round 4 of the tests split the `explain()` content
into its own topic, labeled "Query plans with explain()" and placed in
Data API, Tools, next to the other client tools. Option 1 fixed every
task its new topics targeted.
- **Why the whole page moves:** `explain()` is the only thing the page
covers, so a split would leave an empty source. The page takes the
topic's label as its title.

## Solution

- **Move, not split:** the whole page covers `explain()`, so a split
would leave an empty source. The page moves to `guides/api/query-plans`,
and the old URL redirects there. The existing
`api/rest/debugging-performance` redirect now points straight to the new
URL, so there's no chain.
- **Anchors:** the four H2s keep their anchors, so the client reference
link to `#enabling-explain` resolves through the redirect. The two H3s,
Example data and Expected response, are gone. Nothing links to them.
- **Navigation:** both entries in today's navigation point to the new
URL, with the label "Query plans with explain()". In Option 1, the Data
API, Tools entry points to the new page, and the Database entry is gone,
since it would list the page twice. This was the last Option 1 topic
that linked to a section of its source page, so the test that tracked
those topics is removed.
- **Inbound link:** Realtime reports links to the new URL.
- **Cross-links:** the page links Query Performance for finding slow
queries, Query optimization for plans of SQL you run yourself, Row Level
Security performance for slow policies, and the `explain()` client
reference. Query optimization and Row Level Security performance link
back to it.
- **Guide shape:** a value-statement opener with the reason `explain()`
is off by default, and the sample table before the query that reads it.
The SQL samples have no comments, and the `format` option has an
example. Production readers are told to set up the filter before
enabling, and the options paragraph warns that `analyze` on a write
changes data.
- **Row Level Security performance:** the caution about restricting
plans now sits above the step that enables them.
- **Sample fix:** `pgrst.db_pre_request` holds one function, so the
production step now checks for an existing one and says to call the
filter from it. The disable step clears the pre-request setting only for
readers who set the filter directly. The filter function sets
`search_path`, so the Security Advisor doesn't flag it. It matches the
`Accept` header case-insensitively anywhere in the list, because
PostgREST accepts `Application/vnd.pgrst.plan+text` and the old prefix
check let it through. The check for an existing pre-request function
reads `pg_db_role_setting`, which also shows per-database settings that
`pg_roles.rolconfig` leaves out. When both a global and a per-database
setting exist, the page says PostgREST uses the per-database one. The
function is created and set as `public.filter_plan_requests`, because
PostgREST resolves an unqualified name against the requested schema
first. After the filter, the page says the Supabase Platform sets
`cf-connecting-ip`, and that a self-hosted project needs a header its
proxy overwrites.

### Verification

`test-the-docs`, local stack, Supabase CLI v2.39.2. Each SQL fence ran
in document order. The `supabase-js` calls were checked through the HTTP
request they send, with `Accept: application/vnd.pgrst.plan`.

| Step | Result |
| --- | --- |
| Plan request before enabling | 406, as expected |
| Enable, then request a plan | 200, text plan, and JSON with `+json` |
| Sample table, no extra grant | readable by `anon` |
| Pre-request filter with `set search_path = ''`, non-matching IP | 401
`Not allowed to use application/vnd.pgrst.plan`, normal requests 200 |
| Filter, mixed-case `Application/vnd.pgrst.plan+text` | old filter 200
with a plan, new filter 401; matching IP 200 |
| Insert plan with `options=analyze` | row persists after the request;
without `analyze`, no row |
| Existing-function check with an `in database` setting |
`pg_db_role_setting` shows it, `rolconfig` doesn't |
| Disable | plan requests 406, normal requests 200 |
| `cf-connecting-ip` on a hosted project | checked in review on a test
project: Cloudflare sets it, and a request that sends its own value is
rejected at the edge with `error code: 1000` |

### Not verified

- **Deferred:** the TypeScript fences, because the sandbox runs Node
only for example apps. The plan values in the example response come from
the old page and differ slightly from a local run.
- **Old links left on the redirect:** the client reference specs
(`supabase_{dart,py,kt,swift}`), the supabase-js doc comment, and one
`www` blog post still link to the old URL.

## Manual testing

1. Open [Query plans with
explain()](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/api/query-plans).
See the enable, use, production, and disable sections.
2. Open [the old
URL](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/database/debugging-performance#enabling-explain).
See it redirect to the new page at Enabling `explain()`.
3. In the Database sidebar under Debugging, click **Query plans with
explain()**. See the new page open.
2026-11-02 10:47:06 -08:00
Miranda Limonczenko 86848fc036 docs: move the production security checklist to its own page (#52466)
Closes DOCS-1494

## Problem

The Security section of the Production checklist is split out as a part
of the Information Architecture plan laid out in Option 1 of the [Docs
navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

- **Structure:** move `## Security` to
`guides/security/production-checklist`. The production checklist keeps
the heading, and its `#security` anchor, with a one-sentence pointer.
The page is in the Security sidebar under Guides, after Production
Checklist.
- **Option 1 navigation:** the "Production security checklist" entry in
Run and manage, Security and compliance, points to the new page. The
Option 1 test no longer expects the anchor.
- **Page shape:** a value-statement opener with the situations that call
for the checklist, then the items grouped under Database, Account and
organization, Auth, and Threat review. Each group opens with a lead-in
that says what its checks protect.
- **Inbound links:** two Studio linter entries for OTP settings, the
Studio Auth providers form, and `auth/auth-email-passwordless` now point
to `production-checklist#auth`. The password length lint points to the
password security guide instead, since the checklist has no password
item. They used to land on `going-into-prod#security`, which is a
pointer now.
- **Claim fixes:**
- The replication item told readers to enable replication on sensitive
tables. It now says to enable RLS on replicated tables that hold
sensitive data.
- The Auth items named **Authentication > Providers**. The Dashboard
label is **Sign In / Providers**.
- **Terminal path:** the Auth group links the Management API endpoint
for its settings. The Database items link to guides that carry CLI or
SQL paths.
- **Review fixes:** a note that RLS doesn't filter Postgres Changes
`DELETE` events, a SQL path for publications, and the other email links
the OTP expiry controls.
- **Agent prompt:** after the opener, a copyable `AiPrompt` that has an
agent audit the project read-only and report each item as pass, fail, or
can't check. It reads Security Advisor and the tables through the
Supabase MCP server, and SSL, network restrictions, Auth settings, and
org members through Management API GET endpoints. `includeInMarkdown` is
on, so the `.md` carries the prompt as a fenced text block.
- **Cross-links:** Testing auth flows points to the checklist's Auth
group, and the Security overview and Product configuration pages link
the checklist. The custom SMTP item links the SMTP guide.

### Not verified

- **Deferred samples:** none. The page has no code samples.
- **Agent prompt:** its endpoints and fields match
`api_v1_openapi.json`, and `Owner` matches Studio's role name. No agent
has run it against a hosted project.
- **Studio:** the link changes are strings only. Studio tests and build
run on this PR because it touches `apps/studio`.

## Manual testing

1. Open [Production security
checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/security/production-checklist).
See the agent prompt below the opener and four groups of checks. Click
**Copy** and see the prompt text.
2. Open [Production
checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/deployment/going-into-prod#security).
See the Security heading with a one-sentence pointer to the new page.
3. In the Security sidebar under Guides, click **Production security
checklist**. See the new page open.
2026-11-02 09:57:08 -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
Miranda Limonczenko 7e5748ba6b docs: move team member role mapping to its own page (#52476)
Closes DOCS-1498

## Problem

The Configure user access section of Temporary access is split out as a
part of the Information Architecture plan laid out in Option 1 of the
[Docs navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

- **Structure:** move `## Configure user access` to
`guides/platform/team-database-access`. Temporary access keeps the
heading and its anchor, with a one-sentence pointer. The page is in the
Platform sidebar after Temporary Access.
- **Option 1 navigation:** the "Map team members to Postgres roles"
entry in Run and manage, Team, points to the new page. The Option 1 test
no longer expects the anchor. Today's navigation uses the same label, at
34 characters.
- **Guide shape:** a value-statement opener with a short definition of a
role mapping, Prerequisites, then steps to authorize a team member and
to restrict their access. Each list has a lead-in.
- **Sample fixes:**
- The request sent the role list as `user_roles`. The Management API
requires `roles`.
- `expires_at` was in milliseconds. It takes Unix seconds, which the
Dashboard sends.
- A new step looks up the team member's user ID through the organization
members endpoint. The old sample used a placeholder with no way to find
the value.

### Not verified

- **Samples:** the Management API calls need a hosted project, so
`test-the-docs` can't run them. I ran them by hand against a hosted
project.

## Manual testing

1. Open [Map team members to Postgres
roles](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/team-database-access).
See the prerequisites, the steps to authorize a team member, and the
restrictions.
2. Open [Temporary
access](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/temporary-access#configure-user-access).
See the Configure user access heading with a one-sentence pointer to the
new page.
3. In the Platform sidebar, click **Map team members to Postgres
roles**. See the new page open.
2026-10-30 23:54:52 +00:00
Miranda Limonczenko 340101642a docs: move preview branches on Vercel to its own page (#52473)
Closes DOCS-1497

## Problem

The Vercel section of Branching integrations is split out as a part of
the Information Architecture plan laid out in Option 1 of the [Docs
navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

Split out the old section into a new one with `/edit-the-docs` and
`/test-the-docs`.


## Manual testing

1. Open [Preview branches on
Vercel](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/integrations/vercel-preview-branches).
See the prerequisites, two steps, and the After you connect section.
2. Open [Branching
integrations](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/deployment/branching/integrations).
Under **Hosting providers**, see a one-sentence pointer to the new page,
with no Vercel heading.
3. In the Branching sidebar, click **Preview branches on Vercel**. See
the new page open.
4. In the Integrations sidebar, click **Preview branches on Vercel**,
after **Vercel Marketplace**. See the new page open with the
Integrations sidebar.
2026-10-30 11:37:17 -07:00
Anthony Lio e928d28e69 feat(ui-patterns): top nav menu (#52501)
## Problem

- kb and docs each keep their own copy of the top bar menu and its
buttons
- the kb bar has no search box, and the docs bar has one on the right

## Solution

- adds a shared top nav to `ui-patterns`, so kb and docs use one
megamenu and one set of bar buttons
- replaces the docs desktop dropdowns with the megamenu, so docs and kb
show the same menu design
- adds a heading to the first column of each docs menu, so the reader
sees which group a list belongs to
- adds the search box and a "sign up" button label to the kb bar, so it
matches docs

| state | preview |
| -------|------|
| before | <img width="1506" height="350" alt="image"
src="https://github.com/user-attachments/assets/3045d400-4ac0-41d7-a94f-acc23fa919fa"
/> |
| after | <img width="1506" height="350" alt="image"
src="https://github.com/user-attachments/assets/334e5130-611a-4eb7-a95a-c796e2bbcf80"
/> |

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. open the kb and docs preview links above in desktop
2. on kb, hover "topics" and make sure that the panel opens under the
bar
3. click the search box and make sure that the kb search dialog opens
4. on docs, open
[/docs/guides/auth](https://docs-git-antlio-feat-shared-top-nav-supabase.vercel.app/docs/guides/auth)
and make sure that the "products" label has an underline
5. open each docs menu and make sure that the first column has a heading
6. make sure that the menu button opens and closes the mobile menu in kb
and docs

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-30 08:57:23 +00:00
Miranda Limonczenko 57b659d47f docs: move slow and failing query logging to its own page (#52469)
Closes DOCS-1495

## Problem

The `log_min_duration_statement`, `auto_explain.*`, and
`log_min_error_statement` sections of Postgres log configurations are
split out as a part of the Information Architecture plan laid out in
Option 1 of the [Docs navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

- **Structure:** move `log_min_duration_statement`, `auto_explain.*`,
and `log_min_error_statement` to
`guides/observability/log-slow-queries`. Postgres log configurations
keeps each heading and its anchor, with a one-sentence pointer. The page
is in the Database sidebar after Postgres log configuration.
- **Option 1 navigation:** the "Log slow and failing queries" entry in
Run and manage points to the new page. The Option 1 test no longer
expects the anchor.

`/edit-the-docs` and `/test-the-docs` ran as well.
- **Cross-links:** the Customizing Postgres config table links this
guide from its `auto_explain.*`, `log_min_duration_statement`, and
`log_min_error_statement` rows, and the intro links Query logs with SQL
for searching the logs.

## Manual testing

1. Open [Log slow and failing
queries](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/observability/log-slow-queries).
See the slow queries, query plans, errors, and restore-defaults
sections.
2. Open [Postgres log
configurations](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config#logmindurationstatement).
See the heading with a one-sentence pointer to the new page.
3. In the Database sidebar, click **Log slow and failing queries**. See
the new page open.
2026-10-29 16:46:15 -07:00
Miranda Limonczenko e79adc4a42 docs: move leaked API key rotation to its own page (#52465)
Closes DOCS-1493

## Problem

The Rotate a leaked or compromised key section of API keys is split out
as a part of the Information Architecture plan laid out in Option 1 of
the [Docs navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

- **Structure:** move `### Rotate a leaked or compromised key` to
`guides/security/rotate-leaked-api-keys`. API keys keeps the heading and
its `#leaked-key` id, with a one-sentence pointer. The page is in the
Security sidebar under Guides, since its URL selects that sidebar.
- **Option 1 navigation:** the "Rotate a leaked API key" entry in Run
and manage, Security and compliance, points to the new page. The Option
1 test no longer expects the anchor.

Run /test-the-docs and /edit-the-docs.

## Manual testing

1. Open [Rotate a leaked or compromised API
key](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/security/rotate-leaked-api-keys).
See the create, replace, and retire sections, with Dashboard and
Management API tabs.
2. Open [API
keys](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/getting-started/api-keys#leaked-key).
See the heading with a one-sentence pointer to the new page.
3. In the Security sidebar under Guides, click **Rotate a leaked or
compromised API key**. See the new page open.
2026-10-29 21:35:44 +00:00
Miranda Limonczenko 76f3d06a8b docs: add Test Row Level Security policies with pgTAP guide (#52344)
Closes DOCS-1499

## Problem

The testing overview teaches RLS tests, in pgTAP and from application
code, in sections that have grown into their own task.


## Solution

This goes above and beyond the initial ask, which was just to move a
section into a new topic.
Because I was here anyway, I aimed to improve the experience and improve
our RLS Evals score on tests. A companion Evals PR will split out a new
Eval for the new topic, migrating the checks that were in the RLS guide.

Some fixes are also included from running our docs skills, including:

- **Structure:** move the pgTAP example and the Application-Level
testing section to
`guides/database/postgres/testing-row-level-security`. The overview
keeps both headings, each with a short pointer. The "RLS policies
testing" nav entry points to the new page, and so does "Test RLS
policies with pgTAP" in the Option 1 nav.
- **Style:** a value-statement opener, lowercase SQL, and the command
split from its output.
- **Technical fixes:** test 2 asserts the `returning` value. Test 4 uses
`is_empty`. The output is the output `supabase test db` prints.
- **Additions:** `supabase start`, the table as a migration applied with
`supabase db reset`, and two sentences on how the test isolates its data
and user. A note for readers who use an agent to write their tests,
linking to a `## Write quality tests with agents` reference section. One
sentence in the RLS guide's `### Run the test suite` links to that
section.


## Review instructions

1. Open [Test Row Level Security policies with
pgTAP](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/testing-row-level-security)
on the preview. See five steps and a passing `Tests=4` output.
2. Open [Testing
overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#database-unit-testing-with-pgtap).
See the heading with a one-sentence pointer to the new page.
3. In the sidebar under Local development, Testing, click **RLS policies
testing**. See the new page open.
4. On the [Testing
overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#application-level-testing),
click **Test the policy from your application**. See the TypeScript
suite on the new page.
5. On the new page, click **Write quality tests with agents** in the
agent note's prompt. See the five rules for agents near the bottom of
the page.
6. On [Row Level
Security](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/row-level-security#run-the-test-suite),
click **Write quality tests with agents** under Run the test suite. See
the new page open at that section.
7. Open the [Database guides with the Option 1
nav](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1).
Under Row Level Security, roles and Vault, click **Test RLS policies
with pgTAP**. See the new page open.
2026-10-29 14:23:36 -07:00
b27694b1d4 docs: add TanStack DB reference page (#51086)
## Problem

`supabase/tanstack-db` (a frontend data layer syncing TanStack DB
collections with Postgres via Supabase) has no reference documentation
on supabase.com/docs.

## Solution

Adds a new `/reference/tanstack-db` SDK reference page documenting
`supabaseCollectionOptions()`, `queryOnce()`, and live-query/mutation
usage. Since the package has no TypeDoc pipeline (unlike
`middleware`/`server`), it uses the legacy hand-written YAML spec
pattern already used for Python, Swift, C#, and Dart v1
(`apps/docs/spec/supabase_tanstack_db_v1.yml`), wired into
`navigation.references.ts` and the sidebar/breadcrumb constants the same
way as the existing `middleware` entry. Content is sourced from the
public `supabase/tanstack-db` README and source, since there's no
internal ticket for this.

## Review instructions

1. Run `pnpm run codegen:references:legacy` in `apps/docs` and confirm
`features/docs/generated/tanstack_db.v1.*.json` are generated.
2. Start local Supabase (`pnpm supabase start`) and `pnpm dev:docs`,
then visit `/docs/reference/tanstack_db` and confirm the sidebar entry
and content render.

## Checklist

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

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

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Tiago Antunes <tiagoantunespt@gmail.com>
2026-10-28 22:10:43 +01:00
Miranda Limonczenko 4b7af187a4 feat(docs): add Option 1 navigation behind the flag (#52191)
Closes DOCS-1469

## Problem

Option 1 in the navigation proposal groups the docs into Start, Build,
Develop and deploy, Run and manage, Self-Hosting, Reference, and
Resources. The `docs-ia-mvp-v1` flag from #52049 switches to an Option 1
config. That config is still a copy of today's navigation.

## Solution

- **Top nav:** reads Start, Build, Develop and deploy, Run and manage,
Self-Hosting, Reference, and Resources. Menus still open sidebars by URL
prefix, as they do today.
- **Run and manage:** pages under `/guides/platform`,
`/guides/security`, and `/guides/observability` share one sidebar with
the outline's seven groups.
- **Other sidebars:** follow the outline. REST, GraphQL and Realtime
share one sidebar, and Cron and Queues share one sidebar.
- **Seven new topics:** keep their outline labels and link to the
section on their source page, for example
`getting-started/api-keys#leaked-key`.
- **No flash of today's nav:** flags load in the browser, so the nav
stays invisible until the query param or the flags resolve, with a
1-second fallback. The links stay in the HTML for agents.
- **Tests:** each page appears once across the sidebars, and every link
goes to a page in today's navigation. With the flag off, `useNavItems`
returns today's navigation.

**Not changed:** no URLs move. Breadcrumbs still show today's trail,
which DOCS-1470 covers.

## Manual testing

1. Open [Database Backups with the flag
on](https://docs-git-docs-ia-nav-option-1-supabase.vercel.app/docs/guides/platform/backups?docs-ia-mvp-v1=option-1).
The top nav reads Start, Build, Develop and deploy, Run and manage,
Self-Hosting, Reference, and Resources. The sidebar shows the seven Run
and manage groups.
2. Open [the same page with the flag
off](https://docs-git-docs-ia-nav-option-1-supabase.vercel.app/docs/guides/platform/backups?docs-ia-mvp-v1=control).
Today's navigation shows.
3. Open [Database with the flag
on](https://docs-git-docs-ia-nav-option-1-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1).
The sidebar starts with Connect to your database.
4. In the sidebar, open Row Level Security, roles and Vault, and select
Test RLS policies with pgTAP. The testing overview opens at Database
unit testing with pgTAP.
2026-10-28 16:03:11 +00: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
Anthony Lio a9f56b3c4a feat(ui): mobile nav drawer (#52177)
## Problem

on mobile docs pages with a sidebar have two menu buttons: the burger
opens the global menu, and a second bar opens the sidebar while kb has
its own full-screen accordion menu making two apps sharing no mobile nav
code

## Solution

- adds `MobileNavDrawer`, `MobileNavTabs` and `MobileNavThemeButton` to
`packages/ui-patterns/src/MobileNav`
- makes docs and kb use the same three parts
- adds a full-width drawer in `MobileNavDrawer` under `--header-height`.
It sets `inert` while it is closed
- adds a tab row in `MobileNavTabs`, with a dropdown below `@xl` to
avoid multiple tab lines
- adds a theme button in `MobileNavThemeButton`. Each tap moves to the
next theme in `singleThemes`
- shows the group tabs, the theme button and the links of the selected
group above the sidebar

| before | after |
| -------|------|
| <img width="619" height="802" alt="image"
src="https://github.com/user-attachments/assets/09d441c6-b4f3-4768-bb29-1e1d4f23fad1"
/> | <img width="619" height="802" alt="image"
src="https://github.com/user-attachments/assets/53043083-f05f-45aa-b30e-3db6fccdd443"
/> |

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

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

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

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] 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 15:57:29 +02:00
5bdb7399e8 docs: add "The Supabase way to build" getting started guide (#50283)
## 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?

A getting-started page that sits between the architecture overview (what
the pieces are) and the existing guides (how to build one). Explains
which product features to add, and when, as you are building.

## What is the current behavior?

- Architecture lists the services. Quickstarts show one setup. Nothing
says which block to add next.

## What is the new behavior?

The page tells you which Supabase piece to add next. The links open the
guide that shows you how.

A short table at the top maps a need to a piece: store data, know who is
calling, keep rows private, handle files, run server logic, show live
updates, go to production.

Under that are the same seven pieces, in the order most apps grow. Stop
at the last one your app needs.

Every section has the same four parts:

- The situation that means you need this piece
- The idea to remember
- The mistake to avoid
- A few links to the existing guide

One warning sits in the database section. The Next.js quickstart leaves
its sample table public so the page can load. Come back here before that
table holds private data.

## Additional context

- Page: `the-supabase-way-to-build.mdx`. Tiles:
`the-supabase-way-to-build.data.ts`. Nav: second item under Build with
AI tools.
- Explainer only. It links out for the how.
- Needs an SME read. Placement is interim.

### [The Supabase way to build
(Preview)](https://docs-git-nikrichers-docs-1389-experimental-the-9beaf4-supabase.vercel.app/docs/guides/getting-started/the-supabase-way-to-build)

<img width="2222" height="15924" alt="Image2026-10-26_01-54-16_PM"
src="https://github.com/user-attachments/assets/caf02275-6c7e-4b35-be7f-659953e86bd6"
/>

### Test plan

- [ ] Preview renders, and the sidebar entry is second under Build with
AI tools.
- [ ] Each section has a Build it group of links.
- [ ] Database stage points at API keys and says the quickstart's public
read is temporary.


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

## Summary by CodeRabbit

- **New Features**
- Added the “The Supabase Way to Build” guide, covering Database, Auth,
RLS, Realtime, Storage, Edge Functions, and production hardening.
- Added curated “Build it” links for each section to help readers find
relevant guides.
- Included guidance on securing data, files, credentials, and
browser-accessible resources.

- **Documentation**
  - Updated the Getting Started navigation to link to the new guide.
- Clarified Storage policies, RLS behavior, public buckets, and secure
secret management.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io>
2026-10-26 21:17:51 +00:00
9084e8181b docs(ai): add Fireworks AI integration guide (#52193)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

**New docs page: Fireworks AI integration guide.** This adds
`guides/ai/integrations/fireworks-ai` and covers two tasks. The first
calls a Fireworks chat model from an Edge Function. The second stores
Fireworks embeddings in a pgvector table and searches them from an Edge
Function. Fireworks exposes an OpenAI-compatible API, so the page uses
the OpenAI SDK with a Fireworks base URL. That matches the existing
pattern in `guides/functions/ai-models`.

Base for this stacked PR:
https://github.com/supabase/supabase/pull/52246

## What is the current behavior?

- The docs have no Fireworks content. `git grep -i fireworks` across the
repo returns no docs, examples, or templates.

## What is the new behavior?

| File | Change |
| --- | --- |
| `apps/docs/content/guides/ai/integrations/fireworks-ai.mdx` | New
guide covering API key secrets, **Generate text**, and **Search with
embeddings** (table, RLS policy, HNSW index, `match_documents`, plus
embed and search functions) |
|
`apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts`
| Adds **Fireworks AI** under AI > Third-Party Tools, after Amazon
Bedrock |
| `apps/docs/content/guides/ai.mdx` | Adds a Fireworks AI card to the
Integrations grid |

## Additional context

- Worktree:
`~/GitHub/supabase/supabase-worktrees/docs/fireworks-ai-integration`
- Style: written against `apps/docs/style-guide/`, with a clean-context
critic pass. Placement and page shape follow
`guides/ai/integrations/amazon-bedrock.mdx`.
- Fireworks facts (base URL, `FIREWORKS_API_KEY`,
`accounts/fireworks/models/glm-5p3-flash`,
`fireworks/qwen3-embedding-8b`, the `dimensions` parameter, unnormalized
Qwen3 vectors) were checked against `docs.fireworks.ai` on 2026-10-22.

| Check | Result |
| --- | --- |
| Page SQL on `pgvector/pgvector:pg17` (extension, table, RLS policy,
HNSW index, `match_documents`) | Pass |
| `match_documents` called as `authenticated` with RLS on | Pass,
returns rows ranked by similarity |
| Prettier on all 3 files | Pass |
| Internal link targets exist | Pass (6 of 6) |
| Edge Functions against the live Fireworks API | **Not run**, no
Fireworks API key available |

### Needs review

- **Edge Function code is untested end to end.** It follows the
`withSupabase` and `jsr:@openai/openai@^6` patterns from
`guides/functions/auth` and `guides/functions/ai-models`, but nobody has
deployed it or called Fireworks with it yet.
- **Model choices are inferred.** `glm-5p3-flash` is the model in the
Fireworks quickstart. `qwen3-embedding-8b` is the serverless embedding
default their docs recommend. The 1,024 dimension is my pick: it stays
under the pgvector HNSW limit of 2,000 and is a supported Qwen3 output
size.
- **One page, two tasks.** The critic flagged
`03-page-structure.md#one-unit-per-page`. I kept a single page to match
the other integration pages in this folder. Splitting it is a reasonable
alternative.
- **Product owner sign-off.** No product spec exists for this page.
Scope (inference plus embeddings) is limited to features that have
already shipped.

### Proof: the guide renders on the preview and appears in the AI nav

**Verified:** `Vercel – docs` check (pass) · preview page returns 200 ·
Fireworks AI card links from `/docs/guides/ai` (pass)

[Fireworks AI guide (PR
preview)](https://docs-git-nikrichers-fireworks-ai-integration-supabase.vercel.app/docs/guides/ai/integrations/fireworks-ai)


![fireworks-ai-guide-after](https://moijyfpvgnmgoxvwcikq.supabase.co/storage/v1/object/public/pr-proof/supabase/supabase/pr52193/fireworks-ai-guide-after-b7b67965.png)

### Test plan

- [ ] Deploy `fireworks-chat`, `fireworks-embed`, and `fireworks-search`
with a real `FIREWORKS_API_KEY` and confirm each returns the documented
response
- [x] Confirm the page renders and appears under AI > Third-Party Tools
in the preview
- [x] Confirm the Fireworks AI card renders on `/docs/guides/ai`

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

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jordan Lee <jordan.lee@supabase.io>
2026-10-26 10:10:11 -07:00
Alexis Aguilar fe599e8c0e docs(auth): add guide for testing auth flows without email and SMS limits (#52118)
Found during my dogfooding project :)

## Problem

Testing magic-link sign-in on a hosted project can hit the built-in
email limit after two sign-ins. A quick workaround is to turn off
**Confirm email**, which is risky if it stays off at launch. The docs
that would help are spread out: Mailpit appears only in the Passwords
guide and the CLI pages, and test phone numbers appear only in the
self-hosted phone MFA guide.

Resolves
[DOCS-1460](https://linear.app/supabase/issue/DOCS-1460/document-how-to-test-auth-flows-without-hitting-email-rate-limits)
and
[FDBKIN-16338](https://linear.app/supabase/issue/FDBKIN-16338/clarify-built-in-email-rate-limits-and-custom-smtp-requirement-for).
The second is feedback from a user who hit the built-in email limit
during sign-up testing and didn't know custom SMTP was needed.

## Solution

A new guide, **Test auth flows**, explains how to test each sign-in
method without real email or SMS limits. It opens with a link to the
Supabase CLI setup that the local steps need:

- **Test email flows locally:** Mailpit captures every email from local
Auth, so the hosted email limit and address restriction don't apply. The
steps have the reader copy the Project URL, publishable key, and Mailpit
URL from `supabase status`, then swap the app's environment variables
from the hosted project to the local stack. The guide also covers
turning on email confirmation locally to test that flow.
- **Test email flows on a hosted project:** the built-in email service's
limits and the error it returns, how custom SMTP or the Send Email hook
raises them, and a caution that turning off **Confirm email** also
removes the hourly email limit, so it needs to be back on before launch.
- **Test phone sign-in with test numbers:** fixed one-time passwords for
chosen phone numbers, set in the Dashboard, `config.toml`, or the
Management API. The local steps include the SMS provider settings that
test numbers need, with placeholder credentials. The guide covers what
test numbers skip, what still applies, and the risk of leaving them in
production.

The page sits under **Auth > Configuration** in the navigation. The
magic link, passwords, email templates, phone sign-in, and rate limits
guides link to it. The Production checklist gains an item to remove test
phone numbers. The Passwords guide's Mailpit section becomes a link to
the new page and keeps its heading, so existing links to it still work.

## Verification

Local behavior was tested against a local stack with Supabase CLI
2.114.0:

- 10 magic links to 10 addresses all arrived in Mailpit. A second
request for the same address within one second returned `429
over_email_send_rate_limit`.
- A test number signed in with its fixed code, and the code worked again
without a new request. A second request within the wait returned `429
over_sms_send_rate_limit`.
- With the project SMS limit set to 1, four requests for a test number
all succeeded.
- Test numbers failed with `phone_provider_disabled` until an SMS
provider was enabled. With a provider enabled, Auth sent nothing to test
numbers.
- A key without the country code didn't match a number sent with `+1`,
and the request went to the SMS provider.
- A phone MFA challenge for a test number went to the SMS provider.

Hosted behavior was tested on a Free plan project through the Dashboard,
and the project's settings were restored afterward:

- The Phone provider form doesn't save test numbers until the SMS
provider's required fields and **Test OTPs Valid Until** are filled in.
- With test number `14155552671=123456` saved, the number signed in with
its fixed code and no SMS was sent. The same code worked a second time.
- A second request for the test number right after the first returned
`429 over_sms_send_rate_limit` with "after 4 seconds", so the hosted
wait between codes is 5 seconds.
- With the Phone provider turned off again, the test number returned
`phone_provider_disabled`.

Hosted projects require email confirmation by default. A `supabase
config push` diff against a new project showed `enable_confirmations =
true` on the remote, and the platform source sets `MAILER_AUTOCONFIRM`
to `false` by default.

On a second Free plan project, `supabase config push` with one
`[auth.sms.test_otp]` entry stored the number as `14155552671=123456`,
with **Test OTPs Valid Until** set 10 years ahead. The Management API
spec defines `sms_test_otp` and `sms_test_otp_valid_until` on `PATCH
/v1/projects/{ref}/config/auth`, with `sms_test_otp` limited to
`<digits>=<digits>` pairs.

Three magic links to a team member's address all sent within two
minutes, with no `429`. The test project had **Confirm email** turned
off. In the Auth source, `sendEmail` in `internal/api/mail.go` checks
the hourly email limit only when `Mailer.Autoconfirm` is false, that is,
when **Confirm email** is on. A comment there marks this behavior for
deprecation. With **Confirm email** on, the built-in service returns
`429` with `over_email_send_rate_limit` after two emails, which matches
the original dogfooding report. The page states the limit applies while
**Confirm email** is on, and the caution says turning it off removes the
limit.

The guide's `config.toml` snippet was run as written on a local stack,
with `placeholder` Twilio credentials. The test number got `test-otp`,
signed in with its code, and could request again after 5 seconds.

The page renders on the local docs server, the navigation entry appears,
and the section anchors that other guides link to resolve. `pnpm
build:guides-markdown` generates the page with its admonitions and tabs.

### Self-review

A `review-the-docs` pass covered the new guide and the six linked pages
against the style guide and word list.

While testing, the `config.toml` template's test OTP example turned out
to be missing a country code. That's tracked for the CLI team in
[CLI-2820](https://linear.app/supabase/issue/CLI-2820/fix-the-authsmstest-otp-example-in-configtoml-to-include-the-country).

## Follow-up

The [Phone sign-in
guide](https://supabase.com/docs/guides/auth/phone-login) says a user
can request an OTP once every 60 seconds. The hosted test showed a
5-second wait for SMS codes. This PR leaves that sentence as is.
2026-10-26 09:26:38 -07:00
Kody Jackson b123d74008 chore(kb,docs) - migrate migration pages (#52243)
## Problem

Don't want dupe entries of migration pages. Consolidation + redirects.

## Solution

Went ahead and kept the listing on the docs homepages and docs resource
pages b/c those links are good for general discoverability (for people,
bots).

Also migrated over the existing Vercel Postgres guide that got missed in
the first pass of this.

Updates relevant links elsewhere w/in the app too.

## Preview links


[KB](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/)
[KB Vercel
Postgres](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/kb/guides/migrate-from-vercel-postgres)

[Docs
homepage](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs)
[Docs resources
page](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs/guides/resources)

[www neon
migration](https://zone-www-dot-com-git-kody-devrel-764-remove-mig-a4e53a-supabase.vercel.app/solutions/switch-from-neon)
2026-10-26 08:19:26 -05: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
Anthony Lio d9faba5a2c feat(kb): design overhaul (#51565)
## Problem

knowledge base homepage was a list of topic cards with nothing to browse
by, and guide pages had no table of contents

## Solution

- adds grid drawn hero proposal
- adds featured guides and topic cards
- updates guide page layout 

| state | preview |
| -------|------|
| after | <img width="1504" height="757" alt="image"
src="https://github.com/user-attachments/assets/41492e87-f4ad-4dea-ad30-7dc3ca2882b0"
/> |

`variants`

homepage ships with a few design options behind query params, so we can
compare them on the preview before picking one, temporary and non
selected one will be removed


Param | Values | What it does
-- | -- | --
hero | grid (default), warp | grid draws the flat table grid _
warp bends the ASCII field into a funnel below the hero copy
featured | cover (default), book | cover shows the featured guides as
cards with an ascii cover _ book shows them as books
search | off (default), on | on adds a search button under the hero copy
that opens the guide search dialog. Cmd+K / Ctrl+K also opens it

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. open the kb preview at `/kb`
2. open a guide such as `/kb/guides/migrate-from-firebase-auth`

## 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-20 22:31:12 +03:00
claude[bot]andClaude 4c7014745c feat(studio): add custom OIDC option to third-party auth providers (#51612)
<!-- claude-slack-attribution -->
_Requested by **Stojan Dimitrovski** · [Slack
thread](https://supabase.slack.com/archives/C022071RB2L/p1791475016175969?thread_ts=1791475016.175969&cid=C022071RB2L)_

## Problem

The Management API accepts any OIDC issuer for third-party auth (`POST
/v1/projects/{ref}/config/auth/third-party-auth` with
`oidc_issuer_url`), but the Dashboard only offers Firebase, Clerk,
WorkOS, Auth0 and Amazon Cognito. Users with another OIDC provider have
no way to register it from the Dashboard.

Studio also hides any issuer it does not recognize: `IntegrationCard`
returns `null` for the `custom` type, so an issuer added through the API
never shows up in the list and cannot be deleted from the Dashboard.

## Solution

- Add a "Custom OIDC" item to the Add provider menu on the Third-Party
Auth page.
- New `CreateCustomOidcDialog` with a single required Issuer URL field.
It reuses `useCreateThirdPartyAuthIntegrationMutation`, so query
invalidation and the error toast behave like the other providers. The
URL is sent as typed after trimming whitespace.
- New `isValidOidcIssuerUrl` helper in `ThirdPartyAuthForm.utils.ts`:
the value must be an `https://` URL with a host, no query string, no
fragment, and no embedded credentials.
- The dialog copy is kept short: a one-line description and a single
helper line noting that signing keys are found at the issuer's
`/.well-known/openid-configuration`.
- `IntegrationCard` now renders custom issuers (badge-check icon,
"Custom OIDC" label, Issuer URL, Delete integration) instead of hiding
them. Delete uses the existing flow and permission check.
- The `custom` label changes from "Custom" to "Custom OIDC".
- New docs page
`apps/docs/content/guides/auth/third-party/custom-oidc.mdx` (served at
`/docs/guides/auth/third-party/custom-oidc`). It covers the Dashboard
flow, the Management API alternative, the `role` claim, client setup,
and RLS. It is linked from the third-party auth overview and added to
the docs sidebar. This supersedes the draft docs PR #51611.

Not included: UI for `jwks_url` and `custom_jwks`. The page and menu
keep the same feature gate (`authentication:third_party_auth`) and the
same permission checks as the other providers.

Before: the Add provider menu lists five providers. An issuer that is
not one of them is registered only through the API and does not appear
in the Dashboard.

After: the menu has a sixth item, Custom OIDC. It opens a dialog that
takes an issuer URL, rejects non-HTTPS values with an inline message,
and registers the issuer. The new provider appears in the list and can
be deleted from there.

## Review instructions

1. Open a project's Authentication > Third-Party Auth page and open Add
provider. Check for the new Custom OIDC item.
2. Enter `http://example.com` and submit. The field shows an inline
error and no request is sent.
3. Enter a valid HTTPS issuer URL that serves an OIDC discovery document
and submit. A success toast appears and the provider shows in the list
as Custom OIDC with its Issuer URL.
4. Enter an issuer the API rejects. The API error shows in the existing
error toast and the dialog stays open.
5. Delete the provider with Delete integration and confirm it disappears
from the list.
6. Read the new docs page and check that its Dashboard steps match the
UI.

Local checks:

- `vitest --run components/interfaces/Auth/ThirdPartyAuthForm`: 20 tests
pass (validation helper unit tests plus dialog component tests with
MSW).
- `tsc --noEmit` in `apps/studio`: no new errors.
- ESLint on the directory: no warnings in the new or changed code.
- Prettier is clean on the changed files, including the docs page. The
typos check is clean on the docs page and overview.

I did not run the dialog in a browser against a real project, so there
are no screenshots. The docs app was not built or rendered locally.

## Checklist

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

🤖 Generated with [Claude
Code](https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe)

https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe


---
_Generated by [Claude
Code](https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-14 19:01:08 +02:00
Guillaume Faas 1c97fe51be docs: move C# SDK from community to official support (#51487)
## Problem

Remove COMMUNITY badge from C# SDK Reference, and fix links pointing to
`supabase community`.

## 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-12 14:48:36 +08:00
Alexis AguilarandMiranda Limonczenko 8617532ae1 fix(docs): remove orphaned cli.mdx and update stale /guides/cli link (#51495)
Resolves
[DOCS-1252](https://linear.app/supabase/issue/DOCS-1252/resolve-e2e-broken-link-errors-for-the-cli-guide).

#48453 updated most `/cli` links to `/local-development`. This PR covers
the remaining `/cli` references.

## Changes

- **Delete `apps/docs/content/guides/cli.mdx`.** The file has had no
route since the October 2024 docs IA reorganization (#29364), which
moved the CLI guides under `local-development/`.
- In production, `/docs/guides/cli` redirects to
`/docs/guides/local-development` through `apps/www/lib/redirects.js`, so
the file's content never renders.
- On Vercel previews, which don't have `www` redirects, the URL returns
404. Docs E2E tests every changed guide file, so any edit to `cli.mdx`
fails the required check.
- Deleting it is safe for Docs E2E, which only scopes added or changed
files. The redirect still covers the old URL.
- **Update the connection-refused troubleshooting page** to link to
`/docs/guides/local-development` instead of the redirected
`/docs/guides/cli`.
- **Point the "Go to Local Dev / CLI" command palette entry at
`/guides/local-development`.** It routed to `/guides/cli`, which only
resolves through the `www` redirect and returns 404 on previews.
- **Remove the unused `cli` navigation menu** from
`NavigationMenu.constants.ts`. No `MenuId` resolves to it, so it was
never rendered, and its links pointed to pages that no longer exist.

Question for @czenko: 
#48453 left `cli.mdx` alone on purpose, describing it as needing a
routing or content decision. Deleting it seemed like the simplest fix,
but is there a reason to keep it? It looks like it's an artifact that
sometimes gets updated because it's being mistaken as a living document.
Also, I believe troubleshooting guides are being currently moved - this
ticket and change might coincide with the new
https://github.com/supabase/troubleshooting repository, but I didn't see
this file existing in there just yet - it's being currently being moved
in this PR
https://github.com/supabase/troubleshooting/pull/330/changes#diff-b5908c6861f711c3a38fba99aa133cdb796f26c27a35e77c674cb21f988a1046
(so I think I should do the link change in that PR and I can remove it
from this PR as to not create merge conflicts or drift). But it makes
questions come up about how broken links are handled in that repository
👀

---------

Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io>
2026-10-09 22:48:36 +00:00
Marcus Weinerandsupabase-vercel-tedd[bot] 8c10701cb5 feat(docs): Document TLS ciphers and upcoming CBC removal (#51390)
## Problem

We're soon going to remove CBC-mode ciphers from the HTTP APIs for
projects hosted on the platform.

## Solution

These docs help customers understand what our TLS offering looks like
and helps with the change.

## Review instructions

Check the copy if it's understandable and well written

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

The `/write-the-docs` skill showed these notes:

- The error strings in the troubleshooting table are typical messages,
not taken from Supabase logs or tickets.
- The proxy workaround is my suggestion, not part of the approved comms.
- The openssl command appears on both pages. The troubleshooting
renderer (MDXRemoteBase) doesn't seem to support <$Partial>, and no
troubleshooting article uses one, so I didn't share it.
- Both pages describe a future removal. After November 10 the wording
("will remove", "until the removal date") needs a follow-up edit to
present tense.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-10-09 15:45:08 +07:00
6ecf98671a docs(platform): add Platform Webhooks guide and event catalog (#51098)
## Problem

Platform Webhooks (org- and project-level event notifications over the
Management API) has no public documentation. CTRL-1017 asks for a docs
page plus a specification of the available event types, so partners can
integrate without reading the OpenAPI spec or asking engineering
directly.

Closes CTRL-1017.

## Solution

**New guide covering the Management API path, plus an event catalog.**

Adds `apps/docs/content/guides/platform/webhooks.mdx`: concepts and
scoping, creating an endpoint, Standard Webhooks signature verification
and secret rotation, test events, and delivery/retry/ordering behavior.

Adds `apps/docs/content/guides/platform/webhooks/events.mdx`: the events
reference.

- Full payload documentation for the 8 project-lifecycle event types,
and a name-and-trigger table for the 12 branch, member, and billing
types whose payload fields aren't documented.
- Documents `*` for subscribing to every event.
- Access framing states the criterion: available to organizations on an
early access allowlist, with the `403` / `access_disabled` response for
everyone else.
- Nav entry under Platform > Project & Account Management, after
Personal Access Tokens, gated by `fullPlatformEnabled`.

**The page deliberately omits the dashboard UI.** See the first row of
the table below.

## Needs review before merge

| Item | Detail |
|
--------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| **The Studio webhooks UI is not wired to the API, so this page
documents the Management API only** | `PlatformWebhooksPage.tsx:29`
imports `PLATFORM_WEBHOOKS_MOCK_DATA`; `PlatformWebhooks.store.ts` has
no async or network code and hardcodes `createdBy:
'mock-user@supabase.io'`; nothing in `apps/studio` references
`webhooks/endpoints` or `webhooks/deliveries`, even though
`api-types/types/api-v2.d.ts` carries those paths 24 times. #43276
(DEPR-340) described it as "UI-only (with mock data)", and the
`DEPR-340-backend-integration-tracker.md` it pointed to is no longer in
the tree. A dashboard section can be added once the UI calls the API. |
| Possible reference slug collision | Project- and org-scoped operations
share identical `summary` values (both "Create endpoint", both "List
endpoints"). The page links to the reference introduction and names the
**Project webhooks** / **Organization webhooks** tags rather than
deep-linking a generated page. |

## Preview links

**Verified:** the new page returns 200 on the preview; the same path
returns 404 on production, confirming net-new content; the nav entry
renders on the preview build.

### Proof: new page renders on the PR preview

[Open the new page on
preview](https://docs-git-nikrichers-ctrl-1017-set-up-public-doc-fa3960-supabase.vercel.app/docs/guides/platform/webhooks)

<img width="2295" height="8039" alt="Screenshot 2026-10-05 at 11-47-06
Platform Webhooks Supabase Docs"
src="https://github.com/user-attachments/assets/7b1440d3-207d-4828-8593-77140bdcd73f"
/>

<img width="2295" height="12000" alt="Screenshot 2026-10-05 at 11-48-49
Platform Webhook Events Supabase Docs"
src="https://github.com/user-attachments/assets/2808a88e-558e-4f73-a12a-01382cd3f6a2"
/>


## Review instructions

1. Open the [PR
preview](https://docs-git-nikrichers-ctrl-1017-set-up-public-doc-fa3960-supabase.vercel.app/docs/guides/platform/webhooks)
and confirm the page renders as shown.
2. Confirm **Platform Webhooks** appears under **Platform > Project &
Account Management** in the sidebar, after **Personal Access Tokens**.
3. Confirm the five internal-guide values in the second row of the
needs-review table.
4. Decide with the Control Plane team whether the Studio UI ships wired
to the API, which determines when a dashboard section gets added: Studio
UI is slated for Q4, so it will not be shipped together.

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


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

* **Documentation**
* Added a Platform Webhooks guide covering endpoint setup, event
delivery, signature verification, test events, retries, retention,
idempotency, ordering, and listener best practices.
* Documented project and organization event types, payload schemas,
event scopes, and versioning, plus access restrictions for organizations
outside the allowlist.
* **Navigation**
* Added Platform Webhooks links, including Overview and Events, to the
platform navigation when the full platform is enabled.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Paweł Gulbinowicz <pawel.gulbinowicz@supabase.io>
Co-authored-by: Paweł Gulbinowicz <zamotany@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-10-06 14:30:16 +02:00
Miranda Limonczenko 8b148f93c1 docs(database): regroup the database functions guide and split out debugging (#50821)
Part 2 of 4 in stack #50823. This PR carries **structure only**: moves,
regrouping, and the connective text the new shape needs. Reworded prose
already landed in #50820.

## Problem

This PR is running a structure edit.

A reader arrives from search and has to find one thing. The guide gave
them eight top-level headings, no grouping, and no opening outline. The
style guide caps a group at 5 ± 1.

Four of those headings are the action path: Getting started, Basic
functions, Returning data sets, and Passing parameters. Nothing marked
them as one sequence.

`Suggestions` held four unrelated things: an Edge Functions comparison,
two security topics, and a three-part debugging reference. The heading
names nothing the reader is doing.

Debugging was the largest thing on the page. It sat at H3 with three H4
children, and it shared only the word "function" with the rest of the
guide.

## Solution

- **Groups the four procedures** under `Create a database function`, so
the action path is one unbroken sequence.
- **Moves the Edge Functions comparison ahead of the procedures.** A
reader choosing between the two needs it before the steps, not after
them.
- **Groups the two security sections** under `Secure a database
function`.
- **Splits debugging onto its own page**,
`guides/database/debugging-functions`. It is registered in the Database
sidebar and cross-referenced from the guide.
- **Folds `Deep dive` into `Resources`.** Two trailing headings did one
job.
- **Adds an opening outline** linking each group and saying when to use
it.
- **Renames the frontmatter title** to sentence case, `Database
functions`.

## Manual testing

1. Open the [guide on the deploy
preview](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/functions).
Five top-level headings, with the opening outline linking each group.
2. Open the [new debugging
page](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/debugging-functions).
It appears in the Database sidebar under Managing database functions.
3. Follow a repointed link. Open [Postgres log
config](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config)
and click Database Function Logging. It lands on the new page at General
logging.
4. Run `pnpm build:guides-markdown` from `apps/docs`. Both pages appear
under `public/markdown/guides/database/`. Discard the `manifest.json`
change.


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

* **Documentation**
* Added a guide to debugging Postgres database functions, with examples
for logging, error handling, and inspecting query results.
* Added the guide to Database navigation and updated related resources
to link to it.
* Reorganized the database functions guide to clarify function creation,
security, and privileges.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

## Preview links

| Site | Live | Preview | Search for |
| --- | --- | --- | --- |
| Docs |
[/docs/guides/database/functions](https://supabase.com/docs/guides/database/functions)
|
[/docs/guides/database/functions](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/functions)
| `Secure a database function` |
| Docs | New page, 404 in production |
[/docs/guides/database/debugging-functions](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/debugging-functions)
| `Debugging database functions` |
| Docs |
[/docs/guides/database/postgres/postgres-log-config](https://supabase.com/docs/guides/database/postgres/postgres-log-config)
|
[/docs/guides/database/postgres/postgres-log-config](https://docs-git-docs-functions-structure-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config)
| `Database Function Logging` |

## Review instructions

This PR moves content. The risk is a broken link, not bad prose.

1. Open the preview of the guide. Count the top-level headings in the
right-hand outline. There are five, down from eight.
2. Read the four bullets at the top of the page. Each links to a group,
and each says when to use it. Click all four and confirm each lands on
its section.
3. Open the new debugging page from the second row. Confirm it appears
in the left sidebar under **Managing database functions**.
4. **Check the three locked anchors.** Append each to the preview guide
URL and confirm the page jumps: `#quick-demo`,
`#security-definer-vs-invoker`. Then append `#general-logging` to the
**debugging page** URL. Four other pages link to these.
5. Open the Postgres log config preview from the third row. Find
**Database Function Logging** in the Resources list and click it. It
lands on the new debugging page, not on a dead anchor.
6. Compare the prose against the live page. **No sentence should have
changed** beyond the new opening outline and the cross-reference to the
debugging page.

**If you only have two minutes:** do steps 4 and 5. A moved section that
leaves a dead anchor is the failure this PR could cause.

**A note on running SQL from this page.** Don't hand-paste from the
rendered page. Blocks are split across tabs, and the Data tab in
Returning data sets holds markdown tables that look pasteable but are
not SQL. Use the `.md` export of the page, which flattens every tab in
page order. #50822 has a copy-paste command for this.
2026-10-05 15:18:00 -07:00