476 Commits
Author SHA1 Message Date
cebd7a5eba docs(ref): add Kotlin v4 alpha reference (#54384)
## This PR

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

## Why

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

## Note

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

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

---------

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

YES

## What kind of change does this PR introduce?

Docs update

**Authentication and Authorization Enhancements:**

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

**Query and Data Filtering Improvements:**

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

**Realtime and System Events:**

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

---------

Co-authored-by: Safa Orhan <safaorhan@users.noreply.github.com>
2026-12-01 13:37:57 +03:00
supabase-cli-releaser[bot]andgithub-actions[bot] 6062d5f44c chore: update cli reference doc (#53957)
Updates the CLI reference from the supabase/cli release workflow.

The command spec and sidebar are generated from the same CLI command
tree.
For changes, edit the command tree or the content under `apps/cli/docs/`
in supabase/cli.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-26 10:18:56 +00: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
Alaister YoungandAlaister Young fcbdda8107 chore: migrate formatter from Prettier to oxfmt (#53835)
Migrate code formatting across the monorepo from Prettier to `oxfmt`
(`0.79.0`, pinned) for much faster formatting checks locally and in CI
while keeping code churn minimal (78 files total, 0.7% of the repo).

Studio's `@ianvs/prettier-plugin-sort-imports` ordering
(`<BUILTIN_MODULES>`, `<THIRD_PARTY_MODULES>`, blank line, then `@/` and
relative imports) is preserved via `oxfmt`'s native `sortImports`
override for `apps/studio/**/*.{js,jsx,ts,tsx}`.

### Performance (before vs after, uncached)

| Benchmark | Prettier (`3.8.x`) | oxfmt (`0.79.0`) | Speedup |
| --- | ---: | ---: | ---: |
| CI formatting step (`blacksmith-4vcpu-ubuntu-2404`, full repo) | `73s`
| **`7s`** | **~10×** |
| Local `apps/studio` JS/TS (`5,157` files) | `17.74s` | **`0.36s`** |
**~49×** |
| Local full monorepo (`11,131` files) | — | **`2.39s`** | — |

**Added:**

- `.oxfmtrc.jsonc` at repo root with Prettier-matching options,
`sortPackageJson: false`, the Studio `sortImports` override, and ignore
patterns migrated from `.prettierignore`
- `oxfmt` (`0.79.0` exact pin) in `pnpm-workspace.yaml` catalog and
workspace `devDependencies` / `dependencies`
- Shared `.agents/scripts/format_and_lint.sh` hook script and
`.agents/hooks.json` (used by both Claude Code and Antigravity)

**Changed:**

- Replaced `test:prettier` with `format:check` and switched `format` in
root `package.json` to `oxfmt`
- Updated `packages/api-types` (`codegen`,
`verify-production-types.mjs`), `apps/design-system` (`build:registry`),
`apps/docs` (`CodeSample.ts`, `generate-sitemap.ts`, `next.config.mjs`,
`spec/Makefile`), `apps/www` (`generate-sitemap.mjs`), and
`packages/build-icons` (`generateIconFiles.mjs`) from Prettier to
`oxfmt`
- Updated `.github/workflows/prettier.yml` (keeping the `format` job ID
intact), `.github/workflows/autofix_linters.yml`,
`.claude/settings.json`, `AGENTS.md`, `CONTRIBUTING.md`, and
`.github/copilot-instructions.md`
- Applied one-time `oxfmt` formatting pass in a separate commit (78
files: 30 `i18n/README.*.md` trailing spaces, 19 Studio files, 17 other
TS/TSX/generated types, 8 MD/MDX, 3 `package.json`, 2 example CSS files)

**Removed:**

- `prettier`, `@ianvs/prettier-plugin-sort-imports`, and
`prettier-plugin-sql-cst` from `devDependencies` (note: `.sql` files
were not part of the CI formatting glob; `eslint-config-prettier` is
kept for ESLint)
- `prettier.config.mjs`, `.prettierignore`, and
`.claude/scripts/format_and_lint.sh`

## To test

- Run `pnpm run format:check` and confirm it passes cleanly across all
matched files
- Run `pnpm --filter api-types test`, `pnpm --filter docs exec vitest
run features/directives/CodeSample.test.ts`, and `pnpm --filter www exec
vitest run generate-sitemap.test.ts`
- Edit an `apps/studio` file with out-of-order imports and run `pnpm run
format` to confirm builtin/third-party vs `@/`/relative grouping matches
prior behavior
- Check that the `Check Code Formatting` CI workflow passes on this PR

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-24 12:51:31 +08:00
supabase-cli-releaser[bot]andgithub-actions[bot] 20d24cc793 chore: update cli reference doc (#53843)
Updates the CLI reference from the supabase/cli release workflow.

Generated by `scripts/generate-docs-spec.ts` in supabase/cli — edit the
command tree or the content under `apps/cli/docs/` there rather than
this
file.

Generate `apps/docs/spec/common-cli-sections.json` content with `pnpm
docs:sidebar`
from `apps/cli` in supabase/cli and copy it here; missing entries
silently drop pages.
Sidebar fixes can be committed directly onto this branch; later releases
add commits on top instead of rewriting it.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-23 09:14:52 -07:00
Stojan DimitrovskiandClaude Sonnet 5.5 ca8ee0b93e docs(auth): document dedicated scope for SAML providers (#53859)
## What

Documents the SAML \`dedicated_scope\` option added in
[supabase/auth#2893](https://github.com/supabase/auth/pull/2893) and
exposed in the CLI in
[supabase/cli#7665](https://github.com/supabase/cli/pull/7665).

Some identity providers, notably Microsoft Entra, don't allow the same
entity ID in more than one application, so a project could connect only
one such app. A provider with a dedicated scope gets its own entity ID,
metadata URL, and ACS URL scoped to its provider ID.

## Changes

- `auth-sso-saml.mdx`: new "Use a dedicated scope for a connection"
section with the URL comparison, the `--dedicated-scope` flag, which
commands print the dedicated URLs, and a setup procedure for identity
providers (such as Okta) that need the URLs when the app is created. The
shared-URL table now links to it.
- `cli_v1_commands.yaml`: adds `--dedicated-scope` to `supabase sso
add`.

## Needs review

- The Entra-specific flow isn't verified. The procedure follows the Okta
workflow generically; it's unclear whether Entra rejects a second app
created with the shared entity ID.
- "Remove and add the connection again" to change scope is inferred,
because `sso update` doesn't accept the flag.
- No minimum CLI or Auth version is stated.
- The generated Management API reference isn't updated, since the
published spec doesn't document `dedicated_scope` yet.
- The self-hosted SAML page isn't checked.
- Not run: docs build, link and anchor checks, `test-the-docs`.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 14:10:06 +00:00
Guillaume Faas 6ed17bf700 docs(csharp): update SDK reference with latest changes (#53720)
Updates the .NET/C# SDK reference with latest changes
2026-11-23 06:42:47 +01:00
Mike Donnalley 1773f3a222 docs: catch up the CLI reference sidebar (#53749)
Publish the generated sidebar for the CLI reference. The published
command spec already matches stable CLI v3.2.0, so this PR leaves the
YAML unchanged.

The sidebar exposes five additional command pages and lists commands
alphabetically within each category, with no nested command groups. The
old `role-connections` URL permanently redirects to `role-stats`, and
the inspect guide links to the new URL.

[CLI-3176](https://linear.app/supabase/issue/CLI-3176)
2026-11-20 10:46:56 -07: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
Kody JacksonandClaude Sonnet 5.5 671c94e868 chore(docs,kb) - Update 301 destinations to final resolution + fix some 404s (#53553)
## Context

Lots of links that initially go to 301's within docs / kb. Updates these
to their resolved target.

Ask your Claude Code to review the new destinations programmatically.

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 15:10:08 +00:00
edb2937b44 feat: update mgmt api docs (#53136)
This PR updates Management API docs automatically.

This regenerates:

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

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

Co-authored-by: phamhieu <689843+phamhieu@users.noreply.github.com>
Co-authored-by: Ali Waseem <waseema393@gmail.com>
2026-11-18 14:50:58 +00:00
supabase-cli-releaser[bot]andgithub-actions[bot] 7f4c69f149 chore: update cli reference doc (#53463)
Updates the CLI reference from the supabase/cli release workflow.

Generated by `scripts/generate-docs-spec.ts` in supabase/cli — edit the
command tree or the content under `apps/cli/docs/` there rather than
this
file.

New commands also need an entry in
`apps/docs/spec/common-cli-sections.json` —
without one a command's page is silently dropped from the docs site.
Sections fixes can be committed directly onto this branch — later
releases
add commits on top instead of rewriting it.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-18 15:21:17 +02:00
Alexis Aguilar d9f2eb48de docs(cli): correct secure_password_change and add require_current_password (#53249)
## Problem

The CLI config reference describes `auth.email.secure_password_change`
as a setting that requires the user's current password. Auth maps it to
`GOTRUE_SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION`, which asks a
user to reauthenticate when their session is more than 24 hours old.
Requiring the current password is a separate setting.

The CLI added a key for that setting,
`auth.email.require_current_password`, in supabase/cli#7458, and the
config reference doesn't list it.

Resolves [FDBKIN-46120](https://linear.app/supabase/issue/FDBKIN-46120)
and [FDBKIN-46121](https://linear.app/supabase/issue/FDBKIN-46121), from
supabase/supabase#52546 and supabase/supabase#52547.
[CLI-1921](https://linear.app/supabase/issue/CLI-1921) tracks the CLI
change.

## Solution

- `auth.email.secure_password_change` describes reauthentication: the
24-hour session window and the nonce that `reauthenticate()` sends. It
points to `require_current_password` for the other behavior.
- `auth.email.require_current_password` is a new entry. A user sends
their current password as `current_password`, and a password recovery
flow skips the check.
- Both entries link to their section of the password security guide, in
place of the generic Auth server reference.

The behavior comes from `internal/api/user.go` in supabase/auth:
reauthentication applies when `session.CreatedAt` is more than 24 hours
old, and the current-password check is skipped when
`session.IsRecovery()`.

## Preview links

| Site | Live | Preview | Search for |
| -- | -- | -- | -- |
| Docs |
[/docs/guides/local-development/cli/config](https://supabase.com/docs/guides/local-development/cli/config#auth.email.secure_password_change)
|
[/docs/guides/local-development/cli/config](https://docs-git-alexisa-fdbkin-46120-supabase.vercel.app/docs/guides/local-development/cli/config#auth.email.require_current_password)
| `require_current_password` |
2026-11-17 19:44:33 +00:00
Gilles Lepretreandanthony lio 9d2455a86e docs: remove raw admonition tags from CLI config reference (#53339)
Fixes #53338

## Problem

The CLI config reference displays raw `<Admonition type="note">` and
`</Admonition>` tags in the description of `local_smtp.enabled`.

The page uses `ReactMarkdown`, which does not interpret MDX components.

## Solution

Remove the Admonition tags from `apps/docs/spec/cli_v1_config.yaml`,
keeping the explanatory text as a regular paragraph.

## Review instructions

1. Open `/docs/guides/local-development/cli/config#local_smtp.enabled`
in the preview.
2. Verify that no Admonition tags appear in the description.
3. Verify that the note about migrating from `[inbucket]` to
`[local_smtp]` is still present.

## Validation

- YAML parsing and Prettier checks passed.
- Verified the description renders without raw tags using ReactMarkdown.
- Full docs build could not run locally because workspace dependencies
  were not installed (`turbo` not found).

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

---------

Co-authored-by: anthony lio <lionnet.ant@gmail.com>
2026-11-12 22:20:37 +02:00
Ivan VasilovandClaude Opus 5.5 11a71d795a chore(docs): replace pnpm lifecycle hooks with turbo task dependencies (#52556)
## Problem

`apps/docs` ordered its build, dev and codegen steps with pnpm
`pre`/`post` hooks and `&&` chains. Turbo couldn't see those steps, so
it couldn't cache or parallelize them, and running the build through
turbo ran the codegen twice. Part of
[FE-4948](https://linear.app/supabase/issue/FE-4948/migrate-the-pnpm-scripts-to-use-turbo).

## Solution

The ordering now lives in `apps/docs/turbo.jsonc` as `dependsOn`, and
every pre/post hook is gone. The new `maybe-turbo` workspace bin runs a
script through `turbo run` unless it's already inside turbo, so `pnpm
build`, `pnpm dev`, `pnpm codegen:references` and the other entry points
keep running their prerequisites.

Turbo is bumped to 2.11.10 for its `jit` input mode. Tasks downstream of
the uncached remote fetches use it to hash the gitignored files those
fetches write after they finish, so a cache hit can't restore output
built from older content. Strict-mode env vars are declared.

Other changes:
- The R2 upload moves from `postbuild` to the `vercel.json` build
command, so it still runs when the build is a cache hit.
- `codegen:references:new:ensure` re-downloads when any JavaScript
TypeDoc dump is missing or empty.
- The guides manifest is now sorted, so its output is deterministic.
- A new `turbo-scripts` agent skill (listed in `AGENTS.md`) documents
these conventions for every app. Its audit script, `node
.agents/skills/turbo-scripts/scripts/audit.mjs apps/<name>`, flags
scripts that need `maybe-turbo`, leftover `pre`/`post` hooks, script
chains, and wrapped scripts without a turbo task.

## Review instructions

1. Read `packages/maybe-turbo/README.md`, `apps/docs/turbo.jsonc` and
`.agents/skills/turbo-scripts/SKILL.md`.
2. From `apps/docs`, set `GH_TOKEN=$(gh auth token)` for the federated
fetch and run `pnpm run build:markdown` a few times. Once warm, every
task except `build:federated-content` and
`codegen:references:new:ensure` should hit the cache.
3. Run `pnpm build` from `apps/docs` and check that the docs Vercel
preview deploys and renders normally.

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

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-09 16:33:28 +01:00
3ad7cccbf5 chore: update cli reference doc (#49619)
Updates the CLI reference from the supabase/cli release workflow.

Generated by `scripts/generate-docs-spec.ts` in supabase/cli — edit the
command tree or the content under `apps/cli/docs/` there rather than
this
file.

New commands also need an entry in
`apps/docs/spec/common-cli-sections.json` —
without one a command's page is silently dropped from the docs site.
Sections fixes can be committed directly onto this branch — later
releases
add commits on top instead of rewriting it.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Goux <hi@jgoux.dev>
Co-authored-by: Ali Waseem <waseema393@gmail.com>
2026-11-09 14:52:25 +01:00
claude[bot]andClaude 032f0d0710 fix: broken links from the Web 404 Review, week of 2026-11-02 (#53144)
<!-- claude-slack-attribution -->
_Requested via [Slack
thread](https://supabase.slack.com/archives/C076KTY11DF/p1794189210976169?thread_ts=1794189210.976169&cid=C076KTY11DF)_

## Problem

The Web 404 Review for the week of 2026-11-02 flagged these paths as
returning 404:

- `/docs/guides/local-development/cli/customizing-email-templates`: the
guide moved out of `cli/` and the old path has no redirect.
- `/docs/swift/javascript/auth-mfa-enroll`: the Swift v1 and v2
`mfa.challengeAndVerify()` notes link to this malformed path.
- `/docs/guides/database/triggers`: the guide moved to
`/docs/guides/database/postgres/triggers` and the old path has no
redirect.
- `/docs/guides/local-development/cli/managing-config`: the guide moved
out of `cli/`. Its sibling paths (`cli/managing-environments`,
`cli/migrations`, `cli/seeding-your-database`) already redirect, this
one was missed.

## Solution

One commit per fix, so any fix can be dropped by reverting its commit:

- `/docs/guides/local-development/cli/customizing-email-templates`:
permanent redirect to
`/docs/guides/local-development/customizing-email-templates` in
`apps/docs/lib/redirects/static-redirects.json`.
- `/docs/swift/javascript/auth-mfa-enroll`: link changed to
`/docs/reference/swift/auth-mfa-enroll` in
`apps/docs/spec/supabase_swift_v1.yml` and
`apps/docs/spec/supabase_swift_v2.yml`, matching the other languages and
the sibling `mfa.challenge()` note.
- `/docs/guides/database/triggers`: permanent redirect to
`/docs/guides/database/postgres/triggers` in `static-redirects.json`.
- `/docs/guides/local-development/cli/managing-config`: permanent
redirect to `/docs/guides/local-development/managing-config` in
`static-redirects.json`, next to its siblings.

All redirect targets exist in `apps/docs/content/guides`. `node
apps/docs/scripts/generate-static-redirects-md-variants.mjs` runs clean
with the new entries.

## Review instructions

Open each path in the To test list on the docs preview and check the
result.

## To test

- [x] Open
`/docs/guides/local-development/cli/customizing-email-templates`:
redirects to
`/docs/guides/local-development/customizing-email-templates`. 308,
target returns 200.
- [x] Open `/docs/reference/swift/auth-mfa-challengeandverify` and
`/docs/reference/swift/v1/auth-mfa-challengeandverify`: the "enrolled
factor" link goes to `/docs/reference/swift/auth-mfa-enroll`. Both
pages, target returns 200, no `/docs/swift/javascript/` hrefs remain.
The v1 page linking to the latest enroll page matches the other v1 specs
(Dart, Kotlin) and the sibling `challenge()` note.
- [x] Open `/docs/guides/database/triggers`: redirects to
`/docs/guides/database/postgres/triggers`. 308, target returns 200.
- [x] Open `/docs/guides/local-development/cli/managing-config`:
redirects to `/docs/guides/local-development/managing-config`. 308,
target returns 200.
- [x] Sibling redirect
`/docs/guides/local-development/cli/managing-environments` still goes to
`/docs/guides/deployment/managing-environments` (200).
- [x] Markdown variant `/docs/guides/database/triggers.md` redirects to
`/docs/guides/database/postgres/triggers.md` (308, 200).
- [x] The three redirect targets load directly with no further redirect.

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

## Linear

- fixes GROWTH-1459

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-09 16:00:32 +09:00
Colum Ferry d97a410577 docs: add a Supabase CLI v2 to v3 migration guide (#52147)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Docs update

## What is the current behavior?

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

## What is the new behavior?

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

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

## Additional context

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

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

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

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

Tracks CLI-2747

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

This regenerates:

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

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

Co-authored-by: phamhieu <689843+phamhieu@users.noreply.github.com>
2026-11-02 14:16:44 +02:00
2b85c37aea fix: broken links from the Web 404 Review, week of 2026-10-26 (#52617)
<!-- claude-slack-attribution -->
_Requested via [Slack
thread](https://supabase.slack.com/archives/C076KTY11DF/p1793584471038389?thread_ts=1793584471.038389&cid=C076KTY11DF)_

## Problem

The weekly Web 404 Review found broken URLs that are emitted by links in
this repo, or that a redirect can send to a live page. I fixed the ones
I confirmed in the code. Each fix is its own commit, so any one of them
can be dropped by reverting that commit.

## Solution

| Path that 404s | App | Change |
| --- | --- | --- |
| `/blog/sitemap.xml` | www | Add a permanent redirect to
`/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the existing
`/blog/rss.xml` redirect. Old supabase.io links still point at this
legacy per-section sitemap. |
| `/partners/sitemap.xml` | www | Add a permanent redirect to
`/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the other
`/partners/*` redirects. Same legacy supabase.io source. |
| `/design-system/og.jpg` | design-system |
`apps/design-system/config/site.ts`: `ogImage` pointed at a file that
was never added to the app. Point it at
`https://supabase.com/docs/img/supabase-og-image.png`, the shared OG
image that docs, learn, and kb already use. That image is 1200x600, so
`og:image:height` in
`apps/design-system/app/(app)/docs/[[...slug]]/page.tsx` changes from
630 to 600 to match. |
| `/docs/reference/auth/config` | docs |
`apps/docs/spec/supabase_kt_v1.yml`, `supabase_kt_v2.yml`,
`supabase_kt_v3.yml`, `supabase_swift_v1.yml`, `supabase_swift_v2.yml`:
the refresh token rotation and `REFRESH_TOKEN_REUSE_INTERVAL` links now
go to
`/docs/guides/local-development/cli/config#auth.enable_refresh_token_rotation`
and `#auth.refresh_token_reuse_interval`, matching the Dart v2 spec.
Also add a permanent redirect from `/docs/reference/auth/config` to
`/docs/guides/local-development/cli/config` in
`apps/docs/lib/redirects/static-redirects.json`, so external links to
the old URL stop 404ing. |
| `/app/settings/api-keys` | docs |
`elevenlabs-generate-speech-stream.mdx` and
`elevenlabs-transcribe-speech.mdx`: the ElevenLabs API key link was a
relative path that resolved on supabase.com. It now uses
`https://elevenlabs.io/app/developers/api-keys`, the current ElevenLabs
path (`/app/settings/api-keys` 308s there). The code-sample comments on
both pages use the same URL. |

I left out the other lines in the review. They need feature work, live
outside this repo, or come from stale clients with no matching link in
the code.

## To test

- [x] www preview: open `/blog/sitemap.xml`. It should 308 redirect to
`/sitemap_www.xml` and render the sitemap.
- [x] www preview: open `/partners/sitemap.xml`. It should 308 redirect
to `/sitemap_www.xml` and render the sitemap.
- [x] design-system preview: view source on any
`/design-system/docs/...` page. The `og:image` and `twitter:image` meta
tags should be `https://supabase.com/docs/img/supabase-og-image.png`,
and that URL should load an image. `og:image:height` should be `600`.
- [x] docs preview: open `/docs/reference/kotlin/auth-setsession` and
`/docs/reference/swift/auth-setsession`. The "Refresh token rotation"
and `REFRESH_TOKEN_REUSE_INTERVAL` links should open the matching
sections of `/docs/guides/local-development/cli/config`.
- [x] docs preview: open `/docs/reference/auth/config`. It should 308
redirect to `/docs/guides/local-development/cli/config`.
- [x] docs preview: open `/docs/reference/auth`. It should still 308
redirect to `/docs/reference/self-hosting-auth/start`, so the new
`/docs/reference/auth/config` entry doesn't collide with it.
- [x] docs preview: open
`/docs/guides/functions/examples/elevenlabs-generate-speech-stream` and
`/docs/guides/functions/examples/elevenlabs-transcribe-speech`. The "API
key" link under Requirements should go to
`https://elevenlabs.io/app/developers/api-keys`.

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

## Linear

- fixes GROWTH-1409

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
2026-11-02 18:29:52 +08:00
Lazizbek ErgashevandNik Richers 53890ec291 docs: rename inbucket CLI config keys to local_smtp (#50538)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

docs update

## What is the current behavior?

The CLI config reference still documents the `inbucket.*` keys and links
to inbucket.org. Since supabase/cli#5333 the preferred key is
`local_smtp`, `inbucket` only survives as a deprecated alias that prints
a warning, and `supabase init` writes `[local_smtp]` into new config
files. So anyone following the reference page ends up with a deprecated
key.

Fixes #50530

## What is the new behavior?

The six entries are renamed to `local_smtp.*` and their links point at
the Mailpit docs, which is what the CLI's own schema annotations use.
`local_smtp.enabled` now reads "Enable the local SMTP testing server."
instead of naming InBucket.

`auth.email.smtp.host` also claimed a default of `inbucket`, so the word
was still showing up in a Default column on this page. The CLI declares
that field as optional with no default at all, so I dropped the value
rather than invent a new one and the column now reads None, matching
`auth.email.smtp.user` just below it.

## Additional context

The spec file is only read by
`apps/docs/app/guides/local-development/cli/config/page.tsx`, so
renaming the keys affects the rendered page and nothing else. I left the
`inbucket` entries out rather than listing both names, since the CLI
schema itself exposes only `local_smtp` and rewrites the old section
name before validation.

One thing I left alone: `local_smtp.smtp_port`, `pop3_port`,
`admin_email` and `sender_name` are documented with defaults of 54325,
54326, `admin@email.com` and `Admin`, but the CLI has no defaults for
any of them. They are commented-out suggestions in the generated
config.toml, and an unset `smtp_port` means the port is not exposed
rather than 54325. That predates this PR and felt like a separate
change, though I am happy to fix it here if you would rather it went in
together.


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

## Summary by CodeRabbit

* **Documentation**
* Renamed local email testing configuration keys from `inbucket.*` to
`local_smtp.*`.
  * Updated related documentation links to reference Mailpit.
* For CLI versions before v2.108.0, use the `[inbucket]` section; newer
versions still accept it with a deprecation warning.
* Removed the documented default for `auth.email.smtp.host`. Ports and
other defaults remain unchanged.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-10-31 00:48:35 +00: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
supabase-supabase-autofixer[bot]andantlio ce393db239 feat: update mgmt api docs (#52280)
This PR updates Management API docs automatically.

This regenerates:

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

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

Co-authored-by: antlio <14966155+antlio@users.noreply.github.com>
2026-10-26 15:28:56 +02:00
Wen Bo Xie 61058a579a docs: describe personal access tokens as scoped (#52217)
## Problem

The [Personal Access Tokens
guide](https://supabase.com/docs/guides/platform/personal-access-tokens)
says tokens "come in two flavors: Classic tokens … Scoped tokens." The
Select Rewind blog post, the new Personal Access Tokens feature page,
and the launch community posts deliberately avoid that split. They
describe a token as something you scope and treat the full-access token
as an exception you can still create. Readers who follow "see the
Personal Access Tokens documentation" from those pieces land on the
opposite framing.

Three other guides that link to the PAT page also call it a "scoped
personal access token" as if it were a separate product.

## Solution

This PR rewrites the PAT guide around scoping as the default and stops
using "classic" and "scoped" as names for kinds of token. "Scoped"
appears only as a verb or a state ("scope a token", "scoped by
default"). "Legacy" appears only as the literal Dashboard badge.

- **`guides/platform/personal-access-tokens.mdx`**
- Replaces the two-flavors list with an intro that explains scoping
first and the full-access exception (shown with the **Legacy** badge)
second.
- Renames "Create and use a scoped personal access token" to "Scope a
token and use it" and "Use a scoped personal access token with the
Supabase CLI" to "Use a token with the Supabase CLI".
- **`guides/ai-tools/mcp.mdx`**,
**`guides/getting-started/api-keys.mdx`** and
**`guides/deployment/managing-environments.mdx`** reword "scoped
personal access token" to describe a state rather than a token type.
- **`spec/sections/generateAccessControlPartials.mts`** changes the MCP
tools fallback label from "Not available to scoped personal access
tokens" to "Not available to personal access tokens with a scope".
Because no tool hits this branch today, the generated partials don't
change.

The permissions, CLI behavior, `sbp_fc` prefix and examples stay the
same.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-23 15:06:21 +02: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
supabase-supabase-autofixer[bot]andantlio 61d9b7304d feat: update mgmt api docs (#51246)
This PR updates Management API docs automatically.

This regenerates:

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

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

Co-authored-by: antlio <14966155+antlio@users.noreply.github.com>
2026-10-20 16:19:00 +03:00
21f7e306ee docs(cli): align declarative schema and diff engine docs with CLI behavior (#51609)
## Problem

Four docs pages describe CLI behavior that v2.120.0 no longer has. A
reader following them hits a wrong result in three places.

- The declarative guide tells legacy-engine users who ran `db pull
--declarative` to delete the exported tree. The command also rewrites
`[db.migrations].schema_paths` in `config.toml`, so `db diff` keeps
failing after the delete. The guide also claims the failure happens "on
the first file". The code does not guarantee that.
- The declarative directory moved from `supabase/database` to
`supabase/schemas` in v2.115.0. The CLI warns when it finds a tree at
the old path. No page mentions the move or the warning, and the `db
schema declarative sync` example in the command reference still prints
the old path.
- The command reference marks `--experimental` as required on the
declarative commands. `[experimental.pgdelta] enabled = true` also
unlocks them.

Two smaller gaps: the diff engines page shows how to fall back to
`migra` for one run but not how to try `pg-delta` for one run, and the
guide omits the note `db diff -f` prints when it ignores schema files.

Every claim was checked against the CLI source on `develop` and the
v2.120.0 tag.

## Solution

Docs-only change. Four files, 17 insertions, 8 deletions.

- `declarative-database-schemas.mdx`: corrects the legacy caution,
documents the pre-2.115.0 directory and its warning, adds the `db diff
-f` note.
- `diff-engines.mdx`: adds the single-run opt-in table (`db diff
--use-pg-delta`, `db pull --diff-engine pg-delta`, `--experimental` for
the declarative commands) and the `SUPABASE_EXPERIMENTAL_PG_DELTA`
override. Updates the legacy `db pull --declarative` row. Prettier
realigned the comparison table, which accounts for most of that page's
diff.
- `cli_v1_config.yaml`: `schema_paths` notes the automatic rewrite on
`migra` and the warning on `pg-delta`. `declarative_schema_path` notes
the pre-2.115.0 default.
- `cli_v1_commands.yaml`: fixes the example path and drops `required:
true` from `--experimental` on the two declarative commands. Both match
the spec the CLI generator produces from `develop`.

The command reference is generated from the CLI repo, so the same fixes
are in supabase/cli as a separate PR. Without that, the next release's
reference update reverts them here.

## Review instructions

1. Open the preview for
`/docs/guides/local-development/declarative-database-schemas` and search
for "schema_paths". The legacy caution should say the command rewrites
the setting and tell readers to remove it.
2. On the same page, search for "2.115.0". The directory note should
name the version and both fixes.
3. Open the preview for `/docs/guides/local-development/diff-engines`
and search for "single run". The opt-in table should render, and the
comparison table below it should still align.
4. Open the CLI reference for `db schema declarative sync`. The second
example should print `supabase/schemas`, and `--experimental` should not
show as required.
5. Open the config reference entries for `db.migrations.schema_paths`
and `experimental.pgdelta.declarative_schema_path` and read the added
sentences.
6. Optional source check in supabase/cli `develop`:
`updateDeclarativeSchemaPathsConfig` in
`apps/cli/src/commands/db/shared/pgdelta.write.ts` and
`apps/cli/src/commands/db/schema/declarative/declarative.former-default.ts`
back the two main claims.

## 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: avallete <andrew.valleteau@supabase.io>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 10:53:16 +00:00
Katerina Skroumpelou d303c248d3 docs: drop stale alpha labels from server and middleware reference (#51494)
## Problem

The server and middleware reference pages on supabase.com still carry
alpha labels that were dropped from the source partials weeks ago.
#51031 (Sep 30) removed the alpha wording from the partials and #51276
(Oct 5) added the adapter removal date, but neither change reached the
live site.

The reference build (`apps/docs/scripts/build-reference-content.ts`,
`writeNewMarkdownPartials`) copies a partial to
`docs/ref/<library>/<name>.mdx` only when that file does not exist, and
the page renderer reads from `docs/ref`. Once a page has been seeded,
later edits to the partial are never picked up. The three affected pages
were seeded before those PRs merged.

The UI library MCP page has the same stale wording: it says the
`pipeline` entry form of `withSupabase` is alpha and tracks
`@supabase/middleware` 0.x. Middleware is at 1.x and `@supabase/server`
dropped the alpha label in supabase/server#185.

Linear:
[SDK-2161](https://linear.app/supabase/issue/SDK-2161/remove-the-public-beta-designation-from-supabaseserver).
Companion package PR: supabase/server#192.

## Solution

Copy the current partial bodies over their rendered twins. The
frontmatter is identical in each pair, and the partials are left
untouched:

- `apps/docs/docs/ref/server/frameworks.mdx`: adapters are now described
as deprecated with the December 1, 2026 removal date, the Versions note
tells readers to add `@supabase/middleware` as a direct dependency, the
migration steps include `npm install @supabase/middleware`, and "The
entry form is alpha" is gone.
- `apps/docs/docs/ref/middleware/introduction.mdx`: the "Alpha"
admonition is gone.
- `apps/docs/docs/ref/middleware/usage-examples.mdx`: the entry form
note no longer says alpha.

Rewrite one paragraph in `apps/ui-library/content/docs/headless/mcp.mdx`
so it states the version requirement (`@supabase/server` 1.6.0 or later)
and that the nested form behaves the same, without the alpha or 0.x
claims.

After this PR each `docs/ref` file is byte-identical to its partial, so
`diff` between the two is empty.

## Preview links

| Site | Live | Preview | Search for |
| ---------- |
---------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------
| --------------------------------------- |
| Docs |
[/docs/reference/server/frameworks](https://supabase.com/docs/reference/server/frameworks)
|
[/docs/reference/server/frameworks](https://docs-git-docs-drop-stale-alpha-labels-supabase.vercel.app/docs/reference/server/frameworks)
| `December 1, 2026` |
| Docs |
[/docs/reference/middleware/introduction](https://supabase.com/docs/reference/middleware/introduction)
|
[/docs/reference/middleware/introduction](https://docs-git-docs-drop-stale-alpha-labels-supabase.vercel.app/docs/reference/middleware/introduction)
| `is in alpha` (live only) |
| Docs |
[/docs/reference/middleware/usage-examples](https://supabase.com/docs/reference/middleware/usage-examples)
|
[/docs/reference/middleware/usage-examples](https://docs-git-docs-drop-stale-alpha-labels-supabase.vercel.app/docs/reference/middleware/usage-examples)
| `The entry form of` |
| UI library |
[/ui/docs/headless/mcp](https://supabase.com/ui/docs/headless/mcp) |
[/ui/docs/headless/mcp](https://ui-library-git-docs-drop-stale-alpha-labels-supabase.vercel.app/ui/docs/headless/mcp)
| `Composing` |

## Review instructions

1. Open the live and preview links for the frameworks page side by side.
Search for `alpha`: present on live, absent on preview. Search for
`December 1, 2026`: absent on live, present on preview.
2. Open the middleware introduction. The "Alpha" caution box is gone on
preview.
3. Open the middleware usage examples and expand the CORS example
details. The entry form note reads "needs `@supabase/server` 1.6.0 or
later" with no alpha.
4. Open the UI library MCP page. The paragraph after the `whoami` note
states the version requirement and no longer mentions alpha or 0.x.
5. Optional, in a checkout: `diff
apps/docs/spec/reference/server/v1/partials/frameworks.mdx
apps/docs/docs/ref/server/frameworks.mdx` prints nothing. Same for the
two middleware pages.

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

The docs text is copied verbatim from partials that already went through
review in #51031 and #51276. The one rewritten paragraph in the UI
library page follows the Supabase writing style guide.
2026-10-12 11:46:49 +00:00
Katerina Skroumpelou d7cac841c4 docs: state the adapter removal date in the server frameworks guide (#51276)
The server frameworks guide still said the adapters "will be deprecated
soon" and would be "removed in a future major". They have been
deprecated since `@supabase/server` 1.9.0, with `@deprecated` tags
shipping in 1.9.1, and the removal date is December 1, 2026. This PR
updates the two sentences to state that date and drops the wording about
the release shape, which is not decided.
2026-10-05 16:08:24 +00:00
Katerina Skroumpelou 0f453c89fa docs: add @supabase/middleware install step to server frameworks guide (#51266)
The framework bridges in the `@supabase/server` reference import
`@supabase/middleware` directly, but the guide never said to install it.
`@supabase/server` depends on it, so npm and yarn users get it through
hoisting, while pnpm users hit "Cannot find module
'@supabase/middleware'" the moment they copy a bridge. This PR adds the
direct-dependency note to the Versions admonition, an `npm install
@supabase/middleware` line to the copy-the-bridge step, and the same
instruction to the agent migration prompt.
2026-10-05 16:56:05 +03:00
Wen Bo Xie ffd2754c7a docs(cli): document experimental supabase stack commands and native runtime (#50391)
Add two guides under Local Development for the experimental `supabase
stack` commands, wire them into the docs nav, the CLI reference, the
marketing features list, and the pages that readers reach with a port
conflict.

New pages:
- guides/local-development/parallel-projects: run one local project per
app, git worktree, branch, or named environment on a single machine.
Covers identity, automatic port assignment, removing fixed ports from
config.toml, named projects, finding endpoints, stop and destroy, the
`[experimental] stack` setting, and current limitations.
- guides/local-development/runtimes: the Docker and native runtimes, how
the CLI picks one, native platform requirements, artifact download and
cache locations, and runtime limitations.

Cross-links and context:
- Local development index, CLI getting started, CLI workflows, managing
environments, AI tools, MCP, and the edge functions port troubleshooting
entry now point readers to the new guides where a second `supabase
start` fails on a port conflict.
- CLI reference: `supabase stack`, `stack start`, `stack stop`, `stack
destroy`, the `experimental.stack` config key, and a note on `supabase
start` and `[experimental] stack`.
- www: two feature entries and copy tweaks on the hosted Postgres and
innovation teams solution pages.
- supa-mdx-lint: allow worktree, glibc, musl, and checksum.
2026-10-02 08:39:18 +02:00
Julien GouxandIvan Vasilov 7b08726d3a docs(cli): document OrioleDB initialization and db.orioledb_version (#50908)
Document `supabase init --use-orioledb` in the CLI reference. Add
`db.orioledb_version` to the CLI config reference, and mark
`experimental.orioledb_version` as deprecated.

This complements the general OrioleDB beta guide update in #50813.

Companion CLI PR: https://github.com/supabase/cli/pull/6828, released in
[v2.119.0](https://github.com/supabase/cli/releases/tag/v2.119.0).


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

* **Documentation**
* Documented the `supabase init --use-orioledb` option, which sets the
OrioleDB image version in `supabase/config.toml`.
* Added configuration guidance for `db.orioledb_version`, including its
PostgreSQL version requirements.
* Marked `experimental.orioledb_version` as deprecated and directed
users to `db.orioledb_version`. The CLI continues to read the
experimental setting and warns when it is set.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2026-10-01 13:13:19 +02:00
Pamela Chia 5a7c0d6d84 fix(docs): resolve legacy sdk reference urls (#51064)
I made the crawler renderer resolve legacy JavaScript and Dart reference
slugs to their current sections, and updated authored guide and SDK spec
links to use them. Exact slugs still win, ambiguous bare slugs still
return 404, and `file-buckets-listv2` remains a section slug in
canonical links. I kept the www redirect work in a separate draft PR
because the apps deploy independently.

## To test

- [x] On the Docs preview, request `reference/javascript/order` and
`reference/dart/get-user` with a bot user agent. Expect the intended
heading and canonical URL.
- [x] Request `reference/javascript/file-buckets-listv2` with bot and
browser user agents. Expect it to open the list v2 section.
- [x] Request `reference/swift/get-user` and the Kotlin reference root
with a bot user agent. Expect the intended heading.
- [x] Open the Storage quickstart guide and follow its upload reference
link. Expect the current JavaScript upload section.

## Linear

refs GROWTH-1293


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

## Summary by CodeRabbit

* **Bug Fixes**
* Reference pages now resolve legacy aliases and ambiguous slugs more
accurately, with canonical links that preserve explicit SDK versions.
* SDK version paths are recognized only when the full path segment
matches the version format, improving reference-page routing.

* **Documentation**
* Updated API reference links across authentication, storage, security,
and SDK guides to point to current pages.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-30 17:11:53 -07:00
supabase-supabase-autofixer[bot]andzamotany e54394cfd8 feat: update mgmt api docs (#49743)
This PR updates Management API docs automatically.

This regenerates:

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

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

Co-authored-by: zamotany <17573635+zamotany@users.noreply.github.com>
2026-09-30 18:34:09 +02:00
Paweł Gulbinowiczandcoderabbitai[bot] 032c71c5bf fix(docs): use summary instead of slug for webhooks api spec (#51088)
## 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?

Bug fix

## What is the current behavior?

Operations names for webhooks in Organizations webhooks and Project
webhooks use titles derived from slug, which produces wrong/incoherent
titles, for example: `Organizations slug webhooks deliveries id get`.

## What is the new behavior?

For Organizations webhooks and Project webhooks use `summary` from the
OpenAPI spec as the title instead of deriving it from the operation id.

## Additional context

Once this PR is merged, an _Update Mgmt Api Docs_ workflow needs to be
run to regenerate the sections and the spec.


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

* **Documentation**
* Management API documentation section titles for organization and
project operations now use the OpenAPI summary when one is available. If
no summary is provided, the title falls back to the existing name-based
format. Titles for other operations continue to use the existing format,
so their presentation is unchanged.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-09-30 17:25:17 +02:00
Katerina Skroumpelou 2013ebf417 docs: drop alpha labels and pin server and middleware imports to a major (#51031)
## Problem

`@supabase/middleware` ships as 1.0.0. The docs still label the
`pipeline` entry form of `withSupabase` alpha, and several snippets
import `npm:@supabase/server` and `npm:@supabase/middleware` with no
version or with a `^0.5.0` pin. A snippet without a version leaves
readers and tools to guess one, and a guessed version fails on deploy.

## Solution

- Removes the alpha wording from the middleware reference intro and
usage examples, the server frameworks partial, and the Bring your own
MCP guide. The `@supabase/server` 1.6.0 floor stays.
- Pins every `npm:@supabase/server` and `npm:@supabase/middleware`
import in the guides to a major range, `@1`, following the
`npm:@supabase/supabase-js@2` convention in Managing dependencies.
- Bumps the authenticated-mcp-server example to middleware `^1.0.0` and
server `^1.9.0`.

~~Blocked by supabase/middleware#49. The `@1` range resolves once 1.0.0
is on npm.~~




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

## Summary by CodeRabbit

* **Documentation**
* Updated authentication, API key, and MCP examples to use versioned
Supabase server and middleware packages.
* Clarified that pipeline and nested composition behave the same, and
that both require `@supabase/server` 1.6.0 or later.
* Removed alpha-status labels from `withSupabase` guidance while
retaining the 1.6.0 minimum-version requirement.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-30 17:27:44 +03:00
Katerina Skroumpelou e1debe9a69 docs: add frameworks partial to the server reference (#50514)
Adds a Frameworks partial to the `@supabase/server` reference, after
Installing. It explains how to run `@supabase/middleware` entries inside
Hono, H3, Elysia, NestJS, and TanStack Start through a copyable bridge,
and how to move off the framework adapters: the auth trap
(`withRequiredClaims` versus `withClaims`), the `userClaims` to
`jwtClaims` field remap, how each framework scopes an entry array to a
group of routes, what CORS and body access cost on NestJS, the
step-by-step procedure, and a prompt to hand to a coding agent. The
bridge code for all five frameworks lives in supabase/server#168 and is
linked, not copied. Resolves
[SDK-1599](https://linear.app/supabase/issue/SDK-1599) and
[SDK-1862](https://linear.app/supabase/issue/SDK-1862): the retired
`withSupabase({ middleware })` form is gone from the text.


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

* **Documentation**
* Added integration guidance and setup examples for Hono, H3/Nuxt,
Elysia, NestJS, and TanStack Start, including framework-specific
context, response, and route-scoping behavior.
* Documented migration options for authentication requirements, changes
to context and JWT claims, and differences in response and error
handling.
* Added a TanStack Start bridge example and migration and verification
checklists.
  * Added the frameworks guide to the API reference navigation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-29 15:50:58 +03:00
Katerina Skroumpelou db63b4d6a2 docs: add usage examples partial to the server reference (#50858)
## Problem

The `@supabase/server` reference goes straight from Installing to the
generated API reference. It has no worked example. The middleware
reference has a "Usage examples" page in that spot (#50461).

## Solution

A new "Usage examples" partial sits between Installing and the generated
reference. It has three examples, taken from the server repo's
`docs/getting-started.md`:

- **Protect an endpoint with a user JWT:** `withSupabase({ auth: 'user'
})`, its CORS handling, and `ctx.supabase` vs `ctx.supabaseAdmin`.
- **Serve a public endpoint:** `auth: 'none'`, plus the `verify_jwt =
false` setting Edge Functions need.
- **Build the context yourself:** `createSupabaseContext` returning `{
data, error }`.

Files:

- `spec/reference/server/v1/partials/usage-examples.mdx` and its
`docs/ref/server/` mirror
- `usage-examples` added to `partialsOrder` in
`spec/reference/server/v1/config.json`

Every claim is checked against the source code in `supabase/server`,
`supabase/middleware`, and `supabase/cli`.

## Preview links

| Site | Preview |
| ---- | ------- |
| Docs |
[/docs/reference/server/usage-examples](https://docs-git-docs-server-usage-examples-supabase.vercel.app/docs/reference/server/usage-examples)
|

## Review instructions

1. Open the preview link.
2. Check that "Usage examples" appears in the sidebar between Installing
and the generated reference.
3. Check that the three examples render with the code on the right.

## Checklist

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



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

## Summary by CodeRabbit

* **Documentation**
* Added server usage examples for protecting endpoints, serving public
endpoints, and creating Supabase context manually.
* Documented runtime requirements, JWT verification settings, CORS
behavior, and the differences between caller-scoped and admin access.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-28 16:06:58 +03:00
e357ec8f9f docs(cli): update local development workflow docs for pg-delta default diffing (#49280)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Docs update.

## What is the current behavior?

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

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

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

## What is the new behavior?

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

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

## Additional context

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

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

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

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

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

https://claude.ai/code/session_01SUuaVmXLRbV6tZjzhka3cp

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

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Wen Bo Xie <wenbox323@gmail.com>
2026-09-21 12:07:10 +02:00
Katerina Skroumpelou c92ed0b219 docs: add usage examples and build-your-own middleware partials (#50461)
## See the changes

*
https://docs-git-docs-middleware-usage-examples-supabase.vercel.app/docs/reference/middleware/usage-examples
*
https://docs-git-docs-middleware-usage-examples-supabase.vercel.app/docs/reference/middleware/build-your-own

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

YES

## What kind of change does this PR introduce?

Docs update.

## What is the current behavior?

The `@supabase/middleware` reference has two hand-written pages,
Introduction and Installing, followed directly by the generated API
reference. There is no worked example of composing middleware and no
guidance on writing one. The authoring guide lives only in the
[middleware
repo](https://github.com/supabase/middleware/blob/main/docs/authoring-guide.md).

## What is the new behavior?

Two new partials sit between Installing and the generated reference:

- **Usage examples**: two `pipeline` examples. The first composes
`withCors` and `withFeatureFlag` from `@supabase/middleware`. The second
adds `withSupabase` from `@supabase/server`: `withCors` first,
`withSupabase({ auth: 'user', cors: 'disabled' })` second, and an
environment-driven flag last. The prose explains why a CORS layer must
precede the auth gate, what `withSupabase` does for CORS on its own, and
that the entry form of `withSupabase` is alpha and needs
`@supabase/server` 1.6.0 or later.
- **Build your own middleware**: the `defineMiddleware` shape (four type
arguments, when `run` receives the config, contribute vs short-circuit,
reading `getEnv` inside the per-request function), composing a custom
entry in `pipeline`, what `pipeline` checks at compile time, and when
`satisfies FetchHandler` matters. It links to the full authoring guide
for tests, packaging, and the variants.

`partialsOrder` in `spec/reference/middleware/v1/config.json` registers
both partials. The `docs/ref/middleware/` mirrors were generated with
`pnpm codegen:references:new`.

## Additional context

- Every snippet typechecks against `@supabase/middleware` and
`@supabase/server` source on `main`. The "fails to compile" statements
were confirmed with negative typechecks (duplicate key, unmet
prerequisite, in both the `pipeline` and nested forms).
- The second example's request flow was exercised end to end with a
local JWKS: preflight `204`, missing credentials `401`, flag off `404`,
flag on `200`, and the reversed order producing a `401` with no CORS
headers.
- The generated `sections.json` lists the four partials in order:
Introduction, Installing, Usage examples, Build your own middleware. No
local render check was done.

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

## Summary by CodeRabbit

* **Documentation**
* Added usage examples for composing middleware pipelines with CORS,
feature flags, authentication, and Supabase.
* Added guidance for creating custom middleware, contributing request
context, handling responses, and accessing runtime environment
variables.
* Documented middleware ordering, validation, preflight handling, and
authentication behavior.


<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-18 11:40:10 +03:00
Katerina Skroumpelou dca96ae929 docs: add the Deno optional peer note to the server installing page (#50412)
## 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, one new section on the `@supabase/server` Installing page.

## What is the current behavior?

The Deno install instructions stop at `deno add jsr:@supabase/server`. A
user who then imports `@supabase/server/middleware/postgres` on Deno or
Edge Functions passes `deno check` and fails at startup with `Could not
find package 'pg'`, because Deno resolves an optional peer only when the
user's own code imports it. Nothing on the page says so.

## What is the new behavior?

A new "Optional peer dependencies on Deno" row under the JSR section
explains why, shows the bare `import 'pg'` at the top of the entry
module, gives the `deno info` check, and notes the
`--minimum-dependency-age 0` flag for same-day releases. Both
hand-maintained copies of the partial are updated and stay identical:
the spec partial for the reference site and the `docs/ref` copy for the
markdown build.

## Additional context

`pg` is the only optional peer a user can hit today. The MCP entry will
add another once it ships and gets documented then.

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

* **Documentation**
* Added Deno installation guidance for Postgres middleware that requires
the optional `pg` dependency.
* Clarified that importing `pg` directly is necessary for Deno to
resolve it at runtime.
* Added commands for verifying package resolution and handling Deno’s
minimum dependency age checks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-16 15:50:38 +03:00
Katerina Skroumpelou 68acece226 docs: drop the retired withSupabase middleware option from the intro (#50409)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Docs fix, one sentence removed from the `@supabase/middleware` reference
intro.

## What is the current behavior?

The alpha admonition says the `middleware` option on `withSupabase` in
`@supabase/server` is also alpha. That option was removed in
`@supabase/server` 1.6.0, where `withSupabase` became a `pipeline`
entry, so the sentence describes something that no longer exists.

## What is the new behavior?

The admonition keeps the `@supabase/middleware` alpha wording and drops
the sentence about the removed option. Both hand-maintained copies of
the intro are updated and stay identical: the spec partial that renders
the reference site, and the `docs/ref` copy that feeds the markdown
build.

## Additional context

Same two-file pattern the `@supabase/server` reference uses for its
intro and installing partials.

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

## Summary by CodeRabbit

- **Documentation**
- Updated middleware documentation to clarify that only the
`@supabase/middleware` package is in alpha.
- Removed the alpha-status notice for the `withSupabase` middleware
option in `@supabase/server`.
- Clarified that `@supabase/middleware` APIs may change between 0.x
releases.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-15 17:29:13 +03:00
Guillaume Faas 1531eb427d docs(csharp): add new C# Reference for v8.0.0 (#50116)
## 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?

Documentation update: add a new page for the C# SDK reference v8.0.0


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

* **New Features**
  * Added C# client reference documentation for version 8.1.0.
  * Added navigation for the C# Reference v8 documentation.
* Documented authentication, database, Realtime, Storage, filtering, and
query APIs with C# examples.

* **Documentation**
* Added C# SDK 8.0.0 and 8.1.0 release notes, including breaking
changes, new capabilities, and bug fixes.
* Updated documentation version listings and search coverage for C# v8.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-14 10:07:26 +02:00
Guillaume Faas ae7167fe58 docs: update SignUp documentation in C# reference (#48733)
Addresses https://github.com/supabase-community/gotrue-csharp/issues/85

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

- **Documentation**
- Clarified sign-up behavior, including returned sessions, email
confirmation, automatic session adoption, and sign-in events.
- Documented existing-user obfuscation and the error raised when
registration is rejected.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-14 10:07:10 +02:00
Gildas GarciaandAlaister Young 9b1dddde11 Scoped PAT: add api_gateway_keys_secret_read and data_api_config_secret_read permissions (#50134)
## What kind of change does this PR introduce?

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

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

## What's in here

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

## Verified

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

## Follow-ups (not in this PR)

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


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

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

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-09-11 13:31:21 +08:00
F-G Fernandez 7ca208918d docs(auth): fix documentation of self hosted auth (#36681) 2026-09-10 12:55:58 +00:00
Danny White 24be387cdb docs: use sign in terminology across guides and style guides (#49877)
## What kind of change does this PR introduce?

Docs update. Aligns documentation and style guides with the **Sign in /
Sign out / Sign up** platform standard.

Closes DOCS-1328. Related to
[#49874](https://github.com/supabase/supabase/pull/49874).

## What is the current behavior?

Docs style guides prefer _login_ / _log in_. Guide prose uses mixed
login and sign in wording.

## What is the new behavior?

- [WORD_LIST.md](apps/docs/WORD_LIST.md) and
[copywriting.mdx](apps/design-system/content/docs/copywriting.mdx)
document the sign in standard
- Design-system auth examples updated
- Guide prose and API reference spec descriptions updated

### Terminology

**Standard:** Use _sign in_, _sign out_, and _sign up_ as verbs. Use
_sign-in_, _sign-out_, and _sign-up_ as nouns and adjectives. Match
Studio UI labels (**Sign in**, **Sign out**, **Sign up**).

**Preserved intentionally:**

| Category | Keep as-is | Example |
| -------- | ---------- | ------- |
| Feature name | social login | `/social-login`, `features.mdx` heading,
OAuth provider section |
| URL slugs | `login` in paths | `/phone-login`, `/login-flows`,
`choosing-login-flow` |
| CLI | `supabase login` / `supabase logout` | Reference ids
`supabase-login` / `supabase-logout`; executable commands unchanged |
| SDK methods | `logout()` | Kotlin/Swift method names in API reference
titles and examples |
| Third-party UI | Provider product labels | Facebook Login, Kakao
Login, portal **Login** buttons |
| Postgres | Database terminology | login privileges, login credentials,
login via role |
| Audit/logging | Log prose | "Generates the following **log** in the
Postgres Logs" |
| Code and routes | Paths and filenames | `app/login/`, `Login.tsx`,
`demos/android-login` |
| External URLs | Third-party login pages | `dash.cloudflare.com/login`,
`console.neon.tech/login`, `vercel.com/login` |
| API identifiers | Event and field names | Audit actions
`login`/`logout`, `should_logout_user` |

## To test

- Run `pnpm lint:mdx` in `apps/docs`
- Spot-check `features.mdx`, `social-login.mdx`, and a provider guide
(e.g. Facebook, Kakao)

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

* **Documentation**
* Standardized authentication terminology across guides, reference
material, CLI documentation, and copywriting guidance using “sign in,”
“sign out,” and “sign up.”
* Updated authentication instructions, headings, link text, examples,
and SSO guidance for clearer, more consistent wording.
* Corrected related grammar, spelling, hyphenation, and documentation
links while preserving established product names and implementation
commands.
* **Style**
  * Refined code examples with consistent import ordering and spacing.
* **Examples**
* Updated authentication button and menu labels to “Sign in” and “Sign
out.”
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-04 09:10:25 +10:00