Commit Graph
40517 Commits
Author SHA1 Message Date
Jeremias Menichelli 25b7538194 chore: Create new table on global supabase project. Add search fn improvements. (#52338)
## Problem

Currently we experience a lot of empty results responses from our new
search_v2 experiment.

We are improving our search logic on our frontend plus our search
functions in the backend ot fix this.

## Solution

Improve our search setup to follow this path:
1. Same as before, strict full text search.
1. If that returns zero results, we do prefixes via wild cards, ie:
"edge fun" becomes "edge fun|*" so people don't have to type the full
term.
1. If that returns zero results, then we run the terms under OR, which
will give partial results for individual terms.
1. If that returns zero results then we are most probably under a
typo/misspelling scenario, then we use `pg_trgm` extension with a `0.4`
tier to return the closest bit, which is good cause it covers missing
first letters like "dge functions" too.

We will do this migration in three steps to not disrupt current users
under the experiments, I will be posting the PRs here:

1. First, we will create a new search_v2 table on `supabase.com [LIVE]`
project where production parts of our monorepo go + already implement
the improvements I just mentioned. 👈 **this PR is here**
1. Re-route the ingest script to populate once per day the database
table in this new project. At this point we will have the data and the
search function ready.
1. Update the API search_v2 function to query from this new project, so
users will experience no down time.

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

_Make sure Supabase check passes in this PR._

## 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-26 21:06:59 +01:00
Kody Jackson c6bd1a5394 chore(www) - add bing verification meta tag to homepage (#52335)
## Problem

Missing `bing` verification for webmaster tools. 

## Solution

Can be added a couple ways, but this was the fastest

```
Copy and paste the <meta> tag into your site's home page. It should go in the <head> section, before the first <body> section.
HTML Meta Tag

<meta name="msvalidate.01" content="92FBA8A0D370D71480454DBEAB37D0AE" />
* To stay verified, don't remove the meta tag even after verification succeeds.
```

## Preview links


https://zone-www-dot-com-git-kody-devrel-740-bing-verification-supabase.vercel.app/

<img width="1128" height="734" alt="image"
src="https://github.com/user-attachments/assets/d36ae51c-1355-46fe-b263-47b59909f542"
/>
2026-10-26 15:05:54 -05:00
Kody Jackson b0aeee4b29 fix(www) - add blog alt link to rss feed (#52336)
## Problem

Missing alt tag for the blog changelog feed, similar to part of #52292

## Solution

Adds it

## Preview links

[blog
homepage](https://zone-www-dot-com-git-kody-devrel-731-alternate-bef917-supabase.vercel.app/blog)
<img width="1128" height="734" alt="image"
src="https://github.com/user-attachments/assets/afc152d6-7041-4a27-9b08-3df9e8a85bcb"
/>
2026-10-26 15:05:32 -05:00
0cc65f7421 feat(www): add Personal Access Tokens feature page (#52290)
## Problem

Scoped Personal Access Tokens launch with Select Rewind on 2026-10-26.
No feature page covers personal access tokens today.

## Solution

Adds a `Personal Access Tokens` entry to `apps/www/data/features.tsx`,
after the Management API entry, served at
`/features/personal-access-tokens`. Also adds the `KeyRound` lucide icon
to the existing import list.

- Stage: General Availability. Self-hosted: no.
- Copy source: https://app.notion.com/p/4025004b775f810792b4fa9bc1b1b296

Open items before this is ready:

- Hero images: `/images/features/personal-access-tokens.png` and
`/images/features/personal-access-tokens-light.png` are placeholder
paths. The files don't exist yet, so the page shows a broken image until
design supplies them.
- Stage and self-hosted values are not yet confirmed by engineering.
- `blogUrl` is left out until the blog post is live.

## Preview links

| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| WWW |
[/features/personal-access-tokens](https://supabase.com/features/personal-access-tokens)
| Add from the Vercel bot comment | Personal Access Tokens |

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

---------

Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 06:56:38 +11:00
b329508c4f blog(www): add Scope your Personal Access Tokens blog post (#52289)
## Problem

Scoped Personal Access Tokens need a launch blog post for Select Rewind,
publishing 2026-10-26.

## Solution

Adds "Scope your Personal Access Tokens," based on the engineer-authored
draft with light edits.

- Post:
`apps/www/_blog/2026-10-26-scope-your-personal-access-tokens.mdx`
- Images: OG, thumbnail, and six Dashboard screenshots in
`apps/www/public/images/blog/scope-your-personal-access-tokens/`
- Draft source:
https://app.notion.com/p/4025004b775f81ce8cffdaba9941ce56

Needs a marketing +1.

## Preview links

| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| WWW |
[/blog/scope-your-personal-access-tokens](https://supabase.com/blog/scope-your-personal-access-tokens)
| Add from the Vercel bot comment | Scope your Personal Access Tokens |

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

---------

Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-27 06:56:17 +11:00
Pamela Chia 092b8ff518 fix: repair 404s from legacy dashboard routes, docs links, and the changelog feed (#52292)
Several supabase.com URLs still return a 404 to real browsers every day:
an old Database Hooks route, card icons for brands we never shipped an
image for, two dashboard links to docs pages that miss the `/guides`
prefix, and a few URLs that search engines and feed readers keep
requesting.

**Changed:**
- **Old Database Hooks links land on Webhooks**: #29671 renamed
`/project/:ref/database/hooks` without a redirect, so bookmarks and
older guides hit a 404. I added a redirect to the Integrations Webhooks
page, the same target as the existing `database/webhooks` redirect.
- **Card brands without an icon show a generic card**: payment method
rows built the image URL straight from the card brand name, so UnionPay
and other brands without a PNG rendered a broken image. I added a
`CardBrandIcon` in `CreditCard.tsx`, used by both views, that only
requests the brand images we ship, labels each with its brand name, and
shows a generic card icon for every other brand.
- **Branching "Learn more" links open the right docs**: #51393 linked
the branching empty state to `/docs/deployment/branching/...` without
`/guides`. I fixed both links and added a redirect for the GitHub
integration URL, which search engines already indexed (the dashboard one
already had a redirect).
- **Indexed docs and feed URLs redirect**: I added redirects for
`/docs/guides/mcp`, the old hashed architecture diagram path that other
sites still embed, and `/changelog/rss.xml`. I also added an RSS
`alternate` link to `/changelog` so feed readers find
`/changelog-rss.xml` instead of guessing.

**Note:** Studio and www changes are independent, so either app can
deploy first.

## To test

Tested on the PR preview:
- [x] Open `/dashboard/project/<ref>/database/hooks`, expect a redirect
to `/dashboard/project/<ref>/integrations/webhooks/overview`
(`database/hooks-nope` still 404s)
- [x] Open org billing with a Visa or Mastercard on file, expect the
brand logo as before
- [x] With a card whose brand has no image (e.g. UnionPay), expect a
generic card icon instead of a broken image in the payment methods list
(checked with a mocked UnionPay row: generic icon, no `unionpay.png`
request, Visa rows unchanged)
- [ ] Same check in the plan change payment method select (not
exercised: reaching it starts the plan change flow)
- [x] On a project without branching, open Branches and click both
"Learn more" buttons, expect the dashboard and GitHub integration
branching guides to load
- [x] On the www preview, open `/changelog/rss.xml`, `/docs/guides/mcp`
and `/docs/deployment/branching/github-integration`, expect 308s to
`/changelog-rss.xml`, `/docs/guides/ai-tools/mcp` and
`/docs/guides/deployment/branching/github-integration`
- [x] View source on `/changelog`, expect a `rel="alternate"` RSS link
to `/changelog-rss.xml`

## Linear
- fixes GROWTH-1364
2026-10-26 17:32:06 +00:00
Alaister Young c127901b64 test(studio): speed up flaky replication tests (#52326) 2026-10-27 01:21:54 +08:00
Pamela Chia 2e63060c59 fix(docs): serve markdown 404s for guessed .md urls (#52293)
Coding agents guess docs URLs that don't exist: markdown variants of
pages that have no markdown (`/docs/reference/<sdk>/<fn>.md`,
`/docs/guides/<slug>.md`) and `/docs/llms.txt`. Reference guesses get an
empty-body 404 from the crawler renderer for bot user agents and the
full HTML reference for browsers, and the rest get the HTML 404 page, so
the agent never learns where the content lives. Reference `.md` guesses
are about half of coding-agent docs 4xx, and guide `.md` guesses about a
tenth.

**Changed:**
- **Reference `.md` guesses**: the docs proxy answers every
`/docs/reference/**.md` request itself, for any user agent and before
the crawler rewrite, with a markdown 404 (`no-store`) linking the HTML
page and the SDK's full markdown reference (`/llms/js.txt`,
`/llms/dart.txt`, and so on), or `/llms.txt` for references without one.
- **Unknown guide `.md` guesses**: guide `.md` requests whose slug has
no markdown variant get the same markdown 404 instead of the HTML 404.
The body says there is no markdown version of the page, because a few
real guide pages (CLI config, self-hosting config, troubleshooting
indexes) are TSX-only. Known guides and Accept-negotiated requests
without `.md` are unchanged.
- **`/docs/llms.txt`**: I added a permanent www redirect to `/llms.txt`,
next to the existing `/docs/reference/llms.md` redirect.

**Note:** the `.md` check in `proxy.ts` catches every reference `.md`
URL, so it has to be narrowed when per-function reference markdown
ships, or it will 404 those files.

## To test

Tested on the PR previews (docs deployment for the 404s, www deployment
for the redirect):
- [x] `curl -sD - -A 'curl/8.7.1'
<docs-preview>/docs/reference/javascript/select.md`: expect 404,
`content-type: text/markdown`, `cache-control: no-store`, and a body
linking `https://supabase.com/docs/reference/javascript/select` and
`https://supabase.com/llms/js.txt`
- [x] Repeat for `dart/select.md`, `python/select.md`,
`cli/supabase-init.md` and `api/v1-list-all-projects.md`: expect the
matching `/llms/<sdk>.txt`
- [x] Repeat `javascript/select.md` with a browser user agent: expect
the same markdown 404
- [x] `curl -sD - <docs-preview>/docs/guides/doesnotexist.md`: expect
404 markdown with `no-store`, linking `https://supabase.com/llms.txt`
- [x] `curl -s
<docs-preview>/docs/guides/local-development/cli/config.md`: expect 404
markdown linking
`https://supabase.com/docs/guides/local-development/cli/config`
- [x] `curl -sD - <docs-preview>/docs/guides/database/overview.md`:
expect 200 markdown, unchanged
- [x] Open `<docs-preview>/docs/guides/doesnotexist` in a browser:
expect the branded HTML 404, unchanged
- [x] `curl -sIL -o /dev/null -w '%{num_redirects} %{http_code}\n'
<www-preview>/docs/llms.txt`, once with a browser user agent and once
with `Googlebot/2.1`: expect `1 200`

## Linear
- fixes GROWTH-1325
2026-10-27 01:21:01 +08:00
9084e8181b docs(ai): add Fireworks AI integration guide (#52193)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

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

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

## What is the current behavior?

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

## What is the new behavior?

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

## Additional context

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

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

### Needs review

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

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

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

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


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

### Test plan

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

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

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jordan Lee <jordan.lee@supabase.io>
2026-10-26 10:10:11 -07:00
Drew McLellanandFrancesco Sansalvadore d98c277790 feat(studio): rotate Storage URL signing keys FE-4433 (#52165)
## Problem

Rotating a project's Storage URL signing key currently needs a support
ticket, so customers can't rotate on their own timeline or keep a
standby key until their signed URLs have migrated.

Linear:
[FE-4433](https://linear.app/supabase/issue/FE-4433/allow-users-to-rotate-storage-url-signing-keys-via-ui)

## Solution

Adds a URL signing keys page at `/project/{ref}/storage/signing-keys`,
linked from the Storage menu. It builds on the design prototype from
`feat/storage-rotate-signing-keys` and follows the current JWT Keys page
styling.

- Active key, standby key, and revoked keys are shown in separate
tables, so there is only ever one active key. The UI allows one standby
key at a time.
- Create a standby key (ES256 by default, HS512 optional), rotate the
standby key to active, revoke a standby key, or move a revoked key back
to standby.
- The key list reports JWK types (`EC`, `oct`), which are mapped to
ES256 and HS512 labels. Unrecognized types fall back to the raw value.
- Telemetry: `storage_url_signing_key_created` and
`storage_url_signing_key_updated` (with a `change` property), fired when
the action succeeds.
- A "Created at" column is not included yet because the keys endpoint
doesn't return it. It will follow in a later PR.

<img width="1272" height="846" alt="Screenshot 2026-10-23 at 11 43 45"
src="https://github.com/user-attachments/assets/980742ed-6c4e-43d1-b170-847e550fde4c"
/>


## Review instructions

1. Open the preview and go to Storage > URL signing keys on a project.
2. Create a standby key, then rotate it to active. The previous active
key should move to standby.
3. Revoke the standby key (type its ID to confirm), then move it back to
standby from the revoked table.
4. Compare the table styling with Project Settings > JWT Keys.
5. Check that creating a standby key and moving a revoked key to standby
are disabled while a standby key exists.

## Checklist

Check all before review:

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

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2026-10-26 16:39:39 +00:00
Meg Corren 59eb42594a Add Meg Corren to humans.txt (#52203)
Meg Corren is a new Product Manager covering branching!

## Problem

The problem is Meg didn't used to work here, and therefore wasn't on
`humans.txt`.

## Solution

The solution was bringing Meg onto the team and therefore, adding her to
`humans.txt`

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

n/a 😄 

## 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-26 09:26:47 -07:00
Alexis Aguilar fe599e8c0e docs(auth): add guide for testing auth flows without email and SMS limits (#52118)
Found during my dogfooding project :)

## Problem

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

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

## Solution

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

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

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

## Verification

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

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

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

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

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

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

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

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

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

### Self-review

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

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

## Follow-up

The [Phone sign-in
guide](https://supabase.com/docs/guides/auth/phone-login) says a user
can request an OTP once every 60 seconds. The hosted test showed a
5-second wait for SMS codes. This PR leaves that sentence as is.
2026-10-26 09:26:38 -07:00
Avinash Sajjanshetty ca34c49cf5 chore(docs): add Avinash Sajjanshetty to humans.txt (#52300)
## Summary

- Adds Avinash Sajjanshetty (i.e. me @avinassh) to
`apps/docs/public/humans.txt`
2026-10-26 09:22:39 -07:00
Monica Khoury c31c7afb1b fix(studio): add latest-version hint to Postgres version field (#52143)
## Problem

On the General settings page, the Service versions card shows the
versions as disabled inputs. When a project is already up to date,
nothing explains that Postgres updates would show up in this section, or
where to learn more.

Resolves FE-4604:
https://linear.app/supabase/issue/FE-4604/add-hint-regarding-database-versioning

## Solution

Adds a subtle description under the Postgres version field, using the
existing `description` prop on `FormItemLayout`:

> This project is already on the latest version of Postgres that
Supabase supports. Updates will appear here when available. Learn more

"Learn more" links to the upgrading guide. It is tertiary information,
so it is a field description and not an admonition (changed after design
feedback).

It only shows when the project is on the latest version, database
upgrades are enabled, and the project is not on a K8s cloud provider.
The condition is one named boolean, `canShowLatestVersionHint`.
Component tests cover the visible case and the hidden cases.

## How to test

1. Run Studio and open a project's General settings page.
2. On a project already on the latest Postgres version, check that the
description appears under the Postgres version field, next to the
"Latest" badge.
3. Click "Learn more" and check that the upgrading guide opens in a new
tab.
4. On a project with an upgrade available, check that only the upgrade
alert shows and the description does not.
2026-10-26 18:20:05 +02:00
Julian Domke 90ba1183de fix(stripe-atlas): change message for simple link (#52323) 2026-10-26 17:13:16 +01:00
973dfa1b97 feat(studio): scope unified logs queries to one edge function (#50954)
Adds an optional `scope` to the unified logs search: fixed filters every
query applies on top of the user's, which the user can't remove. Nothing
sets a scope in this PR, so the Logs page is unchanged. #50957 uses one
to narrow the function Logs tab to one edge function.

A scope uses the same columns and operators as the `filter` URL param,
so any view can narrow logs to one resource without new query code.
Columns the query builder doesn't know match a `log_attributes` key, so
one edge function's logs are:

```ts
{
  filters: [
    { column: 'log_type', operator: '=', value: 'edge function' },
    { column: 'log_type', operator: '=', value: 'edge function runtime' },
    { column: 'function_id', operator: '=', value: functionId },
  ],
}
```

- New `edge function runtime` log type, read from the `function_logs`
source. Its level comes from the console level (`error`/`fatal` count as
errors, `warn`/`warning` as warnings), and its details stay in metadata.
- **Every scan**: the scope's filters apply to rows, counts, the chart
and single-facet queries. Facet scans never drop them, unlike the user's
own filter on the facet's column. Filters on the same column and
operator combine like the URL's (`=` values match any), every group must
match, and a scope replaces the default postgres + edge log types.
- **Fails closed**: a scope condition that can't be built matches no
rows, instead of being dropped like a bad user filter.
- **ClickHouse only**: scoped searches always run on ClickHouse,
whatever `otelUnifiedLogs` says, including downloads and the log detail
panel. The BigQuery queries are unchanged from master and throw on a
scope rather than return rows from outside it.
- `getLogTypeVisibility` offers only the log types a scope fixes.
Otherwise it keeps the new log type out of the filters, since the
project-wide Logs page already shows runtime logs inside each
invocation's detail panel.
- `toQuerySearchParams` and `createUnifiedLogsSearch` attach the scope.
- `UnifiedLogs` works out which log types its queries may use once,
instead of in each of its queries, filters and facets.

### How to test

1. Open the project Logs page with the unified logs preview on. The log
type filter shouldn't offer "Edge Function runtime", and default results
should match master.
2. The scoped behavior is easiest to try on #50957.

### Validation

- Query builder tests: the scope on every count scan, the chart and
facet queries, requests for out-of-scope log types, different operators
on one column, the fail-closed case, BigQuery refusing a scope, and
unscoped queries staying the same.
- Studio typecheck, lint ratchet, Prettier and knip pass on this layer.

### Stack

Merge in order:

1. #50953 — reusable logs table building blocks
2. #50954 — function-scoped unified logs queries
3. #50955 — slimmer function detail layout, header on Overview
4. #50957 — Invocations merged into a function-scoped Logs tab
5. #50958 — Overview errors in the shared logs table
6. #52281 — remove the legacy Overview

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2026-10-26 16:52:15 +01:00
Charis 3e57a9d5fb feat(studio): add FGA grant lint rules and unguarded.migrating ratchet (#52315)
## Problem

Resolves FE-4691.

Builds on #52238, which added `unguarded.migrating` at every call site
that hits an FGA-annotated endpoint. Nothing stops new call sites from
adding to that backlog, nothing checks that `unguarded.byDesign` carries
a real reason, and type suppressions or the untyped
`fetchGet`/`fetchPost` helpers can skip the grant check entirely.

## Solution

Adds a local `fga` ESLint plugin
(`apps/studio/scripts/eslint-rules/fga.cjs`):

- **`fga/no-unguarded-migrating`** (warn, ratcheted): flags each
`unguarded.migrating`. Added to `scripts/ratchet-rules.json` with its
baseline in `.github/eslint-rule-baselines.json`, so the count can only
go down.
- **`fga/unguarded-by-design-reason`** (error):
`unguarded.byDesign(...)` must take a single non-empty string literal.
- **`fga/no-fetch-type-bypass`** (error):
- flags `@ts-ignore` / `@ts-expect-error` / `@ts-nocheck` that would
suppress a grant error on a `get`/`post`/`put`/`patch`/`del` call from
`data/fetchers`: directives targeting the call's first line, an
argument's first line, or the `grant` property;
  - flags imports of the untyped `fetchGet` / `fetchPost`.

Directives on `params` lines inside the init (used today to work around
spec mismatches) aren't flagged, since they can't hide a missing grant.

Existing bypasses are listed in `FETCH_TYPE_BYPASS_EXCEPTIONS` in
`eslint.config.cjs`: the 3 `@ts-ignore` fetch calls and the 15 files
using `fetchGet`/`fetchPost`. Test files are exempt, since they assert
type errors on purpose.

## Testing

- RuleTester suite in `scripts/__tests__/fga-eslint-rules.test.ts`
- `pnpm --filter studio run lint:ratchet` passes; `eslint --quiet` is
clean
2026-10-26 11:36:45 -04:00
Monica Khoury 9ddf227359 fix(studio): clarify free Micro upgrade messaging on Pro upgrade (#51938)
## What
Replaces the "First project included..." admonition in the Pro upgrade
dialog with clearer copy that explicitly calls out the free Nano to
Micro upgrade, and shows it for any org upgrading from Free to Pro
(previously only showed when the org had exactly 1 project).

## Why
Users on the Free plan aren't aware that, after upgrading to Pro, their
first project's compute is already billed at Micro price and can be
switched from Nano to Micro at no extra cost. The old copy didn't make
that clear, and was hidden entirely for multi-project orgs.

Linear: FE-4667

## Testing
1. In Studio, go to an organization on the Free plan.
2. Open Billing Settings -> Subscription -> change plan -> select Pro.
3. Confirm the "Micro Compute included for one project" admonition
shows, with working links to Infrastructure settings and the compute
docs.
4. Repeat with an org that has 2+ projects -> confirm the admonition
still shows (previously it was hidden for multi-project orgs).
2026-10-26 17:24:42 +02:00
Gildas Garcia 8ea3ce7747 Fix: stabilize some long flaky units tests (#52297)
## Problem

Some of our units fail randomly because they can take a bit more than 5
seconds to complete

## Solution

Set their timeout to 10 seconds.
2026-10-26 16:22:58 +01:00
Charis 9391f60ec9 test(studio): add shared permissions mocks and testGrant helper (#52312)
## Problem

Components and fetchers are moving to endpoint-bound FGA grants, so more
tests need to mock `/platform/profile/permissions/v2` and mint grants.
Each test file currently defines its own permissions response type and
mock, and `testGrant` lives inside `guarded-fetch.test.ts`.

Resolves
[FE-4692](https://linear.app/supabase/issue/FE-4692/test-infra-global-msw-handler-for-v2-permissions-and-testgrant).

## Solution

* `tests/lib/permissions-fixtures.ts`: shared `PermissionsV2Response`
type, `ALL_FGA_PERMISSIONS`, `allPermissionsFor(slugs)` (grants
everything at the org level), and `NO_PERMISSIONS`.
* `tests/lib/msw-permissions.ts`: `mockPermissions(response)` and
`mockPermissionsError({ status, message })` on top of `addAPIMock`.
* `tests/lib/test-grant.ts`: `testGrant(endpoint, { variant,
organizationSlug, projectRef, permissionsProjectRef })` for unit tests
of fetchers and query options, moved out of `guarded-fetch.test.ts`.
* Existing tests that mocked the v2 endpoint now use the shared helpers.
`IndirectTaxDeclarationModal.test.tsx` keeps its own `addAPIMock`
because a test asserts the request was served.
* Documented in `apps/studio/tests/README.md` and the
`studio-mock-api-tests` skill.
2026-10-26 10:51:20 -04:00
Charis cb4da25dcd feat(studio): readable type errors for missing or mismatched grants (#52308)
## What

Grant errors from the guarded fetch wrappers (`get`, `post`, …) are now
short and say what went wrong.

Studio sets `noErrorTruncation: true`, so when a grant was missing, or
the init was passed as a variable with the wrong grant, TypeScript
printed the full structural type of the init (several times over). With
a real request body this ran to roughly 11–12k characters per error.

## How

- `CheckedUrl` checks the grant on the `url` argument. TypeScript
reports the first failing argument, so the error now prints the short
path literal plus a `GrantError<"…">` message:
- `This endpoint requires a grant or 'unguarded'. The grant is missing
or may be undefined.`
  - `The grant is for a different endpoint or method.`
  - `This endpoint has no FGA annotation. Remove the grant.`
- `GrantProblem` mirrors `GrantOption`, so the `url` check is never
stricter than the existing init check. The init check (`CheckedInit`) is
unchanged and still enforced.
- `Init`'s constraint includes `grant?: unknown`, so an init like `{
grant }` on an endpoint with all-optional options no longer fails the
weak-type check and falls back to the constraint (which hid the real
grant).
- Init optionality is based on `Init` rather than the checked type, so
calling an annotated endpoint with no init reports the grant message
instead of "Expected 2 arguments".

Every case is now under ~430 characters on both TypeScript 6.0.2 and
7.0.2.

## Testing

- Full Studio typecheck passes on TS 7 and TS 6, so every existing
`@ts-expect-error` in `guarded-fetch.test.ts` still fires and accepted
calls still compile.
- `guarded-fetch.test.ts` passes, including the return-type equality
checks against the raw client.

Resolves FE-4722
2026-10-26 10:51:08 -04:00
Alaister YoungandAlaister Young b0b443c4b3 fix(studio): don't redirect static assets in maintenance mode (#52307)
With `MAINTENANCE_MODE=true`, the catch-all redirect only exempted
`/maintenance` and `/img`. Under a base path on the TanStack build, that
also redirected the SPA's own JS/CSS (`/_vercel/immutable`, `/assets`),
favicons and fonts, so the maintenance page couldn't load. The Next prod
build was unaffected because its assets come from the CDN, but
self-hosted Next was redirecting its `public/` files too.

**Changed:**
- `getMaintenanceRedirects` builds its exclusion from a shared
`MAINTENANCE_PASSTHROUGH_SEGMENTS` list: the maintenance page, build
output dirs (`_next`, `_vercel`, `assets`) and every top-level `public/`
entry
- Matches whole path segments, so `/maintenance-foo` or `/images/...`
now redirect as expected
- `matchRedirect` (the runtime check in `routes/__root.tsx`) uses the
same list, so both runtimes stay in sync
- `/api` and `/_serverFn` still redirect: maintenance takes the backend
offline too, and the maintenance page doesn't need them

**Added:**
- Tests compiling the rule through Next's path matcher and
`@vercel/routing-utils`, with and without `/dashboard`
- A guard test that fails if a new top-level `public/` entry isn't added
to the list

## To test

The `studio-staging` preview for this branch has `MAINTENANCE_MODE=true`
and `STUDIO_FRAMEWORK=tanstack` set, so it runs the TanStack build in
maintenance mode.

- Load any page, e.g. `/dashboard/project/<ref>` or `/dashboard/org`: it
should 307 to `/dashboard/maintenance`
- The maintenance page should render fully, with the logo, styles and
favicon. In the Network tab, everything under
`/dashboard/_vercel/immutable/...`, `/dashboard/favicon/...` and
`/dashboard/img/...` is a 200 with no redirects
- `/dashboard/api/...` requests should still redirect to the maintenance
page
- Optional: with only `MAINTENANCE_MODE=true` (Next build), pages still
redirect and the maintenance page renders

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-10-26 22:20:05 +08:00
Alaister YoungandAlaister Young e6373d2940 fix(studio): serve SPA shell for dotted deep links under base path (#52306)
Under a base path, the TanStack Vercel build rewrote any
`/dashboard/...` URL ending in `.<ext>` to the root to serve static
files. That also caught page deep links whose last segment has a dot, so
hard-loading e.g.
`/dashboard/project/<ref>/storage/files/buckets/my.bucket` returned a
404 instead of the SPA shell (reproducible on supabase.green today).

**Changed:**
- `vercel-spa-routes` now limits the prefix rewrite to the actual
top-level entries of the static output (`_vercel`, `img`, `favicon`,
`fonts`, …), read from Nitro's public dir at build time
- Directories only match with a trailing path, so a page sharing a
directory's name still gets the shell
- Prefixed requests for missing hashed chunks still 404 rather than
returning HTML

## To test

- On the preview, hard-load a storage bucket URL with a dot in the name
(`/dashboard/project/<ref>/storage/files/buckets/my.bucket`) and confirm
the page renders
- Hard-load a few normal deep links, then check the Network tab: JS/CSS
under `/dashboard/_vercel/immutable/...`, favicons and
`/dashboard/img/...` all 200
- `curl -I` a made-up
`/dashboard/_vercel/immutable/<salt>/nitro/missing.js` and confirm a
404, not HTML

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-10-26 22:19:10 +08:00
Kody Jackson 9524afe63c chore(www) - add FAQs entry to www footer (#52310)
## Problem

Missing entry to new FAQs section in the www footer.

## Preview links

TBD
2026-10-26 09:13:56 -05:00
Robert Vojta ffe3f35a42 Add Robert Vojta to humans.txt (#52303)
Onboarding task.
2026-10-26 13:44:16 +00:00
Charis 28e5d2fd64 refactor(studio): migrate search_docs remote MCP tool to a contract (#52305)
Migrates `search_docs` to `RemoteToolContract`. Follow-up to #52226.

- It is the last remote MCP tool that was still gated by
`TOOL_CATEGORY_MAP`.
- Opt-in level is unchanged: always available (`minOptInLevel: null`).
`needsApproval` is `false`.
- Registered in `REMOTE_TOOL_CONTRACTS` and removed from
`TOOL_CATEGORY_MAP`.

No change to what the model sees.
2026-10-26 09:31:45 -04: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
Kody Jackson b123d74008 chore(kb,docs) - migrate migration pages (#52243)
## Problem

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

## Solution

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

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

Updates relevant links elsewhere w/in the app too.

## Preview links


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

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

[www neon
migration](https://zone-www-dot-com-git-kody-devrel-764-remove-mig-a4e53a-supabase.vercel.app/solutions/switch-from-neon)
2026-10-26 08:19:26 -05:00
Kody Jackson 38915f19be chore(www,kb) - add cross links to hosted-postgres page (#52242)
## Problem

We want to do more to promote this page.

## Solution

Adds relevant cross links from other sources.

## Preview links

n/a, atomic changes, not helpful to have preview links
2026-10-26 08:08:08 -05:00
supabase-supabase-autofixer[bot]andgithub-actions[bot] 0d8b819cbc [bot] Decrease ESLint ratchet baselines (#52265)
Automated weekly decrease of ESLint ratchet baselines.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-10-26 09:07:18 -04:00
Kody Jackson 564d724ed7 www(chore) - add in youtube video index to sitemap output (#52239)
## Problem

Adds in a video_index as well for our various YouTube channels. I'll
keep this out of the automated workflow for now just since it requires
an API key and I need to figure out the correct avenue for this.
2026-10-26 08:00:55 -05:00
Charis ac1fa9f1b6 fix(studio): add missing grant to entity search query (#52302)
## Problem

Typecheck and the `DatabaseEntitySearchCommands.test.tsx` unit tests
fail on master. `executeSql` in `entity-search-query.ts` does not pass
the now-required `grant`.

## Solution

Pass `grant: unguarded.migrating`, matching the other `data/database`
queries.
2026-10-26 12:38:25 +00:00
Saxon Fletcher bc9bee459f refactor(studio): extract reusable logs table building blocks (#50953)
Extract shared logs tables and query helpers. Validate query parameters and preserve defaults, keep custom preview footers independent of pagination, and cover preview behavior and omitted log counts.
2026-10-26 13:06:29 +01:00
Charis 254e24b170 feat(studio): require grants in fetch wrappers for FGA-annotated endpoints (#52238)
## Problem

Resolves FE-4689 and FE-4690.

Builds on #52105. Studio's fetch wrappers don't know which FGA
permissions an endpoint requires, so a UI guard and the request it
protects can drift apart. This makes the `grant` minted by
`useGrant`/`getGrant`/`ensureGrant` part of the request itself: calling
an annotated endpoint without a matching grant is a compile error.

## Solution

### What changed

- **Fetch wrappers** (`data/fetchers.ts`, `data/guarded-fetch.ts`):
`get`/`post`/`put`/`patch`/`del` keep their names, so no imports change.
- The `grant` option is required for endpoints annotated with
`x-fga-permissions`, and forbidden for unannotated ones.
- It accepts a `Grant` for that exact endpoint (or one of its variants)
or `unguarded`.
  - The wrapper strips the grant before calling openapi-fetch.
  - `head`/`trace`/`options` are unchanged.
- **Owned params**: refinements can declare query params the wrapper
sets from the grant's variant (`ownedQuery`). These params are removed
from the init type (`Omit<Query, Owned> & { [K in Owned]?: never }`), so
callers can't pass them. Nothing uses this yet: the api-keys `reveal`
variant is the first.
- **`assertGrant`** runs in development only and throws
`GrantAssertionError`. It checks:
  - the endpoint;
  - a missing grant;
  - the variant against `when(init)` predicates;
- the path `ref` against the grant's project, also accepting the parent
project ref for a grant minted on a branch;
  - the path `slug` against the grant's organization.
- **Escape hatches**:
  - `unguarded.migrating` for unmigrated call sites.
- `unguarded.byDesign('reason')` for calls that intentionally skip the
check.
- **Grants** now record `permissionsProjectRef`, the ref permissions
were evaluated against. It's required once the scope is resolved.
- **Readable errors**: a missing or wrong grant reports the caller's own
init type plus the expected `grant` type, instead of openapi-fetch's
full options type. Under `noErrorTruncation`, the old message was tens
of KB per call site.
- **`executeSql`** now requires a grant for `POST
/platform/pg-meta/{ref}/query`, so every caller counts as unmigrated.
- **Codemod**: added `grant: unguarded.migrating` at every existing call
site that hits an annotated endpoint, including all `executeSql`
callers. No behavior change. A follow-up lint rule ratchets the count
down.
- **Dependencies**: adds `openapi-typescript-helpers` (the version
openapi-fetch already uses) for the helper types. Only openapi-fetch's
unexported `InitParam` is copied locally.

### Type-level notes

- The grant is checked in the parameter type rather than in `Init`'s
constraint. That way `Init` is still inferred from the argument, which
keeps both the return type and the error message tied to the caller's
code.
- The grant is replaced rather than intersected. Intersecting a wrong
grant with the expected one can reduce the init type to `never`, which
then accepts the call.
- `NoInfer<Path>` stops a grant's endpoint from becoming an inference
candidate for the path.

## Review instructions

### Tests

- `data/guarded-fetch.test.ts`:
- Type equality with the raw client: required params and body,
template-literal paths, `parseAs`, `signal`/`headers`, optional-init
endpoints, and `unguarded`. An openapi-fetch upgrade that breaks the
local `InitParam` copy fails typecheck.
  - Negative type cases:
    - a missing or `undefined` grant;
    - a missing init on an annotated endpoint;
    - a grant for a different path or method;
    - any grant or `unguarded` on an unannotated endpoint;
    - a forged grant;
    - params and body still checked;
    - an unknown path.
- `guardMethod` and `assertGrant` runtime behavior, including
branch-parent refs and org slugs.
- Variant and owned-param tests are deferred to the api-keys (`reveal`)
and pg-meta (`read`/`write`) PRs, since no refinements exist yet.

1. Run `pnpm typecheck` and confirm Studio passes. Then remove a `grant:
unguarded.migrating` and check that the error is short and names the
expected grant.
2. Run `pnpm test:studio`.
3. Skim the codemod commit: it only adds `grant: unguarded.migrating`
and the `unguarded` import.

## 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-10-26 07:58:22 -04:00
Charis e38c93e960 feat(studio): block read replica creation when upgrade crosses collation lineage (#52244)
## What

Read replica creation is now blocked when upgrading the primary's
Postgres would cross a collation lineage boundary. The check uses the
upgrade eligibility endpoint, and the lineage boundary logic is ported
from the platform. The blocker shows an admonition asking the user to
upgrade Postgres first, with a link to the upgrade section in General
settings.

- Multiple blockers on the replica dialog now collapse into a single
admonition.
- `useCheckEligibilityDeployReplica` now exposes `isLoading`, `isError`,
`error`, and `refetch`. The dialog shows a skeleton while loading and an
error with a Retry action on failure.

## Notes for reviewers

- Upgrade eligibility only runs for active, healthy projects, so other
projects are not blocked by this check.
- The admonition copy needs a messaging review.

## Testing

- Unit tests for the collation lineage util.
- Component tests for blocker collapsing, the loading state, and
error/retry.

Closes FE-4643
2026-10-26 07:56:40 -04:00
Jeremias Menichelli f4d6d90527 chore: Open new search on ctrl+k and not-found page (#52233)
## Problem

When user press `ctrl` + `k` on docs, with the search v2 experiment
active, the old search opens instead of the new one.

Also, search v2 doesn't open on 404 page.

## Solution

Add missing key handler.

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. Open docs preview with new search experiment enabled
2. Press `ctrl` + `k`, the new search modal should appear
3. Then open a 404 page
4. Make sure that the "Search the page" button opens the new modal too

## 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-26 11:05:24 +01:00
Jeremias Menichelli e0e6a01905 chore: Remove custom ids from md headings (#52230)
## Problem

Markdown for agents hold the custom IDs, which leak into search
embeddings.

<img width="701" height="231" alt="Screenshot 2026-10-23 at 15 07 17"
src="https://github.com/user-attachments/assets/1e79e282-b954-4bf5-850c-8f0074e5b094"
/>


## Solution

Update markdown generation scripts to remove them.

<img width="399" height="297" alt="Screenshot 2026-10-23 at 15 07 11"
src="https://github.com/user-attachments/assets/af5183b8-8585-450b-a624-9127e4babfe8"
/>


<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. Open docs preview link.
1. Go to a page that has a custom id in their headings
1. Open the corresponding markdown file by adding .md extension to the
URL
1. Markdown version of the page should have deleted custom IDs in
headings.

## 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-26 11:04:54 +01:00
Jeremias Menichelli fa9f1baeb4 fix: Trim query texts. Prevent searches with less than two characters (#52220)
## Problem

Currently we are firing searches too early and too often. Analyzing
data, most common cases are people adding spaces while typing, and not
so meaningful two character searches _(see screenshot below)_.

<img width="419" height="460" alt="Screenshot 2026-10-23 at 13 23 17"
src="https://github.com/user-attachments/assets/ead60c12-e558-4584-9108-1b4326846ce0"
/>

This first, makes unnecessary calls to our search function, but second
pollutes data.

## Solution

 - Trim queries before sending them to the search callbacks
- Avoid searches with only two characters, this is configurable on the
consumable side of the components via a `minCharacters` prop which
default is `0`.

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

Open both docs and kb previews, and open the new search experience in
both.

- Write combinations like " au", "au ", or "au" these strings shouldn't
trigger a search call in the network tab
- Once you add a third character that is not a space, a search call
should happen

## 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-26 11:04:10 +01:00
claude[bot]andClaude b2d7ddbdf3 feat(www): add Business Associate Agreement legal page (#52227)
<!-- claude-slack-attribution -->
_Requested by **Nicole Kramer** · [Slack
thread](https://supabase.slack.com/archives/C0161K73J1J/p1792759190025999)_

## Problem

**Before:** there is no Business Associate Agreement (BAA) page in the
Legal Hub.

**After:** a new page at
`/legal/customer-resources/business-associate-agreement`, listed in the
Legal Hub (`/legal`) under Customer Legal Resources, and indexable like
any standard page (no noindex/nofollow, no header rule; the sitemap is
generated from `pages/**/*.tsx`, so it is included automatically).

Adds a versioned BAA page whose text is the Word doc `2026.10.23 -
Supabase - BAA.docx`.

## Solution

Mirrors the Data Processing Addendum page:
`apps/www/pages/legal/customer-resources/business-associate-agreement.tsx`
uses `LegalDocVersions` with a newest-first `versions` array, and the
content is in
`apps/www/data/legal/customer-resources/business-associate-agreement/v1.mdx`.
The doc was converted with pandoc and hand-fixed to the legal MDX
conventions (ASCII quotes, bare URLs, bold defined terms inside quotes,
literal `(i)`/`(a)` paragraphs, `##` numbered section headings). The
doc's title line "Business Associate Agreement" is not repeated in the
MDX because the page renders it as the h1.

**Version and date:** per Nicole, the version and date show only in the
page header ("Version 1 - October 23, 2026", via `effectiveDate:
'October 23, 2026'`), like the rest of the Legal Hub. The doc's two body
placeholder lines ("Version 1 - [Month Day, 2026]" and "Last modified:
[Month Day, 2026]") are removed from the body.

**Two wording edits, both per Nicole:**
1. First paragraph: `(as applicable, "Supabase")` now reads `(as
applicable, "Supabase" or "Business Associate")`.
2. Section 15: `and the "Last modified" date at the top of this BAA will
be updated accordingly.` now reads `and the date at the top of this BAA
associated with the current version of this BAA, will be updated
accordingly.`

**Formatting change, per Nicole:** 10.10, 10.11, 11.1, 11.2 and 11.3
were headings in the Word doc. They are now plain numbered paragraphs,
matching 2.1-2.3 and 10.1-10.9 (markup only, text unchanged). Their body
paragraphs and the nested (i)/(ii)/(a)/(b) paragraphs under 11.2 are
unchanged. Nothing in the repo linked to the removed heading anchors.

Everything else is verbatim from the doc: after applying the two removed
lines and the two wording edits, the docx and MDX have 61 paragraphs
each with 0 differences (title line excluded). The docx has no tracked
changes and no comments.

## Open questions / oddities (wording left untouched)

1. In 11.2 the doc indents (i)/(ii) and (a)/(b) as nested items. Per the
legal MDX convention they render as flat, unindented paragraphs, so the
nesting is not visually represented.
2. Curly quotes are normalized to straight quotes (ASCII convention).
3. The page uses the same `prose` wrapper as the DPA page. There are no
headings containing a literal "(c)", so `legal-prose` is not needed.

## Review instructions

1. Open the Vercel preview for `www` and go to `/legal`. The BAA should
be listed under Customer Legal Resources.
2. Open `/legal/customer-resources/business-associate-agreement` and
compare it with the Word doc. The header should show "Version 1 -
October 23, 2026" and the body should have no version or date lines.
3. Check that the page has no noindex meta tag and no `X-Robots-Tag`
header.

Checks run locally: prettier (repo options, minus the SQL plugin)
passes, the case-hazard script passes, and the docx-versus-MDX text diff
shows 0 differences beyond the known edits. Typecheck, lint and tests
were not run because `pnpm install` fails in this sandbox.

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

https://claude.ai/code/session_01HY4xb77U7SvkyMJP5kPJLs

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-26 19:47:48 +11:00
Gildas Garcia 54a271b0f8 Upgrade sonner to 2x and update toast design (#52003)
## Problem

Two issues:
- There's an accessibility issue with sonner before v2 as it applies
`role="status"` to an `li` element
- The custom Tailwind classes we pass are not applied and once applied
correctly, the design is not what we want

## Solution

- Upgrade sonner to v2 (the aria attribute are now applied to the toasts
container)
- Fix the design, especially the close icon and the upload usages (with
progression)

In all screenshots, the close button is only displayed when hovering the
toast.

<img width="384" height="73" alt="image"
src="https://github.com/user-attachments/assets/c34038f1-30ce-43d7-a031-81727d61592c"
/>

<img width="776" height="156" alt="image"
src="https://github.com/user-attachments/assets/ec27ff42-6887-4b12-a39b-262a3adacf6b"
/>

<img width="385" height="78" alt="image"
src="https://github.com/user-attachments/assets/c6b36ec9-881c-4dbe-a0c0-81b2b2b5053f"
/>

## Review instructions

On [Design
System](https://design-system-hgbzzl10s-supabase.vercel.app/design-system/docs/components/sonner):
- Check each example with extra attention to the loading/promise and
upload ones

On
[Studio](https://studio-staging-1nx2cwequ-supabase.vercel.app/dashboard/),
in the Table Editor:
- Create a new table by importing a CSV file and check there's only one
loading icon while the progress is shown (requires a quite big CSV as
it's fast)
- Then import more data in the new table
2026-10-26 09:45:23 +01:00
Danny White a3a3e2fd82 feat(studio): surface AWS Marketplace on billing and plan chooser (#51122)
## Problem

Studio’s upgrade flow only leads into Stripe checkout. Eligible
customers with an AWS spend commitment can miss the AWS Marketplace path
at commitment time.

## Solution

Keep Stripe checkout alone. Make AWS Marketplace discoverable around
plan commitment:

- Plan chooser: Admonition callout after the plan cards →
`supabase.com/aws-marketplace`
- Billing: quiet “More information” link (`AWS Marketplace`) when the
org is eligible

This supabase.com/aws-marketplace link will go live when the first PR in
the stack (#52198) is merged.

| Plan Chooser | Billing |
| --- | --- |
| <img width="1280" height="1323" alt="Billing Basket Supabase"
src="https://github.com/user-attachments/assets/561b4c4c-246f-4db2-9f2d-12e1f60483b0"
/> | <img width="1280" height="1323" alt="Billing Basket Supabase"
src="https://github.com/user-attachments/assets/3da7b5fe-9c97-4516-8a01-56d131d2e50a"
/> |
| _Unit at bottom of cards_ | _Quiet link under “More information” on
top left_ |

## Review instructions

1. Studio
[Billing](https://studio-staging-git-dnywh-feataws-marketplace-pu-51ddc2-supabase.vercel.app/dashboard/org/_/billing)
(direct-billed Free/Pro) → More information → AWS Marketplace
2. Change subscription plan → Prefer purchasing through AWS Marketplace?
under plan cards
3. Confirm the callout does not appear for partner-billed / non-eligible
orgs
2026-10-26 15:54:15 +11:00
Danny White 8cce0e4ce4 feat(docs): update AWS Marketplace purchase path (#52199)
## Problem

The platform AWS Marketplace guide still sends readers only to the raw
AWS listing. Self-serve Pro/Team and the canonical landing page are easy
to miss.

## Solution

Point the guide at
[supabase.com/aws-marketplace](https://supabase.com/aws-marketplace)
while keeping a direct link to the AWS Marketplace listing. That link
will go live when this stack is merged as it is implemented one PR down,
in #52198.

## Review instructions

1. Open the docs preview for `/docs/guides/platform/aws-marketplace`
2. Confirm the intro links to the Supabase AWS Marketplace page and the
AWS listing
2026-10-26 15:54:15 +11:00
Danny White c5f9403d8a feat(www): add AWS Marketplace landing and pricing FAQ (#52198)
## Problem

Customers with an AWS spend commitment (PPA or EDP) need a clear way to
buy Supabase through AWS Marketplace. Today that path is easy to miss on
marketing surfaces.

## Solution

- Canonical `/aws-marketplace` landing with self-serve (Pro/Team via Buy
with AWS) and private-offer (Enterprise form) paths
- Buy with AWS CTA: our primary `Button`, co-branded procurement URL,
`partner.js`, and `data-awsmp-bwa-*` attributes
- Pricing FAQ item linking to the landing page and public listing
- Older blog post banner pointing at the updated path


| `/aws-marketplace` | `/pricing` | Blog Post |
| --- | --- | --- |
| <img width="1280" height="1323" alt="Supabase on AWS Marketplace"
src="https://github.com/user-attachments/assets/19318bd0-6a07-49e2-8a1f-7c2a827f790a"
/> | <img width="1280" height="1323" alt="Pricing Fees Supabase"
src="https://github.com/user-attachments/assets/7d3278e7-0e5f-4206-8642-d8e8450a2c79"
/> | <img width="1280" height="1323" alt="88266"
src="https://github.com/user-attachments/assets/e0d1b4cc-886e-4858-944a-6792af202e1b"
/> |

## Review instructions

1. Open the [www
preview](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/aws-marketplace)
for `/aws-marketplace`
2. Confirm hero **Buy with AWS** (primary green) opens the AWS
procurement URL with product/seller IDs
3. Confirm **Request a private offer** goes to the Enterprise form
4. Open
[`/pricing`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/pricing)
→ FAQ → “Can I purchase Supabase through AWS Marketplace?”
5. Open
[`/blog/supabase-aws-marketplace`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/blog/supabase-aws-marketplace)
and confirm the banner about the updated path
2026-10-26 15:54:14 +11:00
Anthony Lio 478bd88d35 feat(ui-patterns): underline hoverable code block tokens (#52209)
## Problem

- in docs code blocks, tokens with a type hover look the same as plain
code making it hard to discover

## Solution

Provide a brief description of the change and the key choices you made
when architecting the solution.
Feel free to include screenshots if it includes visual changes.

| state | preview |
| -------|------|
| before | <img width="815" height="283" alt="image"
src="https://github.com/user-attachments/assets/46e7aebe-5ddc-4514-a1a3-5ed78782c9f2"
/> |
| after | <img width="815" height="283" alt="image"
src="https://github.com/user-attachments/assets/46816300-2e10-4f28-b6ed-57e09b1dbebb"
/> |

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. open `/docs/guides/auth/passwords?queryGroups=language&language=js`
2. make sure that `email` and `password` in the `signUp` example show a
dashed underline in the color of the token

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-26 10:09:20 +11:00
Eduardo Gurgel 7e866ef83e docs: warn against subscribing to publish from servers (#51466)
## Problem

Subscribing in Edge Functions opens a connection per worker, inflating
Peak Connections and billed recipients. Point server-side senders to
httpSend()/REST, and clarify that self-send messages are billed as well.

## Solution

Explain where possible that httpSend is an option from a server.

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

Read the docs!

## 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 23:46:48 +00:00
Ali Waseem bdcf8d6091 docs(blog): remove incorrect PgBouncer deprecation notice (#52249)
The 2021 PgBouncer blog post said PgBouncer is deprecated, but it's
still available as the Dedicated Pooler. Replaced the notice with an
out-of-date note that links to the Dedicated Pooler post and the current
connection docs.

Fixes FE-4723
2026-10-23 14:04:41 -06:00
Miranda Limonczenko 07e69b9737 docs: fix broken anchor links (#52181)
## Problem

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

Closes DOCS-1516

## Solution

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

## Preview links

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

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

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

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

</details>

## Review instructions

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

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-23 12:24:57 -07:00
Miranda Limonczenko 3879060a79 test(docs): check anchors in docs E2E link checks (#52174)
Closes DOCS-1254

## Problem

The docs E2E link check only confirms that a docs-owned link resolves to
a page. It strips the `#anchor` first, so a link to a renamed or removed
heading still passes.

For example, on production today:

- `guides/auth/redirect-urls` links to
`reference/javascript/auth-signinwithoauth#sign-in-using-a-third-party-provider-with-redirect`,
which is a tab value, not an element id.
- `guides/database/import-data` links to
`guides/platform/database-size#disk-management`, a heading that no
longer exists.

A full run found 58 broken anchor links on 53 guide pages. See the
[snapshot](https://app.notion.com/p/4015004b775f81538b15c28286177d31).
DOCS-1516 tracks the fixes.

## Solution

For each docs-owned link on a changed page:

- **Link to another page with an anchor:** the target page must have an
element with that `id`, or an `a[name]` with that value. The ids come
from the HTML that the existing status fetch already returns, so there
are no extra requests. Each target page is fetched once per run and
cached.
- **Same-page `#anchor`:** checked against the loaded page.
- **Failures:** each one is a soft assertion that names the page, the
link, and the missing anchor. A link that doesn't resolve reports only
its status, not a second anchor failure.

Pages with a lot of links still finish in time. For example, the
Personal access tokens guide links to over 200 API reference pages, and
checking every one for anchors made its test time out. The check now
downloads a linked page only when one of its links points to a section.

The link filtering moved into a pure `docsOwnedLinkTargets` function
with `node:test` coverage. `e2e/docs` gains a `test` script that runs it
along with the existing scope tests.

This complements #52100, which catches the opposite direction: unchanged
pages that link to a heading the PR removes.

## Manual testing

1. Run the unit tests:

   ```bash
   pnpm -C e2e/docs test
   ```

2. Run the suite against production for a page with a broken anchor and
a page without one:

   ```bash
   cd e2e/docs

DOCS_E2E_PAGE_PATHS=/docs/guides/auth/redirect-urls,/docs/guides/platform/ipv4-address
\
     PLAYWRIGHT_BASE_URL=https://supabase.com \
     pnpm exec playwright test --grep-invert @a11y
   ```
**Note:** A separate PR is cleaning up our anchor links. You can also
break a link locally and test.

3. Confirm `redirect-urls` fails, naming
`#sign-in-using-a-third-party-provider-with-redirect`, and
`ipv4-address` passes.
2026-10-23 12:17:30 -07:00
Kody Jackson 0b403e2dd4 chore(docs) - missing redirect (#52247)
## Problem

Missing redirect for
https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native
which is seeing a fair amount of 404's (~50 in the past 24 hours)
2026-10-23 13:35:47 -05:00
Thor GalleandNik Richers 839406ca4f docs: fix JS syntax errors in the setRoleCustomClaim example in firebase-auth (#35203)
## 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: in an example (setRoleCustomClaim), fix some small JS
syntax errors, and one Firebase Auth type error.

## What is the current behavior?

Copy-pasting the example code currently doesn't give a working JS
script/function.

## What is the new behavior?

/

## Additional context

/

---------

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-10-23 17:45:08 +00:00