Commit Graph
40517 Commits
Author SHA1 Message Date
ana1337x 4ca1ae4217 [create-pull-request] automated change 2026-12-04 23:22:43 +00:00
AnaandAna 9140cc71a4 blog: fix post-quantum table on mobile and add og image (#54659)
## 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?

- Wraps the table in the post-quantum cryptography blog post in a
horizontally scrollable `div`
- Adds `og.png` and `thumb.png` for the post, and `imgSocial` and
`imgThumb` in its frontmatter

## What is the current behavior?

- The table is wider than the column on mobile and is cut off with no
way to scroll
- The post has no social or thumbnail image

## What is the new behavior?

- The table scrolls horizontally inside the post column on narrow
screens
- The post uses one image (2000 x 1050 PNG) for both the social card and
the blog index thumbnail

## Additional context

- Same `overflow-x` wrapper pattern as earlier blog posts
- Checked on the live page at 375px: wrapper width 327px, table width
437px, page width unchanged

---------

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-12-04 18:22:09 -05:00
Wen Bo Xie f80798507d docs: rename to database token access and add Trusted Partner guide (#54578) 2026-12-04 23:03:40 +00:00
Miranda Limonczenko be2763610c docs: split Auth rate limits into a reference page and two how-to guides (#54485)
Closes DOCS-1619

## Problem

Auth rate limits mixes a lookup table with two procedures, so it doesn't
fit the reference template.

## Solution

- Make `auth/rate-limits` a reference page titled `Auth rate limits`.
The `#ip-address-forwarding` anchor that Studio links to stays.
- Move the procedures, unchanged, to two new how-to guides: Change Auth
rate limits and Forward end-user IP addresses.
- Group the three pages under Rate Limits in the navigation.

## Preview links

| Page | Live | Preview |
| --- | --- | --- |
| Auth rate limits |
[Live](https://supabase.com/docs/guides/auth/rate-limits) |
[Preview](https://docs-git-docs-auth-rate-limits-reference-supabase.vercel.app/docs/guides/auth/rate-limits)
|
| Change Auth rate limits | New |
[Preview](https://docs-git-docs-auth-rate-limits-reference-supabase.vercel.app/docs/guides/auth/rate-limits/change)
|
| Forward end-user IP addresses | New |
[Preview](https://docs-git-docs-auth-rate-limits-reference-supabase.vercel.app/docs/guides/auth/rate-limits/ip-forwarding)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

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

## Review instructions

1. Open the Auth rate limits preview. The sidebar shows Limits, Change
limits, and Forward end-user IPs under **Rate Limits**.
2. Open the preview at `#ip-address-forwarding`. The page scrolls to
that section.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-04 14:45:07 -08:00
Miranda Limonczenko 494c7460ed docs: restructure five lookup pages onto the reference template (#54484)
Part of DOCS-1619

## Problem

Five lookup pages predate the reference template from #54454. They're
missing descriptions, mix context into the lookup, or list every entry
in the right-hand table of contents.

## Solution

- Restructure the five pages onto the reference template, with facts
unchanged.
- Add or rewrite each description, and put titles in sentence case.
- Turn the Edge Functions limits lists into tables, and move the 9
status codes to H4s under three categories.

## Preview links

| Page | Live | Preview |
| --- | --- | --- |
| Analytics bucket limits |
[Live](https://supabase.com/docs/guides/storage/analytics/limits) |
[Preview](https://docs-git-docs-reference-rework-supabase.vercel.app/docs/guides/storage/analytics/limits)
|
| Vector bucket limits |
[Live](https://supabase.com/docs/guides/storage/vector/limits) |
[Preview](https://docs-git-docs-reference-rework-supabase.vercel.app/docs/guides/storage/vector/limits)
|
| Realtime limits |
[Live](https://supabase.com/docs/guides/realtime/limits) |
[Preview](https://docs-git-docs-reference-rework-supabase.vercel.app/docs/guides/realtime/limits)
|
| Edge Functions limits |
[Live](https://supabase.com/docs/guides/functions/limits) |
[Preview](https://docs-git-docs-reference-rework-supabase.vercel.app/docs/guides/functions/limits)
|
| Edge Functions status codes |
[Live](https://supabase.com/docs/guides/functions/status-codes) |
[Preview](https://docs-git-docs-reference-rework-supabase.vercel.app/docs/guides/functions/status-codes)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

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

## Review instructions

1. Open each preview next to its live page. The limits and codes match.
2. Open the status codes preview. **On this page** lists the three
categories, not each code.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-04 14:45:07 -08:00
Miranda Limonczenko 6c1a220c28 docs: add the reference template to the style guide (#54454)
Closes DOCS-1612

## Problem

Lookup pages, such as a table of limits or a list of error codes, have
no template, so they vary widely. Some put 81 codes in tables with no
anchors, and others list every code in the table of contents.

## Solution

- Add `templates/reference.md`. It covers the intro, choosing a table or
headings, grouping many entries, notes, and a required Related resources
section, with one full example cut down from Realtime limits.
- Require a lead-in sentence before every list and table in
`02-elements.md`.
- Add the reference row to the template router, a title rule for
reference pages, and a Reference entry in the write-the-docs
content-type gate.

## Preview links

The style guide isn't served on the docs site, so these link to the
rendered files on the branch.

| File | Preview |
| --- | --- |
| Reference template |
[`templates/reference.md`](https://github.com/supabase/supabase/blob/docs/reference-template/apps/docs/style-guide/templates/reference.md)
|
| Lead-in rule |
[`02-elements.md`](https://github.com/supabase/supabase/blob/docs/reference-template/apps/docs/style-guide/02-elements.md#introduce-every-list-with-a-lead-in-sentence)
|
| Template router |
[`03-page-structure.md`](https://github.com/supabase/supabase/blob/docs/reference-template/apps/docs/style-guide/03-page-structure.md#choose-a-template)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

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

## Review instructions

1. Open the reference template preview and read it top to bottom.
2. Compare its example with the [Realtime limits page in
#54484](https://docs-git-docs-reference-rework-supabase.vercel.app/docs/guides/realtime/limits),
which follows the template.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-04 14:45:07 -08:00
supabase-vercel-tedd[bot] 83ab7439fe docs(auth): link the @supabase/ssr release notes from the SSR overview (#54652)
## Problem

The server-side rendering overview warns that the `@supabase/ssr` API
may have breaking changes, but links only the npm package. Readers who
upgrade can't find where each version's changes are published.

Related to
[FDBKIN-7384](https://linear.app/supabase/issue/FDBKIN-7384/provide-clear-release-notes-for-supabasessr-library-updates)
Closes
[DOCS-1876](https://linear.app/supabase/issue/DOCS-1876/link-the-supabasessr-release-notes-from-the-server-side-rendering)

## Solution

The `@supabase/ssr` section of the Server-Side Rendering overview now
points to the package's GitHub repository, its GitHub releases, and its
changelog. It tells readers to read the entries for every version from
the one they use up to the one they install. The text says neither
source labels breaking changes separately: no changelog entry or release
has a breaking-changes heading. Both sources are linked because neither
alone covers every version.

## How to verify

1. Open
https://docs-git-tedd-docs-1876-supabase.vercel.app/docs/guides/auth/server-side#supabasessr.
2. The `@supabase/ssr` section has a paragraph after the
breaking-changes warning, with links to the `supabase/ssr` repository,
its GitHub releases, and its changelog.
3. Each link opens the matching page on GitHub.
4. The paragraph tells the reader to read the release notes before
upgrading.

## Checks

Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm
turbo run lint --filter='[origin/master]'` (0 errors), and `pnpm exec
oxfmt --check` on the changed page. Checked the facts against the
`supabase/ssr` repository (`package.json`, `CHANGELOG.md`,
`release-please-config.json`), its GitHub releases, and the npm registry
entry for `@supabase/ssr`. The three links return HTTP 200. Didn't run
the docs page build, because `build:federated-content` needs GitHub
credentials that the build environment doesn't have.

## Follow-ups

- `apps/docs/content/guides/auth/server-side.mdx:1-4`: the frontmatter
has no `description`, and the page has no `## Related resources`
section, which the explainer template in
`apps/docs/style-guide/03-page-structure.md` expects.

## Checklist

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

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1876](https://linear.app/supabase/issue/DOCS-1876/link-the-supabasessr-release-notes-from-the-server-side-rendering).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-12-04 15:44:49 -07:00
b80fe7d5c7 blog: post-quantum cryptography and your supabase project (#54654)
## 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?

- Adds the blog post "Post-quantum cryptography and your Supabase
project: what to do, and what not to do." to `apps/www/_blog`
- Author: Bil Harmer (`bilharmer`), category `product`, tag `security`,
dated 2026-12-04

## What is the current behavior?

N/A

## What is the new behavior?

- The post is published at
`/blog/post-quantum-cryptography-and-your-supabase-project`
- Covers the December 2 joint statement, what is already protected, what
Supabase is doing, and six steps for users
- Links to the agent prompt at
`/docs/guides/ai-tools/ai-prompts/post-quantum-security-checkup`

## Additional context

- Content copied from the final Notion draft
- No `imgSocial` or `imgThumb` set

---------

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
2026-12-04 17:37:07 -05:00
Alexis Aguilar ae70033e14 feat(docs): nudge approved docs PRs with no activity for 3 days (#54565)
## Problem

Approved docs PRs sit open when nobody merges them. Internal authors
forget to merge after approval, and fork authors can't merge at all.

## Solution

Adds a `Docs PR Tracker` workflow that runs Monday through Friday at
11:00 UTC (6 AM Eastern in winter, 7 AM during daylight saving time).
Its first job comments once on each docs PR that is:

- Open and not a draft
- Labeled `documentation` and targeting `master`
- Approved, with all checks passing
- Without commits, reviews, or comments from people for 3 days (bot
comments and reviews don't count)

The comment mentions the PR author for branch PRs. For fork PRs and PRs
opened by a bot, it mentions the latest approving reviewer with push
access, since those authors can't merge. When the PR has merge
conflicts, the comment says it's ready to merge once they're resolved. A
hidden marker, `<!-- docs-approval-nudge -->`, keeps it to one comment
per PR.

The workflow is named for the tracker rather than the nudge because
later daily jobs, like the inactive-PR reminders, will run in it too.

Manual runs default to a dry run that logs the comments instead of
posting them.

Part of the Docs PR Tracker
([DOCS-1597](https://linear.app/supabase/issue/DOCS-1597)).

## Needs review

- **First run:** a local dry run against open PRs found 9 internal docs
PRs that would get a comment, 4 of them with merge conflicts. They'd all
be nudged on the first scheduled run.
- **The approver lookup uses `authorCanPushToRepository`, not
`authorAssociation`.** `GITHUB_TOKEN` sees private org members as
`CONTRIBUTOR`, so the dry run after merge is the first check of the fork
path with the job's own token.
- **Fork PRs with unauthorized Vercel deploys are skipped.** Vercel's
required checks fail until a Supabase member authorizes the deploy, so
those PRs never pass the checks rule. How the digest handles them is on
[DOCS-1595](https://linear.app/supabase/issue/DOCS-1595).
- **The comment links to `CONTRIBUTING.md#merge-an-approved-pr`**, which
lands in #54091. Merge that one first.
- **"Passing checks" means the head commit's combined status is
`SUCCESS`.** A PR with a pending or failing optional check is skipped.

## Review instructions

1. Read `.github/workflows/docs-pr-tracker.yml`.
2. After merge, run **Docs PR Tracker** from the Actions tab with
**dry_run** selected, and check the log.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-12-04 15:11:48 -07:00
Greg Richardson d546892b70 docs(prompts): post quantum checkup blog alignment (#54655)
Aligns the post-quantum checkup prompt with the final blog post (notes
CA rotation when recommending verify-full, checks network restrictions,
recommends practicing a key rotation)
2026-12-04 16:05:30 -06:00
d27060ca63 docs(branching): remove stale auto-pause claims for idle branches (#52662)
## Problem

The branching docs say idle branches auto-pause and wake on first
request. They no longer do, and it's confusing users.

## Solution

Removed the auto-pause statements from the Branching and Troubleshooting
pages, and pointed users to **Restore branch** for branches they paused
themselves.

## Review instructions

1. Open the preview pages:
[Troubleshooting](https://docs-git-docs-branching-remove-auto-pause-supabase.vercel.app/docs/guides/deployment/branching/troubleshooting)
and
[Branching](https://docs-git-docs-branching-remove-auto-pause-supabase.vercel.app/docs/guides/deployment/branching).
Neither mentions auto-pause.
2. Confirm **Restore branch** is the right action for a paused branch.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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: Meg Corren <supabase@Megs-MacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 21:48:53 +00:00
Alexis Aguilar ee5326124b ci(docs): select the docs smoke tests by file, not by test name (#54577)
## Problem

Docs Production Smoke Tests (`docs-tests-smoke.yml`) select the smoke
tests with `vitest -t "prod smoke test"`, which filters by test name.
Vitest still loads every test file in `apps/docs`, and its JSON report
lists each test the filter left out as `skipped`.

Since #54444, the docs failure alert reads that report and counts a
skipped test as unchecked. The last smoke run's report covered 74 files:
11 smoke tests passed and 467 other tests were skipped. All 467 sit in
the alert's saved list on every run. Nothing is reported wrongly, but
the list is noisy, and the run loads far more than it tests.

## Solution

`test:smoke` selects the smoke tests by file, the same way
`test:nav-checks` does: `vitest --run smoke.test`. Every smoke test
lives in a `*.smoke.test.ts` file, so the report lists only those files.
The name filter is gone: with the file filter in place, it could only
mark a test in a smoke file as skipped.

- **Same tests.** The same 11 tests in the same 4 files run and pass
against production.
- **The alert.** On the first run after this merges, the alert finds no
new or fixed failures, so it posts nothing. The 467 skipped entries drop
out of its saved list.
- **No matching files fails the run.** If the smoke files are renamed so
nothing matches, Vitest exits with "No test files found". The name
filter could pass with every test skipped.
- **Local runs.** `pnpm test:smoke` runs once and exits, like
`test:nav-checks`, instead of starting watch mode.

## Review category (docs PRs only)

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

## Review instructions

1. Run the smoke tests the way the workflow does:
   ```bash
pnpm --prefix=apps/docs run test:smoke --reporter=default
--reporter=json --outputFile.json=smoke-results.json
   ```
   Expect 4 test files and 11 passing tests.
2. Confirm the report lists only smoke tests, with nothing skipped:
   ```bash
jq '[.testResults[].assertionResults[].status] | group_by(.) |
map({(.[0]): length}) | add' apps/docs/smoke-results.json
   ```
   Expect `{"passed": 11}`.

Verified locally:

- The command above against production: 4 files, 11 tests, all passing.
- The alert's parser, `failuresFromVitest`, on the last workflow run's
report and on the new one. The old report gives 467 unchecked tests, the
new one none.
- The alert's comparison on the smoke workflow's saved list with the new
report: no failures added or fixed, and the 467 unchecked entries
cleared.
- The `turbo-scripts` audit on `apps/docs`, and oxfmt.

Resolves
[DOCS-1849](https://linear.app/supabase/issue/DOCS-1849/select-the-docs-smoke-tests-by-file-not-by-test-name)

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-04 14:31:52 -07:00
Greg Richardson 029b6faf0c docs: add post-quantum readiness checkup AI prompt (#54651)
## Problem

We need a place to host a post-quantum security agent prompt which will
act as a CTA for users when we provide advice on how to keep their
projects secure.

## Solution

Add to https://supabase.com/docs/guides/ai-tools/ai-prompts as a short
term solution to get this live today, with the longer term goal of
rolling it into our [agent
skill](https://github.com/supabase/agent-skills).

## Additional context
`/ai-prompts` pages weren't rendering with the `*.md` extension, so I
added a tiny bit of logic to include them. Also modernized the AI
prompts sections as a whole which was quite outdated (pre-skill era).

## Review priority

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

## Review instructions

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

1. Open
[`/docs/guides/ai-tools/ai-prompts`](https://docs-git-docs-post-quantum-security-checkup-supabase.vercel.app/docs/guides/ai-tools/ai-prompts)
and review the overview. See the new post-quantum checkup item.
2. Open
[`/docs/guides/ai-tools/ai-prompts/post-quantum-security-checkup`](https://docs-git-docs-post-quantum-security-checkup-supabase.vercel.app/docs/guides/ai-tools/ai-prompts/post-quantum-security-checkup)
to review the new prompt
3. Open
[`/docs/guides/ai-tools/ai-prompts/post-quantum-security-checkup.md`](https://docs-git-docs-post-quantum-security-checkup-supabase.vercel.app/docs/guides/ai-tools/ai-prompts/post-quantum-security-checkup.md)
to confirm the `*.md` version renders

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-04 15:13:05 -06:00
Kody Jackson 9a27a1542c Remove Kody Jackson from humans.txt (#54639)
removes myself from `humans.txt`
2026-12-05 01:00:03 +08:00
ChloeGarciaMillerand edc2efc849 fix(studio) - fix a11y on ProjectConnection button (#54386)
<!--
Blocked by another PR or an unshipped feature? Keep this PR as a draft,
and replace this comment with:

> [!IMPORTANT]
> This PR relies on #000 being merged first.
-->

## Problem

The "Get connected" interactive button located beneath the "Copy"
control cannot receive keyboard focus.

## Solution

Use DropdownMenuItem instead of a native button to ensure proper focus
handling and keyboard accessibility.

<!--
## 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 category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

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

## Review instructions

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

1. Open the dashboard in a browser
2. Use the keyboard to navigate to and open the dropdown menu under the
"Copy" button.
3. Press Tab or the arrow keys to navigate to the "Get Connected" menu
item.


## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-04 17:21:21 +01:00
Sam RubertiandSam Ruberti 4ae436fc6c chore(docs): add Sam Ruberti to humans.txt (#54638)
Add Sam Ruberti to humans.txt

Co-authored-by: Sam Ruberti <noreply@supabase.io>
2026-12-04 16:38:28 +01:00
supabase-vercel-tedd[bot] 961022e45c chore(docs): add Rachel Macasek to humans.txt (#54637)
## Problem

`humans.txt` doesn't list a new team member.

## Solution

Adds Rachel Macasek to the team list in `apps/docs/public/humans.txt`,
in alphabetical order by first name.

## How to verify

1. Open
`https://docs-git-tedd-humans-rachel-macasek-supabase.vercel.app/docs/humans.txt`
and confirm that `Rachel Macasek` appears between `Quintin Willison` and
`Rafael Chacón`.
2. Confirm that the diff adds one line and changes nothing else.

## Checks

The only change is one line in a static text file. I checked the diff by
hand and ran no build, lint, or tests.

## Checklist

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

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-12-04 14:59:22 +00:00
supabase-vercel-tedd[bot] f8ee296bfb feat(studio): add a #data-privacy anchor to organization general settings (#54636)
## Problem

There was no way to link straight to the Data privacy section (Supabase
Assistant opt-in level) of an organization's general settings. The link
could only point at the top of the page. The org picker behind
`/org/_/<path>` also dropped any `#hash`, so a link that works without
knowing the org slug couldn't reach a section.

## Solution

The Data privacy section on organization general settings now has the
`data-privacy` id, so Studio's hash scroll handling scrolls to it. The
`/org/_` organization picker now keeps the URL hash when it sends the
user to the chosen org, the same way it already keeps the path and query
string. So `/org/_/general#data-privacy` lands on the opt-in setting for
whichever org the user picks.

## How to verify

1. Open `/dashboard/org/<slug>/general#data-privacy` in the preview: the
page scrolls to the Data privacy section with the Supabase Assistant
Opt-in Level setting.
2. Open `/dashboard/org/_/general#data-privacy`, then pick an
organization: the URL becomes
`/dashboard/org/<slug>/general#data-privacy` and the page scrolls to
Data privacy.
3. Open `/dashboard/org/_/general` with no hash, then pick an
organization: the page opens at the top, as before.

## Checks

Ran `tsc --noEmit` for apps/studio, eslint (both the standard and the
type-checked config) on the changed files, `pnpm exec oxfmt --check` on
the changed files, and `vitest run
components/interfaces/Organization/Organization.utils.test.ts`, which
has new cases for hash handling in `buildOrgUrl`.

## Checklist

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

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-12-04 08:46:39 -06:00
Kody Jackson 0a71f5374c chore(blog,changelog) - convert date <p> to <time> (#54549)
## Context

Moves blog and changelog posts to use similar pattern to docs / kb for
their visible time values (`<p>` -> more semantically correct `<time>`).

Should make LLM indexing more accurate as to published / modified times,
as it moves the date value up a rung in the evaluation for
[htmldate](https://htmldate.readthedocs.io/en/latest/) (semantic html
element directly as opposed to just rendered HTML)

Related to #54493

## Preview links

### Blog


https://zone-www-dot-com-git-kody-devrel-897-blog-chang-b3a30a-supabase.vercel.app/blog/introducing-supabase-knowledge-base
<img width="1431" height="833" alt="image"
src="https://github.com/user-attachments/assets/7837a94b-45cc-40c9-b5e6-93a33f24654a"
/>

### Changelog


https://zone-www-dot-com-git-kody-devrel-897-blog-chang-b3a30a-supabase.vercel.app/changelog/supabase-kt-v4-alpha
<img width="1431" height="833" alt="image"
src="https://github.com/user-attachments/assets/299528c1-33a6-4f79-bae4-5ebd26574607"
/>
2026-12-04 08:41:02 -06:00
Kody Jackson 1e31b1e764 chore(kb) - add article:modified_time og tags (#54540)
Companion to #54493.

## Preview links


https://kb-git-kody-devrel-894-last-modified-times-og-markup-supabase.vercel.app/kb/guides/best-astro-authentication-providers
<img width="1431" height="807" alt="image"
src="https://github.com/user-attachments/assets/d030c8af-e497-4d69-bfc9-416f66007f73"
/>


https://kb-git-kody-devrel-894-last-modified-times-og-markup-supabase.vercel.app/kb/troubleshooting/app-store-rejection-tls-error-in-ipv6-only-environments-4e9c62
<img width="1431" height="807" alt="image"
src="https://github.com/user-attachments/assets/4e7d485a-4f11-47d9-b32a-eff75914905c"
/>


https://kb-git-kody-devrel-894-last-modified-times-og-markup-supabase.vercel.app/kb/faqs/auth/auth0-third-party-auth
<img width="1431" height="807" alt="image"
src="https://github.com/user-attachments/assets/ac1db65a-0087-4aeb-a695-1303039c817d"
/>
2026-12-04 08:40:50 -06:00
Kody Jackson 117ed14409 chore(blog,changelog) - add opengraph article published / modified tags (#54493)
## Problem

Missing `article:published_time` and `article:modified_time` values in
the OG tags which seem to be the first eval by common parsing tools like
https://htmldate.readthedocs.io/en/latest/.

LLMs are influenced by freshness / date indicators... but also
inconsistent. So the best solution here is to throw literally _every_
indication of `hey this page is recent` at LLMs and hope they include it
in their indexing.

Adds to blog pages and changelog pages. Future work should add these to
KB pages.

## Preview links


https://zone-www-dot-com-git-kody-devrel-893-blog-chang-891a53-supabase.vercel.app/blog/introducing-supabase-knowledge-base
<img width="1134" height="738" alt="image"
src="https://github.com/user-attachments/assets/57726183-a47a-4a40-beb6-e8a0edba8805"
/>


https://zone-www-dot-com-git-kody-devrel-893-blog-chang-891a53-supabase.vercel.app/changelog/data-api-faster-jwt-verification
<img width="1134" height="738" alt="image"
src="https://github.com/user-attachments/assets/faeaf979-9a0e-4f45-9eff-033af5d81b57"
/>
2026-12-04 08:40:31 -06:00
supabase-vercel-tedd[bot] a63ccbad12 feat(kb): add last-updated dates to markdown exports (#54538)
## Problem

The Knowledge Base HTML pages show an "Updated" date, but their `.md`
exports had no date. Readers and tools that use the markdown versions
couldn't tell how recent a guide, FAQ, or troubleshooting article was.

## Solution

Every Knowledge Base `.md` export now has a `Last updated: YYYY-MM-DD`
line right under its title and description. It uses the date the HTML
page shows. Guides and FAQs take it from the frontmatter `lastEdited`.
Troubleshooting articles take it from the
`troubleshooting_entries.date_updated` lookup the troubleshooting page
already does, and fall back to frontmatter `lastEdited`. A page with no
date gets no line. A failed database lookup logs a warning, and the
export still builds. The export and the troubleshooting lookup share one
date parser in `format-date.ts`.

## How to verify

1. Open a guide export on the preview, for example
`/kb/guides/best-astro-authentication-providers.md`. Below the
description it reads `Last updated: ` with the date from the HTML page's
"Updated" label.
2. Open an FAQ `.md` export from `/kb/sitemap.md` and check that it has
the same line.
3. Open a troubleshooting `.md` export from `/kb/sitemap.md`. If the
HTML page shows an "Updated" date, the export shows the same day.
4. Run `pnpm --filter kb exec vitest run
scripts/generate-markdown.test.ts src/lib/format-date.test.ts`. It
covers the date line and the date parsing.

## Checks

Ran `vitest run scripts/generate-markdown.test.ts
src/lib/format-date.test.ts` in apps/kb (29 passed), `pnpm turbo run
lint --filter=kb`, `tsc --noEmit -p apps/kb` (no errors in the changed
files), and `oxfmt --check` on the changed files. Ran `tsx
scripts/generate-markdown.ts` locally: every guide and FAQ export got
the line, and the sitemap links are unchanged. A sample troubleshooting
file with no database credentials fell back to its frontmatter date. The
database lookup for troubleshooting wasn't run, because the sandbox has
no credentials.

## Checklist

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

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1838](https://linear.app/supabase/issue/DOCS-1838/add-last-modified-dates-to-md-versions-of-pages).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-12-04 08:10:40 -06:00
Alaister Young 7d0ac7c2f6 [FE-5265] fix(studio): ensure project and org groups on early events (#54536) 2026-12-04 20:52:55 +08:00
supabase-vercel-tedd[bot] d15ec8c93d fix(studio): use the custom domain only after activation completes (#54566)
## Problem

Studio switched project URLs to the custom domain when the Cloudflare
hostname reported `active`, which already happens at
`4_origin_setup_completed`. At that point the platform services don't
accept requests on the custom domain yet. So URLs Studio handed out,
such as the Storage explorer's **Get URL** links, failed until
activation finished.

## Solution

`useProjectApiUrl` now uses the custom domain only when the
custom-hostname status is `5_services_reconfigured`. Before that it
returns the project's own host. Every Studio surface that builds project
URLs reads this hook, so Storage **Get URL**, the Connect sheet, API
settings, and Edge Functions all follow the same rule.

## How to verify

1. Open a project with the custom domain add-on whose domain is in
`4_origin_setup_completed` (verified, not yet activated). In Storage,
click **Get URL** on a file. The copied URL uses the project's
`supabase.co` host.
2. On a project whose custom domain is in `5_services_reconfigured`
(activated), **Get URL** copies a URL on the custom domain.
3. On a project with no custom domain, **Get URL** copies a URL on the
project's `supabase.co` host, as before.
4. `pnpm exec vitest run
data/config/project-endpoint-query.platform.test.tsx` from `apps/studio`
passes. The status-4 case fails without this change.

## Checks

From `apps/studio`: `tsc --noEmit` (passed); `eslint` and the type-aware
`eslint.type-checks.config.cjs` on the changed files (passed); `vitest
run` on the new test plus `ProjectConnectionPopover.platform.test.tsx`
and `TerminalInstructions.platform.test.tsx` (passed). `oxfmt --check`
on the changed files (passed). Checked the status values against
`packages/api-types` (`/v1/projects/{ref}/custom-hostname`) and against
`CustomDomainConfig.tsx`, which treats status 4 as "ready to activate".

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] I have added tests where applicable
- [ ] I have checked that the change works in the preview deployment

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[FE-5306](https://linear.app/supabase/issue/FE-5306/studio-uses-custom-domain-before-domain-is-fully-activated).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-12-04 12:23:44 +00:00
Pedro Rodrigues ae20b4b8e9 docs(mcp): clarify wording on MCP scoped OAuth access page (#54567)
## Problem

Follow-up to #54156. Some wording on the [MCP with scoped OAuth
access](https://supabase.com/docs/guides/integrations/build-a-supabase-oauth-integration/mcp-scoped-access)
page assumes the reader knows how things worked before, like "Unchanged"
in the supported OAuth apps table. A few other spots use terms the docs
don't define anywhere, or name the same grant three different ways.

## Solution

Reword those spots so the page reads on its own for a first-time reader.
No new sections and no heading changes, so anchors stay the same.

- Drop "Unchanged" from the supported OAuth apps table, and define
scoped access before the table instead of after it.
- Separate the two ways to limit projects: `project_ref` in the
connection URL pins the session to one project, while choosing
**Specific projects** on the consent screen limits the token to the
projects the person selected. Replace "project-scoped", "member-bound",
and "selected" grant with "grant that covers specific projects", using
the consent screen label, and use the same wording on [Update your app
for scoped
access](https://supabase.com/docs/guides/integrations/build-a-supabase-oauth-integration/update-for-scoped-access).
"Specific-project grant" read as a single project.
- Read-only SQL applies to any grant from an app with scoped access on,
so say that instead of "project-scoped or member-bound grant", and link
`read_only=true` to the MCP configuration options.
- Replace "Ungated tools", "Account tools stay listed", and the "loop
back to the consent screen" reference that came before the step-up flow
is explained.

## Verification

- `pnpm exec oxfmt --check` on the page passes.
- Preview: [MCP with scoped OAuth
access](https://docs-git-pedrorodrigues-mcp-scoped-access-first-read-supabase.vercel.app/docs/guides/integrations/build-a-supabase-oauth-integration/mcp-scoped-access)
2026-12-04 11:58:52 +00:00
kemal.earth b7d8b2d311 feat(studio): traces tab in unified logs (#54393)
## Problem

Unified Logs can show the logs correlated with a request, but not the
trace behind it. Where time actually went across services isn't visible
anywhere in Studio.

Part 3 of 3, and the one that ships the feature. Builds on the `Trace`
primitives from part 1 and the spans query from part 2.

## Solution

Adds a **Trace** tab to the log detail panel, composed entirely from the
shared `Trace` primitives — header, summary strip, waterfall, inspector
— and ships it as a feature preview.

**Resolving the trace id.** The selected log's own trace id wins. A
related log's id is used only as a fallback, and only when there's
exactly one candidate — picking between several would be a guess. The
ids come from the correlated logs the Timeline tab already fetches, so
the two tabs share a cache entry instead of each making a request.

**Mapping spans.** `RequestTrace.utils.ts` turns the endpoint's spans
into `Trace`'s `Span`/`TraceData` shape. Three things worth noting:

- Span names come from OTel attributes where the raw name isn't useful
on its own — a span named `GET` becomes `GET /rest/v1/orders` from
`http.route`, falling back to the path from `url.full` for outbound
fetches that have no server-matched route.
- `Date.parse` only resolves whole milliseconds, so two spans less than
a millisecond apart would round to the same instant and render stacked.
The fractional part of the ISO string is added back.
- Spans with a missing or invalid start time are counted and reported
rather than dropped silently.

**States.** The tab is always present when the Timeline is, so a request
with no trace shows an empty state rather than a tab that appears and
disappears as the trace resolves. Separate states cover: no trace id, a
trace with no spans, spans that exist but can't be placed, and a failed
fetch. `meta.partial` surfaces as a badge, since a trace can be
incomplete while spans are still being collected.

**Feature preview.** Listed under Observability as "Request traces",
following the same pattern as the Explorer and Storage versioning
previews. Two gates gives the kill switch and the opt-in independently:

- `enableTracesWaterfall` (ConfigCat) controls whether the preview is
listed at all
- The user's opt-in controls the tab, stored in local storage and
preserved across sign-out

It's not default opt-in, so nobody gets the tab without choosing it —
the endpoint is still alpha.

Also removes the temporary `knip.jsonc` entry added in part 2, now that
the query has an importer.

## Review instructions

1. Open the feature preview modal and confirm **Request traces** is
listed under Observability, with a panel describing the feature. Enable
it.
2. Open **Logs** and select a request log that has a trace id.
3. Confirm the **Trace** tab appears beside Timeline, with the header,
the summary strip (trace start, duration, services, depth, span count)
and the waterfall.
4. Select a span and confirm the inspector opens with its attributes and
events.
5. Select a request with no trace id and confirm the tab is still there,
showing an empty state.
6. Turn the preview off and confirm the tab disappears while Timeline is
unaffected.
7. `pnpm --filter studio test
components/interfaces/UnifiedLogs/components/RequestTrace.utils.test.ts
components/interfaces/UnifiedLogs/components/RequestTimeline.platform.test.tsx`

Note the traces endpoint is in alpha: a request only has a trace when
its logs carry a trace ID, so landing on the empty state in step 2 isn't
necessarily this PR misbehaving. The component tests cover every state
against mocked responses.
2026-12-04 11:24:48 +00:00
kemal.earth 82e4becf37 fix(studio): lw banner priority (#54605)
## Problem

The Launch Week 16 banner could be outranked by other banners in the
shared `BannerStack` and pushed out of the front/top slot.

## Solution

Set its `priority` to `Number.POSITIVE_INFINITY` in
`BannerLaunchWeek16.tsx` so it always sorts to the front, regardless of
other banners' priority values.

## Review instructions

1. Trigger the launch week banner alongside at least one other banner.
2. Confirm the launch week banner is always the front/top card in the
stack.
2026-12-04 11:18:11 +00:00
Drew McLellan a91867863b feat(studio): send explorer_banner_exposed at most once per week (#54539)
## Problem

Part of FE-5266 (remove or sample noisy Studio events).
`explorer_banner_exposed` is among the highest-volume Studio events
because it fires once per page load. It only needs to work as the
denominator for the banner's dismiss and click-through rates. Its owner
signed off on capping it at once per user per week.

## Solution

- Keep the existing once-per-page-load guard, then check a last-sent
timestamp in localStorage (new key `EXPLORER_BANNER_EXPOSED_AT`). The
event is sent only if 7 days have passed since the last one, and the
timestamp is updated when it is sent.
- The check lives in `BannerExplorer.utils.ts` with a unit test,
following the existing `BannerFreeMicroUpgrade.utils.ts` pattern. A
missing, invalid or future timestamp counts as due, so a clock change
can't suppress the event indefinitely.
- Update the event's doc comment: it now fires at most once per browser
per week.

"Per user" is approximated per browser, because the timestamp lives in
localStorage. Someone using several browsers, or clearing storage, is
counted more than once, and a shared browser counts as one person. If
storage is unavailable, behavior falls back to once per page load. This
changes what fires, so it is a standalone PR that can be reverted on its
own. The dismiss and CTA events are untouched.
2026-12-04 11:12:48 +00:00
Drew McLellan c452528fcd chore(common): remove unused catalog events (#54537)
## Problem

Part of FE-5266 (remove or sample noisy Studio events). Four events are
defined in the telemetry catalog but nothing in the repo fires them:

- `rls_generate_policies_clicked`, `rls_generated_policy_removed` and
`rls_generated_policies_created`, left over from the generate policies
experiment
- `reports_database_grafana_banner_clicked`

These weren't owned by a specific reviewer. They were announced on
FE-5266 with a Friday cutoff for objections, and no one objected.

## Solution

Remove the four event types and their `TelemetryEvent` union entries
from `telemetry-constants.ts`. There are no call sites, so there is no
runtime change. This is a standalone PR so it can be reverted on its
own.
2026-12-04 11:11:55 +00:00
Pamela Chia 3c905d9e18 feat(studio): track docs link clicks with their destination (#54586) 2026-12-04 18:33:39 +08:00
Pamela Chia 3f005ed135 fix(telemetry): restore www click tracking, remove dead Studio events (#54588) 2026-12-04 18:33:14 +08:00
Pamela Chia e1ed1653a1 chore: make growth-eng the code owner of telemetry files (#54599)
GitHub does not request a Growth Eng review on most telemetry files. The
rules added in #54207 name three paths in `packages/common` and miss the
rest, and everything under `apps/studio` belongs to Dashboard only.
#54536 changes which groups every Studio event carries and when each
event is sent, and GitHub did not request a Growth Eng review on it.

**Changed:**
- **Shared telemetry files**: I replaced the two per-file rules with one
name pattern, `/packages/common/*telemetry*`. It also covers the
telemetry provider, pageview sends, URL redaction, first-touch storage
and their tests, which had no owner.
- **Studio telemetry files**: I added `/apps/studio/lib/telemetry*` and
`/apps/studio/lib/posthog*`, owned by Growth Eng only. These files used
to resolve to Dashboard through `/apps/studio/`, so a Growth Eng
approval is now required to merge a change to them.

**Note:** `apps/studio/lib/telemetry/error-sampling.ts` (error-report
sampling) sits inside the Studio pattern, so Growth Eng becomes its
required approver too.

## To test

- [x] Run `gh api
"repos/supabase/supabase/codeowners/errors?ref=chore/growth-1616-codeowners-studio-telemetry"`,
expect `{"errors":[]}`
- [ ] After merge, open a PR that touches
`apps/studio/lib/telemetry/track.ts` or
`packages/common/telemetry-utils.ts`, expect `@supabase/growth-eng` as
the requested code owner. GitHub reads the owners file from the base
branch, so this cannot be observed before merge.

## Linear
- fixes GROWTH-1616
2026-12-04 17:56:49 +08:00
Joshen Lim b44e9867a9 Joshenlim/fe 5237 disabled vector buckets misleadingly (#54523)
## Context

Adjusts the empty state for vector buckets to show the following instead
of an upgrade CTA
<img width="1055" height="296" alt="image"
src="https://github.com/user-attachments/assets/ae98261f-f936-4f8a-8867-a1b2b21b9740"
/>

Also hides it from the side nav menu if project doesn't have access to
vector buckets
<img width="272" height="179" alt="image"
src="https://github.com/user-attachments/assets/b0a362ba-dace-4189-94db-355b56be60b5"
/>
2026-12-04 15:02:38 +07:00
Joshen Lim 999b6acb56 Add a global translation DOM guard which no ops google translate DOM errors (#54583)
## Context

Another attempt to address the Chrome browser translation DOM crashes
issues (`NotFoundError: Failed to execute 'removeChild' on 'Node'` and
`NotFoundError: Failed to execute 'insertBefore' on 'Node'`)

We previously tried to mitigate this problem by wrapping conditional
texts in spans here: https://github.com/supabase/supabase/pull/52949,
but even after so we're still seeing events for those errors in Sentry
although the numbers have dropped significantly. The main problem from
the user's POV is recovery from DOM crashes which they'll need to
refresh the browser - it's not just annoying but they could lose unsaved
SQL if the crash happened within the SQL Editor.

Attempting to fully mitigate this via React's
[recommendation](https://github.com/react/react/issues/11538#issuecomment-417504600)
to patch `Node.prototype.removeChild` and `insertBefore` which i'll
detail the changes below.

## Changes involved
- Added `lib/translation-dom-guard.ts`, installed once from
`getRouter()`, which It patches `Node.prototype.removeChild` and
`insertBefore` to basically no-op but ONLY when the page is translated
(so real bugs still throw)
- If the error happens on untranslated pages, they will still throw as
before
- The side effect here is just that the UI may show a stale label in
that spot, because React updated or removed a node that Translate had
already replaced, but imo that's alright and better than a full DOM
crash

We can subsequently then monitor Sentry again to see if these 2 errors
_still_ occur, but the main signal that this hopes to drive down is just
to minimize the number of affected users
2026-12-04 15:02:06 +07:00
Joshen Lim 6abbb5700d Joshenlim/fe 5274 re database tables reshuffles the (#54521)
## Context

On Database > Tables, schemas with more than 50 relations reshuffle as
you scroll.
- Tables were paged by `oid`, then the merged list was re-sorted by name
on the client
- Views, materialized views and foreign tables came from three separate
unpaginated queries and were merged into the same sorted list, so the
list was never stable across pages

## Changes involved

Am hence opting to use the same query that we fetch entities in the
Table Editor for the Database > Tables page with a few tweaks
- `TableList` now uses `getEntityTypesSQL` instead of 4 separate queries
to fetch tables, views, materialised views and partition tables
- `getEntityTypesSQL` gets a new `enrich` prop which fetches additional
data that the Database > Tables page requires (e.g column count, row
count, size, etc
- Selecting "Edit" or "Duplicate" actions in the Database > Tables page
will fetch the table's details on demand
- Also fixed searching via `getEntityTypesSQL` to escape `%` and `_` in
`search` with `escapeIlikeLiteral`, otherwise searching `my_table` also
matched `myXtable`

## Performance

As with every change to SQL queries in the dashboard, we benchmark the
performance to ensure that the dashboard never runs a heavy query
against the project's DB. This just benchmarks `enrich` off vs on with
`EXPLAIN ANALYZE` on synthetic schemas of 500, 2,000 and 8,000 tables.
Execution time, median of 5 warm runs:

| Schema tables | limit 50 | limit 200 |
|---|---|---|
| 500 | +7.6 ms | +35.2 ms |
| 2,000 | +8.6 ms | +34.9 ms |
| 8,000 | +8.0 ms | +36.0 ms |

The extra cost is about 0.16 ms per row, the same at every schema size,
and the same on deep pages. It follows the page size, not the schema
size.

## To test

Create more than 50 relations in a schema (tables, views, materialized
views, a partitioned table), then on Database > Tables:

- [ ] Scroll through the list. New rows append at the bottom in
alphabetical order, with views mixed in.
- [ ] Untick and tick entity types. The list filters correctly, and
unticking all shows the empty state.
- [ ] Search `alph_` returns nothing when no name contains `alph_`, and
`zz_alpha` finds the matching rows.
- [ ] Create, edit, duplicate and delete a table. The list refreshes.
- [ ] Table Editor sidebar still lists and searches as before.
2026-12-04 14:49:17 +07:00
Joshen Lim 6de989cc78 Deprecate query insights UI (#54522)
## Context

Just reviving this [PR
here](https://github.com/supabase/supabase/pull/48794?from=linear) which
deprecates the Query Insights UI - there's a lot of conflicts on that
one so just making a new one instead.

No visible changes from a user's POV on the dashboard
2026-12-04 14:48:19 +07:00
Alexis Aguilar 6d14282357 docs: add pull request review section to docs CONTRIBUTING (#54091)
## Problem

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

## Solution

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

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

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

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

## Needs review

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

## Review instructions

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

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-03 18:06:50 -07:00
Mert YEREKAPAN 206430d9b0 feat(studio): restore connect sheet snippet copy tracking (#54398)
The Connect sheet only reports a copy for the Postgres connection string
and one MCP setup step. The Connect dialog it replaced also reported
framework, mobile framework and ORM snippet copies and every MCP
client's copy (#40611); that tracking was not carried over (#44327) and
the dialog was later removed (#47122). I restored it with the existing
`connection_string_copied` event, and added the sheet's command copies
and Copy prompt so the whole sheet is covered.

**Changed:**
- **Framework, mobile framework and ORM snippets**: copying any file tab
in the configure step sends `connection_string_copied` with
`connectionTab` (`App Frameworks`, `Mobile Frameworks` or `ORMs`),
`selectedItem` (the framework or ORM label) and `source: studio`. A
framework added to the sheet later is covered without touching its
content file.
- **Install commands**: the framework, ORM, shadcn and skills install
commands send the same event with `connectionType: Install command`, so
they can be told apart from snippet copies.
- **Claude Code and Codex MCP**: the add-server, authenticate and verify
commands send the event with `connectionTab: MCP`, the client label and
`connectionType: Command Line`.
- **Copy prompt**: sends the existing `ai_prompt_copied` event with a
new `source` value, `connect_sheet`.

**Note:** `lang` carries the client library key (for example
`supabasejs`), as the old dialog sent it, so the restored series lines
up with the data from before March. Filter on `connectionType` to count
snippet copies only: `Framework snippet` for frameworks, absent for ORM
snippets. In Direct mode the install and skills install commands send
the event with `connectionTab: Connection String` and `lang: bash`; the
Direct file examples and Server mode are unchanged. In MCP mode the
skills install command sends nothing, so the `MCP` series only counts
MCP setup copies.

## To test

Tested on the PR preview, with the network tab filtered to the telemetry
event request:
- [x] Open a project, open Connect, keep Framework on Next.js and click
Copy on a file tab in the configure step; expect one
`connection_string_copied` with `connectionTab: App Frameworks`,
`selectedItem: Next.js`, `connectionType: Framework snippet`, `source:
studio`
- [x] Still on Next.js, switch to the `.env.local` tab and copy it;
expect the same event again (one per click)
- [x] Switch the framework to Flutter and copy a file tab; expect
`connectionTab: Mobile Frameworks`, `selectedItem: Flutter`
- [x] Switch to ORM, pick Prisma and copy a file tab; expect
`connectionTab: ORMs`, `selectedItem: Prisma` and no `connectionType`
- [x] Switch to MCP, pick Claude Code and copy the add-server command;
expect `connectionTab: MCP`, `selectedItem: Claude Code`,
`connectionType: Command Line`
- [x] Still on Claude Code, copy the authenticate command; expect the
same properties. Pick Codex and copy add-server, authenticate and
verify; expect `selectedItem: Codex` on each
- [x] In Framework mode copy the install command and the skills install
command; expect `connection_string_copied` with `connectionType: Install
command` and `connectionTab: App Frameworks` for each. In ORM mode copy
an install command; expect `connectionTab: ORMs`, `connectionType:
Install command`
- [ ] In Direct mode copy the skills install command; expect
`connection_string_copied` with `connectionTab: Connection String`,
`connectionType: Install command`, `lang: bash`
- [ ] In MCP mode copy the skills install command; expect no
`connection_string_copied` request
- [x] Click Copy prompt; expect one `ai_prompt_copied` with `source:
connect_sheet` and no `connection_string_copied`
- [x] Switch to Server and copy the env block; expect no
`connection_string_copied` request
- [x] Switch to Direct and copy the connection string; expect exactly
one `connection_string_copied` with `connectionTab: Connection String`
(unchanged behavior, no duplicate)


## Linear
- fixes GROWTH-1532
2026-12-04 10:46:11 +10:00
Alexis Aguilar b66682ee07 ci(docs): scan only the guides production serves in the daily accessibility scan (#54499)
## Problem

The daily Docs Accessibility Scan builds its page list from
`apps/docs/content/guides` on `master`, then loads each page from
production. When production runs behind `master`, every guide merged
since the last production deploy returns 404 and fails the scan, even
though the guide is fine.

On 2026-12-02, the scan failed on 8 guides this way. A deployment freeze
had moved docs production to a temporary `release` branch, so guides
merged to `master` that day weren't deployed. The same thing can happen
outside a freeze, when a guide merges minutes before the scan runs.

## Solution

The scan now tests only the guides production serves. It keeps the
guides from the repo list that also appear in the production sitemap,
`https://supabase.com/docs/sitemap.xml`.

- **Why the sitemap.** The docs build generates `sitemap.xml` from
`content/guides` on every production deploy, leaving out guides the nav
turns off. It isn't cached between builds, so it always lists what
production serves. It needs no new credentials. Today it lists every one
of the 609 guides the scan tests, plus the federated sections the scan
already skips.
- **How it's wired.** `run-e2e-docs.ts --all` filters the list when
`DOCS_E2E_DEPLOYED_ONLY` is set, using the `/docs/sitemap.xml` of the
site in `PLAYWRIGHT_BASE_URL`, so the page list and the scanned site
can't come from different sites. `docs-a11y-scan.yml` sets it. Runs
without the variable behave as before. The filter lives in
`e2e/docs/utils/production-pages.ts`, with unit tests.
- **Skipped guides are listed.** Each guide missing from the sitemap
prints "Skipping `<page>`: not in `<sitemap URL>`." in the run log, and
shows as a warning on the run page even when the scan passes. It's
scanned on the first run after its deploy.
- **Skipped guides keep their earlier results in the alert.** The runner
passes the skipped guides to the a11y failures reporter from #54444,
which lists each one as unchecked. A guide with an open failure that
drops out of the sitemap keeps that failure open, instead of posting as
fixed and then as new when it returns.
- **A real 404 still fails.** A live guide that starts returning 404 is
still in the sitemap, so it's still scanned and still fails.
- **A broken sitemap fails the run.** The run fails when the sitemap
can't be read, lists no guides, or is missing more than a tenth of the
repo's guides. A partial sitemap can't silently shrink the scan.
- **Wrapped tags.** The sitemap's formatter wraps long `<loc>` tags
across lines, as `<loc\n >url</loc\n>`. The parser handles that. A
line-based parse misses about 10 guides.

The workflow header comment and `e2e/docs/README.md` say where the page
list comes from.

### Behavior changes to review

1. **A guide whose nav entry is turned off is skipped, not failed.** The
docs build leaves it out of the sitemap, and production returns 404 for
it. That matches production. It also means turning off a live guide's
nav entry by mistake doesn't fail the scan. The guide shows as a warning
on the run page instead.
2. **Interaction with the failure alert from #54444.** The alert reports
a guide that returns 404 as an `http-404` failure. With this change,
only a guide production should serve can produce that failure. A skipped
guide keeps whatever failures it already had open, so a guide whose nav
entry is turned off stays in the list until it's back or deleted.

## Limitations

- A guide skipped for about two weeks or more loses its commit
attribution if it fails when it returns. The alert reads only the last
500 deployed commits, so it can't tell which commit production was
running when the guide was last checked, and says so.
- `getting-started/features` is in the sitemap even though a static
redirect sends it elsewhere. The scan already skips redirected guides,
so it doesn't affect the scan.

## Review instructions

1. Run `pnpm -C e2e/docs test` and confirm all 63 tests pass.
2. List the scan's tests against the live sitemap:
   ```bash
cd e2e/docs && CI=1 PLAYWRIGHT_BASE_URL=https://supabase.com
DOCS_E2E_DEPLOYED_ONLY=1 \
pnpm run e2e:docs:all --grep @a11y --list | grep -E
'Resolved|Skipping|Total'
   ```
Expect every guide resolved and nothing skipped while production matches
`master`.
3. Run step 2 with `PLAYWRIGHT_BASE_URL=https://example.com`, a site
with no docs sitemap. Expect the run to fail with the sitemap URL and
its status.
4. Add a temporary guide that isn't on production, such as
`apps/docs/content/guides/zz-temp-probe.mdx`, and run step 2 with
`DOCS_A11Y_FAILURES_FILE=/tmp/a11y.json`. Expect "Skipping
/docs/guides/zz-temp-probe", and both `/docs/guides/zz-temp-probe` and
`/docs/guides/zz-temp-probe: http` under `unchecked` in
`/tmp/a11y.json`. Delete the guide afterward.

Verified locally:

- Unit tests, typecheck, oxfmt, and actionlint on the changed workflow.
The unit tests also pass in a copy of the repo with no installed
packages, as CI runs them. The only actionlint warning is the existing
blacksmith runner label.
- Mutation probes on the wrapped-tag parsing, the trailing-slash trim,
the guides-only filter, the missing-share guard, and each of the three
ways a sitemap fails the run: an error status, no guides, and a site
that can't be reached. Unit tests cover all three with a local
`node:http` server.
- A copy of the production sitemap with the 8 guides from the 2026-12-02
run removed. The run skipped exactly those 8 and resolved the rest.
- A temporary guide that's in the sitemap but returns 404 on production.
The scan failed it with "Expected a successful response … got 404".
- Review step 4, after rebasing onto #54444. The skipped guide reached
the reporter as unchecked under its page and status keys. A mutation
probe that drops the skipped guides from the reporter fails the new
test.
- A sitemap with no guides, and one that can't be reached. Both failed
the run before Playwright started.

Resolves
[DOCS-1839](https://linear.app/supabase/issue/DOCS-1839/scan-only-the-pages-production-serves-in-the-daily-docs-accessibility)

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-12-03 17:03:53 -07:00
supabase-vercel-tedd[bot]andalexisintech ac87f00328 docs(functions): explain how a local function reaches the local stack and host services (#54557)
## Problem

When a function runs locally with `supabase start` or `supabase
functions serve`, calls to `localhost` or `127.0.0.1` inside it fail
with "Connection refused". The Edge Functions development environment
page didn't say that the function runs in a Docker container, or how to
reach the local Supabase services and servers on the reader's machine.

Related to
[FDBKIN-6695](https://linear.app/supabase/issue/FDBKIN-6695/document-how-local-edge-functions-can-call-services-on-the-host)
Closes
[DOCS-1853](https://linear.app/supabase/issue/DOCS-1853/explain-how-a-local-edge-function-reaches-the-local-stack-and-services)

## Solution

Adds a "Reach other services from a local function" section to the Edge
Functions development environment page. It explains that `localhost`
inside a local function means the container, points to `SUPABASE_URL`
(and `SUPABASE_DB_URL`) for the local Supabase services, and shows
`host.docker.internal:<port>` for a server on the host, including the
Linux requirement to listen on `0.0.0.0`. Under `supabase start`,
`SUPABASE_DB_URL` uses a `supabase_db_` host that some clients, such as
Postgres.js, can't resolve, so the section says to swap that host for
`db`. A one-line `.env` example keeps the host URL in a local secret, so
deployed code uses a production secret instead. It also drops the claim
under `supabase start` that local development is the exact same
environment as production, which the new section contradicts.

The Postgres tab note on the CLI getting-started page told readers to
reach the database from a function through `host.docker.internal`. It
now says a local function can't reach the database at that URL, and
links to the new section, so both pages give the same advice.

On the Drizzle page, the garbled note in the "Connect" step now says the
`db.ts` sample swaps the `supabase_db_` host for `db` in a local Edge
Function, and links to the new section. The same step now links the
**Connect** panel straight to the **Transaction pooler** URI, since the
panel has no "Shared pooler" option. The `db.ts` comment now says
`prepare: false` disables prepared statements, not prefetch. The page
gets a task title and a description that say what it helps the reader
do. Smaller fixes: the password instruction is plainer, "connection
pooler" is lowercase, a double space is gone, and "Related resources" is
in sentence case.

The Prisma and Postgres.js quickstarts had the same bare title and
"Quickstart" description, so they get task titles and descriptions too,
and the three ORM quickstarts now match. The Postgres.js page uses
"Query" rather than "Connect to", because "Connect to Postgres with
Postgres.js" is over the style guide's 35-character title limit.

## How to verify

1. Open
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/functions/development-environment#reach-other-services-from-a-local-function,
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/local-development/cli/getting-started
(the **Postgres** tab under "Access your project's services"),
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/database/drizzle
(step 3, "Connect"),
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/database/prisma,
and
https://docs-git-tedd-docs-1853-supabase.vercel.app/docs/guides/database/postgres-js.
2. The section states that a locally served function runs in a Docker
container, so `localhost` and `127.0.0.1` in function code mean the
container.
3. Under "Reach the local Supabase services", the section says to use
`SUPABASE_URL` for the local Supabase services, notes it is
`http://kong:8000` locally, and links to the default secrets table on
the secrets page. It says to swap a `supabase_db_` host in
`SUPABASE_DB_URL` for `db` for clients that can't resolve it.
4. The section says to reach a server on the host through
`host.docker.internal:<port>`, and that on Linux the server must listen
on `0.0.0.0`.
5. The example sets `API_URL` in `supabase/functions/.env`. The local
secrets and production secrets links open the matching sections of the
secrets page.
6. The `supabase start` paragraph no longer claims the local environment
is identical to production.
7. The getting-started Postgres tab note no longer mentions
`host.docker.internal`, and its link opens the "Reach the local Supabase
services" section.
8. On the Drizzle page, step 3 says the `db.ts` sample swaps the
`supabase_db_` host for `db` in a local Edge Function, and links to
"Reach the local Supabase services". The **Connect** panel link opens
the **Direct** tab with **Transaction pooler** selected. The `db.ts`
comment mentions prepared statements, and the last heading reads
"Related resources".
9. The Drizzle page's title reads "Connect to Postgres with Drizzle",
the Prisma page's reads "Connect to Postgres with Prisma", and the
Postgres.js page's reads "Query Postgres with Postgres.js". The sidebar
keeps its existing labels for all three.

## Checks

Ran `pnpm exec oxfmt --check` on the changed files. Typechecked the
snippet with `tsc --strict` (with a `Deno` declaration); it was also run
with `deno check`, `deno lint`, and served with `supabase functions
serve` on Linux, where `localhost` and a `127.0.0.1`-bound host server
were refused and `host.docker.internal` to a `0.0.0.0`-bound server
returned 200. Under `supabase start`, Postgres.js failed to resolve the
`supabase_db_` host in `SUPABASE_DB_URL` and connected with the host set
to `db`, and `localhost:54322` from a function was refused. The Drizzle
`db.ts` host check was run under `supabase start` with a project ID that
contains an underscore: it rewrote the host to `db` and a Drizzle query
succeeded. Checked `SUPABASE_URL=http://kong:8000`, `SUPABASE_DB_URL`,
and the Linux `host.docker.internal:host-gateway` mapping against
`supabase/cli` (`apps/cli/src/shared/functions/serve.ts`,
`apps/cli/src/commands/start/start.handler.ts`,
`apps/cli/src/commands/start/services/edge-runtime.service.ts`). Checked
the **Connect** panel labels and its `connectTab` and `method` query
parameters against `apps/studio/components/interfaces/ConnectSheet`, and
`prepare: false` against the Postgres.js source. The ORM quickstart
titles and descriptions follow the style guide's length limits, and each
description matches its page's steps. The navigation sets its own
labels, and no nav entry, breadcrumb, or test reads the old titles.
ESLint ignores MDX files, and the docs build was not run in the sandbox.

## Follow-ups

- `apps/docs/content/guides/database/drizzle.mdx`: the `db.ts` sample is
written for Node (`import 'dotenv/config'`, `process.env.DATABASE_URL`),
but its `supabase_db_` host check only applies inside a Deno Edge
Function under `supabase start`. A reader in either runtime gets a
sample that half fits.
- `apps/docs/content/guides/database/drizzle.mdx`: the page has no value
statement and no next steps. It opens straight into the gerund heading
"Connecting with Drizzle" and ends after the connection step. Step 1
installs `drizzle-kit`, but no step uses it, so the reader can't create
the `users` table from `schema.ts`.

## Checklist

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

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1853](https://linear.app/supabase/issue/DOCS-1853/explain-how-a-local-edge-function-reaches-the-local-stack-and-services).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: alexisintech <98043211+alexisintech@users.noreply.github.com>
2026-12-03 16:22:21 -07:00
supabase-vercel-tedd[bot]andalexisintech 9ca221ee86 docs(storage): explain which policies a public bucket needs (#54558)
## Problem

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

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

## Solution

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

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

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

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

## How to verify

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

## Checks

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

## Follow-ups

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

## Checklist

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

## Feedback for Tedd

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

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: alexisintech <98043211+alexisintech@users.noreply.github.com>
2026-12-03 16:10:00 -07:00
supabase-vercel-tedd[bot]andalexisintech 7c9b65e21d docs(auth): say where proxy.ts goes in a Next.js project with a src folder (#54556)
## Problem

The Next.js setup in the server-side client guide doesn't say where to
put the `proxy.ts` (or `middleware.ts`) file. The Next.js user
management tutorial tells readers to put it at the project root. In a
project that uses a `src` folder, a file at the project root never runs,
sessions don't refresh, and nothing reports an error.

Related to
[FDBKIN-6704](https://linear.app/supabase/issue/FDBKIN-6704/clarify-middlewarets-file-placement-for-nextjs-ssr-in-documentation)
Closes
[DOCS-1851](https://linear.app/supabase/issue/DOCS-1851/say-where-proxyts-goes-in-a-nextjs-project-that-uses-a-src-folder)

## Solution

The "Hook up proxy" section of the Next.js tab now opens by saying where
the file goes: at the same level as the `app` or `pages` folder, which
is the project root or the `src` folder. It covers `middleware.ts` on
Next.js 15 and earlier, and warns that Next.js silently skips the file
anywhere else. It follows the wording the page already uses for the
`lib/supabase` folder and doesn't repeat the existing rename note.

The Next.js tutorial gets the same placement note in its "Next.js proxy"
step. Its "Supabase utilities" step now also says the `lib/supabase`
folder goes inside `src` in a `src` project, because the `@/` import
alias points there and the proxy import doesn't resolve otherwise.

## How to verify

1. Open
https://docs-git-tedd-docs-1851-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client?queryGroups=framework&framework=nextjs#hook-up-proxy
and
https://docs-git-tedd-docs-1851-supabase.vercel.app/docs/guides/getting-started/tutorials/with-nextjs#nextjs-proxy.
2. The guide's section says to put `proxy.ts` at the same level as `app`
or `pages`: the project root, or the `./src` folder when the project
uses one.
3. The guide's section says `middleware.ts` goes in the same place on
Next.js 15 and earlier.
4. The guide's section says Next.js doesn't run the file from any other
location and shows no error.
5. The tutorial's "Next.js proxy" step says to put `proxy.ts` at the
same level as `app` (the project root or `./src`), and that Next.js
doesn't run it from any other location and shows no error.
6. The tutorial's "Supabase utilities" step says to put the
`lib/supabase` folder at the project root, or inside `./src` when the
project uses one.

## Checks

Ran `pnpm turbo run lint --filter='[origin/master]'` and `pnpm exec
oxfmt --check` on the changed files. The change is MDX prose only, so no
typecheck or tests cover it. Facts checked against the Next.js
`proxy.js`, `middleware.js`, and `src` folder references and the Next.js
build source. They were confirmed with `next build` and `next start` on
test projects with the files in and out of `src`, including
`create-next-app` scaffolds with and without `--src-dir`.

## Checklist

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

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1851](https://linear.app/supabase/issue/DOCS-1851/say-where-proxyts-goes-in-a-nextjs-project-that-uses-a-src-folder).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: alexisintech <98043211+alexisintech@users.noreply.github.com>
2026-12-03 16:08:41 -07:00
Miranda Limonczenko 1bdb8d849f docs: apply the quickstart template to the remaining quickstarts (#54502)
Closes DOCS-1616

## Problem

The remaining quickstarts don't follow the [quickstart
template](https://github.com/supabase/supabase/blob/docs/quickstart-template/apps/docs/style-guide/templates/quickstart.md)
either.

## Solution

- **Heading IDs:** each numbered step ends with the template's ID, such
as `[#create-the-client]`.
- **Heading wording:** eight headings now use the template's wording,
such as `Create the Supabase client`.
- **Style:** the prose follows the word list and elements rules.

**Not changed:** RedwoodJS, Spring Boot, and Refine. DOCS-1624 covers
them.

**Before and after:** numbered headings that use the template's wording.

| Page | Before | After |
| --- | --- | --- |
| iOS | 5/8 | 6/8 |
| Kotlin | 4/8 | 5/8 |
| Flask, Flutter, Unity | 5/7 | 6/7 |
| Expo | 6/7 | 7/7 |
| Reflex | 7/7 | 7/7 |
| Laravel | 3/7 | 3/7 |
| Rails | 3/6 | 3/6 |

**Possible errors, not changed:**

- The iOS page opens **Xcode > New Project > iOS > App**. Xcode's menu
might be **File > New > Project**.
- The Vue page says to drop a type import that `supabaseClient.ts`
doesn't have.

## Preview links

| Page | Preview |
| --- | --- |
| Flask |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/flask)
|
| Reflex |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/reflex)
|
| Expo React Native |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/expo-react-native)
|
| Flutter |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/flutter)
|
| iOS SwiftUI |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/ios-swiftui)
|
| Kotlin |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/kotlin)
|
| Unity |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/unity)
|
| Laravel |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/laravel)
|
| Ruby on Rails |
[Preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/ruby-on-rails)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

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

## Review instructions

1. Open the [Kotlin
preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/kotlin)
and click **Create the Supabase client** in the table of contents. The
URL ends in `#create-the-client`.
2. Open the [Laravel
preview](https://docs-git-docs-quickstart-rework-other-supabase.vercel.app/docs/guides/getting-started/quickstarts/laravel)
and click the **Run the database migrations** link in step 4. The page
scrolls to step 7.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-03 14:40:59 -08:00
Miranda Limonczenko c5057afe5e docs: apply the quickstart template to the web framework quickstarts (#54501)
Part of DOCS-1616

## Problem

The web framework quickstarts don't follow the [quickstart
template](https://github.com/supabase/supabase/blob/docs/quickstart-template/apps/docs/style-guide/templates/quickstart.md)
from #54496.

## Solution

- **Heading IDs:** each numbered step ends with the template's ID, such
as `[#query-data]`.
- **Heading wording:** five headings now use the template's wording,
such as `Query data from the app`.
- **Style:** the prose follows the word list and elements rules, and
`/ui` links point to `/library`.

**Before and after:** numbered headings that use the template's wording.

| Page | Before | After |
| --- | --- | --- |
| Astro (pilot) | 4/8 | 6/8 |
| TanStack Start | 4/7 | 5/7 |
| Next.js | 4/6 | 5/6 |
| Hono | 5/7 | 5/7 |
| Nuxt, React, SolidJS, SvelteKit, Vue | 7/7 | 7/7 |

**Not measured:** search top-k. The eval scorer can't score a preview.

## Preview links

| Page | Preview |
| --- | --- |
| Astro |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/astrojs)
|
| Hono |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/hono)
|
| Next.js |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/nextjs)
|
| Nuxt |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/nuxtjs)
|
| React |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/reactjs)
|
| SolidJS |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/solidjs)
|
| SvelteKit |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/sveltekit)
|
| TanStack Start |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/tanstack)
|
| Vue |
[Preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/vue)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

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

## Review instructions

1. Open the [Astro
preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/astrojs)
and click **Query data from the app** in the table of contents. The URL
ends in `#query-data`.
2. Compare the [React
preview](https://docs-git-docs-quickstart-rework-web-supabase.vercel.app/docs/guides/getting-started/quickstarts/reactjs)
with the [live
page](https://supabase.com/docs/guides/getting-started/quickstarts/reactjs).
Only headings and wording change.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-03 14:40:59 -08:00
Miranda Limonczenko 0708fbf556 docs: add the quickstart template to the style guide (#54496)
Closes DOCS-1609

## Problem

Quickstart pages have no template in the style guide.

## Solution

- **Template:** add `templates/quickstart.md`. Its outline gives each
numbered step a fixed heading ID, such as `[#query-data]`.
- **Router:** add the quickstart row to Choose a template in
`03-page-structure.md`.
- **Old contract:** delete `quickstarts/_template.mdx`.

## Preview links

The style guide isn't served on the docs site, so these link to the
files on the branch.

| File | Preview |
| --- | --- |
| Quickstart template |
[`templates/quickstart.md`](https://github.com/supabase/supabase/blob/docs/quickstart-template/apps/docs/style-guide/templates/quickstart.md)
|
| Template router |
[`03-page-structure.md`](https://github.com/supabase/supabase/blob/docs/quickstart-template/apps/docs/style-guide/03-page-structure.md#choose-a-template)
|

## Review category (docs PRs only)

<!--
If this PR changes docs and you're on the Supabase team, select one
category.
PRs from forks are always reviewed as Low, so you can skip this section.
-->

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

## Review instructions

1. Open the quickstart template preview and read it.
2. Compare its outline with [Use Supabase with
React](https://supabase.com/docs/guides/getting-started/quickstarts/reactjs).
The headings match, except for the IDs.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-12-03 14:40:58 -08:00
supabase-vercel-tedd[bot] b0254cf15d chore(deps): bump ws to 8.23.1 (#54552)
## Problem

`pnpm audit` flags `ws` 8.22.1 for a high-severity advisory: memory
exhaustion through unbounded automatic pong responses (affects `>=8.0.0
<8.23.0`).

## Solution

Bump the transitive `ws` 8.x resolution to 8.23.1 in the lockfile. The
change comes from `scripts/fix-audit-vulnerability.ts ws`, which applied
the bump and confirmed the advisory is gone. No `package.json` or
`pnpm-workspace.yaml` changes, and no permanent overrides.

## How to verify

1. `pnpm install --frozen-lockfile` succeeds.
2. `pnpm tsx scripts/fix-audit-vulnerability.ts --json` no longer lists
`ws`.
3. `pnpm why ws --recursive` shows only patched copies (`ws@7.5.14`,
`ws@8.23.1`).

## Checks

Ran `pnpm tsx scripts/fix-audit-vulnerability.ts ws --json` (status
`fixed`, 8.22.1 → 8.23.1), then `pnpm install --frozen-lockfile`, the
audit listing above, and `pnpm why ws --recursive`. Only
`pnpm-lock.yaml` changed. No typecheck, lint, or tests ran, because no
source file changed; CI runs them on the PR.

## Checklist

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

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[FE-5304](https://linear.app/supabase/issue/FE-5304/bump-a-single-vulnerable-dependency).
Tedd doesn't read comments on this PR.

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-12-03 21:54:57 +02:00
Alexis Aguilar dcf7ea584b chore(github): select Low as the default docs review category (#54561)
## Problem

A docs PR can be opened without a review category. Without one, the docs
team can't tell how quickly it needs a review.

## Solution

Low is now selected by default in the **Review category** section of the
PR template, so every PR has a category. Authors who need a faster
review select another category and clear Low. The template comment says
so.

This replaces a CI check that would have failed docs PRs with no
category (#54092, closed).

Part of the Docs PR Tracker
([DOCS-1689](https://linear.app/supabase/issue/DOCS-1689)).

## Review instructions

1. Open a new PR and confirm **Low** is selected in the **Review
category** section.
2. Read the comment above the categories and confirm the instructions
are clear.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
2026-12-03 12:48:28 -07:00
Alexis Aguilar ccabb68033 fix(docs,examples): keep auth callback redirects within the app (#54500)
## Problem

Several auth callback and email confirmation examples redirect to the
`next` query parameter without checking it. A reader who copies one gets
an open redirect: anyone can send a sign-in link with `next` set to
another site, and the app sends the signed-in user there.

The affected examples are the SvelteKit, Astro, Remix, and Express tabs
of the PKCE flow partial, which all social sign-in pages include, and
the Next.js, Astro, Remix, and Express email confirmation handlers in
the password guide. The SvelteKit and Express tabs had a partial check,
but `//evil.com` and `/\evil.com` still got through. The SvelteKit
confirmation tabs and the Next.js reset tab in the password guide copy
`next` into the URL path. That keeps the user on the same site, but
turns a full URL into a broken path.

The example apps under `examples/` have the same problem. The Next.js
email confirmation route in `examples/auth/nextjs-full` has the same
open redirect. Two SvelteKit example apps copy `next` into the URL path,
which keeps the user on the same site but turns a full URL into a broken
path.

Resolves
[DOCS-1836](https://linear.app/supabase/issue/DOCS-1836/make-the-auth-callback-examples-redirect-only-within-the-app),
[DOCS-1840](https://linear.app/supabase/issue/DOCS-1840/make-the-auth-examples-under-examples-redirect-only-within-the-app),
and
[DOCS-1844](https://linear.app/supabase/issue/DOCS-1844/handle-full-url-and-query-string-next-values-in-the-confirmation).

## Solution

Each example now reads `next` as a URL against the request's own origin.
It keeps `next` only when the result uses `http` or `https`, has the
request's host, and its path doesn't start with `//`, then redirects to
that path. Anything else falls back to `/`.

The examples accept same-site full URLs as well as paths. The signup
email template on the password page sends `next={{ .RedirectTo }}`,
which is always a full URL, so a path-only check would send every new
user to `/`. #51567 proposed a path-only check for the same examples,
and this PR builds on it with full-URL support.

The redirect itself stays relative. An absolute URL built from the
request origin can point to an internal host when the app runs behind a
proxy. `URL.parse()` returns `null` for malformed input, so a bad `next`
value or `Host` header falls back to `/` instead of throwing.

Each check compares the host of `next` with the request's host. Behind a
proxy that terminates HTTPS, Express reports the request as `http`, so
comparing full origins would send every full-URL `next` to `/`. The
redirect carries only the path, so the scheme doesn't affect where the
user lands. Other schemes are rejected, because a URL such as
`custom://example.com/\evil.com` keeps the backslash in its path, and
browsers read `/\evil.com` as another site. The Express examples also
read `next` only when it's a string, because the Express 4 query parser
can return an object.

The Next.js tab of the PKCE partial already stays on the same site, so
it's unchanged. The SvelteKit confirmation tabs and the Next.js reset
tab in the password guide get the same check as the other tabs. On
success they redirect to the checked value. On failure, the SvelteKit
tabs redirect to a fixed error page. The Next.js reset tab now matches
the signup tab, so its redirect no longer carries `token_hash` and
`type`.

The email confirmation routes in three example apps get the same check:
`examples/auth/nextjs-full`, `examples/auth/sveltekit-full`, and
`examples/user-management/sveltekit-user-management`. The user
management example falls back to `/account`, the page its tutorial sends
users to. In the SvelteKit routes, a successful confirmation redirects
straight to the checked value, and a failed one redirects to a fixed
error page. Other query parameters on the confirmation link no longer
carry over. The Next.js example pins TypeScript 5.9.3, because
TypeScript 5.3 has no type for `URL.parse` and `next build` failed its
type check. The SvelteKit tutorial embeds the user management route, so
the tutorial shows the new code.

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

Each handler was extracted by script from the MDX on this branch, on
`master`, and on #51567, then mounted in a minimal app for its
framework. Each app ran against a local Supabase stack in the Compose
sandbox. Confirm handlers got a fresh `generateLink` token hash per
case. PKCE callbacks got a real code from a PKCE magic-link sign-in
through Mailpit, with the code verifier cookie.

Each route ran 12 `next` cases: none, `/welcome`, `/account?tab=1`, a
same-site full URL, `//evil.com`, `/\evil.com`, `https://evil.com/x`,
`javascript:alert(1)`, `http://`, `/<tab>/evil.com`, `/.//evil.com`, and
`/a/..//evil.com`. The same-site full URL uses the origin each server
reports for itself.

| Example | Framework | This branch | `master` |
| --- | --- | --- | --- |
| PKCE partial, SvelteKit tab | SvelteKit 2.70 + adapter-node | pass
12/12 | 2 cases off-site |
| PKCE partial, Astro tab | Astro 7.4 + @astrojs/node | pass 12/12 with
`Astro.*` patched (see below) | 5 cases off-site |
| PKCE partial, Remix tab | Remix 2.17 | pass 12/12 | 5 cases off-site |
| PKCE partial, Express tab | Express 5.3 | pass 12/12 | 2 cases
off-site |
| Password signup, Next.js tab | Next.js 16.5 | pass 12/12 | 5 cases
off-site |
| Password signup and reset, Astro tabs | Astro 7.4 | pass 12/12 each |
5 cases off-site each |
| Password signup and reset, Remix tabs | Remix 2.17 | pass 12/12 each |
5 cases off-site each |
| Password signup and reset, Express tabs | Express 5.3 | pass 12/12
each | 2 cases off-site each |

- `next build` type-checks the Next.js handler. `tsc --strict` reports
the same errors for the Remix and Astro handlers as on `master`.
- Express falls back to `/` on a malformed `Host` header without
crashing.
- #51567 also kept every route on the same site, and sent the same-site
full URL case to `/`.
- The unchanged examples stay on the same site in every case.
- After review, each of the 14 changed blocks ran in Node 22 against 32
`next` values. The cases include Express behind an HTTPS proxy, an
object `next` from the Express 4 query parser, and custom-scheme URLs
with a backslash in the path.
- The SvelteKit signup and reset tabs and the Next.js reset tab also ran
end to end in Node 22, with `redirect` and `verifyOtp` stubbed. A
same-site full URL lands on its path, `/account?tab=1` keeps its query,
and the error page URL has no `token_hash` or `type`. On `master`, the
same cases redirect to `/https://…`, to `/account%3Ftab=1`, and, in the
Next.js reset tab, to a URL that still carries `token_hash`.

### Example apps

Each example app was built and run in the Compose sandbox against a
local Supabase stack. Every case used a fresh signup token, so each
request ran a real `verifyOtp` and set a session cookie. The
`sveltekit-full` example has no build setup of its own, so its route ran
inside the user management app. Each route ran the 12 cases above, plus
the same host on the other scheme and an `ftp://` URL on the same host,
plus an invalid token to check the error redirect.

| Example | Framework | This branch | `master` |
| --- | --- | --- | --- |
| `auth/nextjs-full` | Next.js 16.5 | pass 14/14, error path passes | 5
cases off-site |
| `user-management/sveltekit-user-management` | SvelteKit 2.70 | pass
14/14, error path passes | on-site, but 9 of 12 cases land on a broken
path |
| `auth/sveltekit-full` | SvelteKit 2.70 | pass 14/14, error path passes
| on-site, but 9 of 12 cases land on a broken path |

- `next build` passes. With TypeScript 5.3.3, it fails with `Property
'parse' does not exist`.
- `svelte-check` reports the same 7 errors on this branch and on
`master`, all in the database types and the account form. None are in
the confirm route.
- Behind a proxy without forwarded-host handling, `next start` sees
`localhost:3000`, so a full-URL `next` falls back to the default page
there.

### Found while testing, not changed here

These problems are on `master` too, and they're outside the scope of
this fix:

- PKCE partial, Astro tab: `Astro.request` and `Astro.cookies` don't
exist in an API route, so the callback returns a 500 error. Tracked in
[DOCS-1841](https://linear.app/supabase/issue/DOCS-1841/make-the-astro-oauth-callback-example-run-in-an-api-route).
- Password guide, Remix confirm tabs: `setAll(key, value, options)`
doesn't match the `@supabase/ssr` signature, so no session cookie is set
after confirming. Tracked in
[DOCS-1842](https://linear.app/supabase/issue/DOCS-1842/make-the-remix-email-confirmation-examples-set-the-session-cookie).
- Password guide, Express confirm tabs: no `return` after the success
redirect, so the error redirect also runs. Express 5 logs
`ERR_HTTP_HEADERS_SENT`, and Express 4 exits the process. Tracked in
[DOCS-1843](https://linear.app/supabase/issue/DOCS-1843/stop-the-express-email-confirmation-examples-from-redirecting-twice).
- PKCE partial, Express tab: the callback ignores the result of
`exchangeCodeForSession`, so a missing code or a failed exchange still
redirects to `next`. Tracked in
[DOCS-1845](https://linear.app/supabase/issue/DOCS-1845/send-failed-code-exchanges-to-the-error-page-in-the-express-oauth).
- PKCE partial and password guide, Astro tabs: `setAll` drops the cache
headers that `@supabase/ssr` passes with the session cookies. Tracked in
[DOCS-1846](https://linear.app/supabase/issue/DOCS-1846/apply-the-cache-headers-from-supabasessr-in-the-astro-auth-callback).
- Email templates guide, server-side endpoint example: it redirects to
`redirect_to` without checking it. Tracked in
[DOCS-1847](https://linear.app/supabase/issue/DOCS-1847/check-redirect-to-before-redirecting-in-the-server-side-email-template).
- Next.js examples in the PKCE partial, the password guide, and the
WorkOS and Google sign-in guides: they import the Supabase clients from
`@/utils/supabase/`, but the client guide now creates them in
`lib/supabase/`. Tracked in
[DOCS-1848](https://linear.app/supabase/issue/DOCS-1848/import-the-nextjs-supabase-clients-from-libsupabase-in-the-auth).

## Review category (docs PRs only)

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

## Review instructions

1. Check that each changed example only touches the `next` handling and
its redirect.
2. Check the changed tabs on the preview:
- [GitHub sign-in page on the
preview](https://docs-git-alexisa-docs-1836-supabase.vercel.app/docs/guides/auth/social-sign-in/auth-github):
the callback code for the SvelteKit, Astro, Remix, and Express tabs.
Every social sign-in page includes this partial.
- [Password guide on the
preview](https://docs-git-alexisa-docs-1836-supabase.vercel.app/docs/guides/auth/passwords):
under PKCE flow, every framework tab for signup confirmation and
password reset.
- [SvelteKit tutorial on the
preview](https://docs-git-alexisa-docs-1836-supabase.vercel.app/docs/guides/getting-started/tutorials/with-sveltekit#confirmation-endpoint):
the confirmation endpoint embeds the user management example's route.
3. Check the three confirm routes under `examples/` and the `typescript`
pin in `examples/auth/nextjs-full/package.json`.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
Not used: only code inside existing snippets and example apps changed,
no prose. The snippets were verified with `/test-the-docs`.
2026-12-03 12:16:02 -07:00
Joey Coleman 97736acdad chore(docs): Add Joey Coleman to humans.txt (#54560)
## Problem

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

## Solution

Edited humans.txt to add myself.

## Review category (docs PRs only)

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

## Review instructions

Check lexical ordering

## Checklist

Check all before review:

- [X] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [X] ~If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)~
2026-12-03 13:28:47 -05:00
Snehil ShahandLeandro Pereira 4697c4d836 docs(realtime): document acked broadcast error codes (#51287)
Updates the docs following the changes in
https://github.com/supabase/realtime/pull/2280 as part of
https://github.com/supabase/realtime/releases/tag/v2.140.9:

- Corrects the note on RLS denials not being communicated. It is now
returned as an error code (when `ack` is true).
- Adds a table of the error codes returned to acknowledged broadcasts.

Ref: https://github.com/supabase/realtime/issues/2273

<!--
## Preview links

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

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

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

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

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

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

## Checklist

Check all before review:

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

---------

Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
Co-authored-by: Leandro Pereira <leandro@leandro.io>
2026-12-03 18:18:47 +00:00