mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
create-pull-request/patch
2544
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
e8a82b4db2 |
docs(mcp): document notebook tools for MCP v0.16.0 (#53045)
## Problem [MCP 0.16.0](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.16.0) enables the notebook tools (`create_notebook`, `run_notebook`, `delete_notebook`) alongside `list_notebooks` and `get_notebook`, in the `notebooks` feature group, and [0.16.1](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.16.1) enables that group by default. The MCP docs page doesn't mention them or their confirmations, and the configuration panel has no way to select the group or skip its confirmations. ## Solution Document the Notebooks group on the MCP page in the same format as the other groups: hosted only, not available in local or self-hosted Studio. Add a Notebook confirmations section covering `run_notebook` and `delete_notebook` elicitation and read-only behavior. Add `run_notebook` and `delete_notebook` to `skip_elicitations`, and add a Notebooks recommendation covering the per-run limits (50 query cells, about 1 MB of rows). In the configuration panel and Studio Connect sheet, add Notebooks as a default group for hosted connections only. A `defaultDisabled` flag on each group replaces the hardcoded Storage exclusion, and the notebook skip options appear only while Notebooks is enabled. No docs change needed for the other 0.16.0 and 0.16.1 fixes (feedback `project_id`, project ref hint, `partition_of`, check expressions, EXPLAIN confirmation, edge function paths, notebook URLs in tool outputs). ## Before merge - [supabase/platform#38799](https://github.com/supabase/platform/pull/38799) must ship. Until then, hosted only serves `list_notebooks` and `get_notebook`. - The scoped token permissions table is generated from the platform `mcp-tools-permissions` endpoint, which doesn't list `create_notebook`, `run_notebook`, or `delete_notebook` yet. ## Verification <img width="838" height="367" alt="image" src="https://github.com/user-attachments/assets/29d1bd4e-5046-4986-9dbb-ed077bdf3a56" /> MCP Docs preview [page](https://docs-git-rodriguespn-ai-1409-mcp-docs-v0-16-0-supabase.vercel.app/docs/guides/ai-tools/mcp) Closes AI-1409 |
||
|
|
b703085582 |
Update access-control.mdx (#34900)
Just being extra cautious to make it clear that developer role has full content access. Previous wording could be interpreted as read access to content. Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
189adda99d | chore(self-hosted): update 2026-11-05 - 0.8.4 (#53017) | ||
|
|
eb11eac398 |
docs(backups): PITR is available on all compute sizes (#52948)
## Problem The PITR docs still mention a Small compute requirement, which is no longer needed (see #52553). The restore section also doesn't clearly explain what happens to changes made after the selected restore point. ## Solution - Clarified that PITR is available on all compute sizes. - Added a warning that changes made after the selected restore point won't be included. - Recommended restoring to a new project first to preserve current data. <img width="731" height="103" alt="Screenshot 2026-11-04 at 16 17 52" src="https://github.com/user-attachments/assets/753d9e4f-f90b-419f-8f92-fe64330d7db4" /> <img width="796" height="204" alt="Screenshot 2026-11-04 at 16 19 54" src="https://github.com/user-attachments/assets/1a82c503-82be-4d2c-a6ba-98d10664850f" /> <!-- ## 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. Open the PITR section in the docs preview. 2. Verify the compute requirement is updated. 3. Check that the restore warning and link are included. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Co-authored-by: jenniekibiri <joshphatje@gmail.com> |
||
|
|
ab54becc60 |
docs(storage): move url signing keys to dedicated page (#52954)
## Problem Details about URL signing keys are embedded in the downloads page, but it is a broader security related topic that applies to both uploads and downloads. There is no signed URL guidance in the Standard Upload section ## Solution - Move details about URL signing keys to a dedicated page under the storage>security tab (content mostly the same) - Replace URL signing key details in downloads page with a brief blurb and a link (keep header in case it has been hot linked) - Add link to URL signing key details to resumable upload > signed url section - Add signed URL details to standard upload page, and similarly link to url signing key page - Update link in URL signing key page of dashboard to point to new dedicated URL Signing key page ## Additional context Follow up to: https://github.com/supabase/supabase/pull/52522 --------- Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> |
||
|
|
c1da930c40 |
chore(www) - crosslink + footer for dbarena.com (#52732)
## Problem dbarena.com launch, but not tied into other relevant areas of blog or www ecosystem. ## Solution Adds to the footer + some relevant cross-links from older blog posts. ## Preview links TBD |
||
|
|
9dfece25cc | fix(self-hosted): leave CORS on /functions/v1 to the function (#52709) | ||
|
|
6891fc4cc6 |
docs: cross-link RLS and signing keys to the pages readers look for (#52670)
## I have read the CONTRIBUTING.md file. YES ## What kind of change does this PR introduce? **Docs fix: three missing or buried cross-links.** Readers who need Securing your API, custom claims and role-based access control, or the API key migration guide land on Row Level Security or Signing keys and stop there, because those pages do not point clearly to the page they need. This PR adds a tip near the top of Row Level Security, one link in its `auth.jwt()` section, and two links on Signing keys. It changes links and one sentence each, nothing else. Closes DOCS-1572. ## What is the current behavior? - Linear item: Cross-link RLS and signing keys to the pages readers are looking for - The IA scoring v2 comparison on the live site (2026-11-01) found three findability tasks that fail under both the production nav and Option 1. A nav change does not fix them. | Agent lands on | Should reach | Runs that miss (production / Option 1) | | --- | --- | --- | | Row Level Security | Custom claims and RBAC | 9 / 9 of 10 | | Row Level Security | Securing your API | 10 / 10 of 10 | | Signing keys | Migrating to new API keys | 9 / 9 of 10 | - Row Level Security already links to Securing your API in passing and in its related list, but not where a reader decides to stay or leave. ## What is the new behavior? | File | Change | | --- | --- | | `guides/database/postgres/row-level-security.mdx` | Tip after the opening admonition, with "refer to": Securing your API for what the Data API exposes, Custom claims and RBAC for role-based policies. One more RBAC link in the `auth.jwt()` section. | | `guides/auth/signing-keys.mdx` | Link to Migrating to new API keys in the intro and in the step that tells readers to switch to publishable and secret keys. | ## Additional context - Worktree: `~/GitHub/supabase/supabase-worktrees/nikrichers/docs-1572-cross-link-rls-and-signing-keys-to-the-pages-readers-are` - The `<Admonition type="tip">` matches the admonition syntax already on the page. | Check | Result | | --- | --- | | Target pages exist | Pass, all three | | Prettier, stand-in check on both files | Pass | | Repo `pnpm run format` | Not run locally: `pnpm install` needs Node 22.23.4 or later. CI runs it. | ### Before & After | Page | Before (production) | After (preview) | | --- | --- | --- | | Row Level Security | [production](https://supabase.com/docs/guides/database/postgres/row-level-security) | [preview](https://docs-git-nikrichers-docs-1572-cross-link-rls-an-d0b526-supabase.vercel.app/docs/guides/database/postgres/row-level-security) | | Signing keys | [production](https://supabase.com/docs/guides/auth/signing-keys) | [preview](https://docs-git-nikrichers-docs-1572-cross-link-rls-an-d0b526-supabase.vercel.app/docs/guides/auth/signing-keys) | Both preview pages return 200 and contain the new links. ### Test plan - [ ] Row Level Security shows the tip near the top, and both links open the right pages. - [ ] The `auth.jwt()` section links to Custom claims and RBAC. - [ ] Signing keys links to Migrating to new API keys in the intro and in the switch step. - [ ] After merge: rerun the three affected IA scoring tasks on production, 10 runs each. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
1d50816f47 |
docs: enforce duplicate ID a11y rules and fix duplicates (#52720)
Closes DOCS-1573 ## Problem Recently, @antlio surfaced that our side nav was visually breaking. This is caused by a duplicate-id issue. The docs E2E axe scan reports duplicate `id` attributes as a warning only, so pages with duplicate IDs ship. A full scan of production guides found duplicate IDs on 25 of 586 pages. **Causes:** - **Repeated headings:** a page uses the same heading text twice, for example `#### Example` under two sections. Each heading slugs to the same ID. - **Pricing partials:** three usage pages put `## Pricing` directly above a shared partial that starts with its own Pricing heading. - **Components:** Mermaid diagrams hardcode SVG marker and node IDs. The Apple secret generator renders `id="undefined-optional"` on each field label. Each "Build it" listing on the Supabase way page renders `#build-it`. ## Solution - **Enforce the rules:** add `duplicate-id`, `duplicate-id-active`, and `duplicate-id-aria` to `ENFORCED_RULES`. - **Repeated headings:** give each later duplicate a `[#parent-section-heading]` anchor. The first occurrence keeps its ID. - **Pricing headings:** remove the page heading above the three partials that start with `## Pricing`. The PITR partial starts with `### Pricing`, so it gets `[#pitr-pricing]` and the page keeps its H2. - **Mermaid:** prefix the SVG IDs of each diagram with `useId()`. - **Apple secret generator:** give each field an ID. The label now also points at its input. - **Content listings:** add an optional `headingAnchor` to listing groups, and set it on the repeated "Build it" groups. - **pg_net:** the `http_delete` signature had `[#post-signature]`, copied from `http_post`. It is now `[#delete-signature]`. **Cross-references:** no link in the repo targets a changed ID. Each first occurrence keeps its ID, so existing links resolve to the same heading as before. **Not changed:** the www suite and `packages/ui-patterns`. All fixes stay in `apps/docs`. **Verification:** - Against production, `/docs/guides/platform/manage-your-usage/log-drains` fails the @a11y test with `duplicate-id`. - Against a local docs server, the @a11y test passes on all 28 changed or affected pages. **Unverified:** a full-site run with `A11Y_ENFORCE_ALL=1`. Run it against the preview before merge. ## Review instructions 1. From `e2e/docs`, run the a11y test against production. See it fail with `duplicate-id`: ```bash DOCS_E2E_PAGE_PATHS=/docs/guides/platform/manage-your-usage/log-drains PLAYWRIGHT_BASE_URL=https://supabase.com pnpm exec playwright test --grep @a11y ``` 2. Run the same command with `PLAYWRIGHT_BASE_URL` set to the docs preview URL from the Vercel bot comment. See it pass. 3. On the preview, open `/docs/guides/platform/manage-your-usage/log-drains`. In the table of contents, select **Pricing** under **Log Drain Events**. See the page scroll to the second Pricing section. 4. On the preview, open `/docs/guides/integrations/partner-integration-guide`. See both sequence diagrams render with arrowheads. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
1e26878d7f |
docs: correct gp3 disk throughput price in Compute and Disk guide (#52715)
## Problem The disk types table in the Compute and Disk guide listed gp3 throughput over-usage as $0.95 per MB/s. The Disk Throughput usage page lists $0.095 per MB/s per month ($0.00013 per MB/s-Hr), so the two pages disagreed. ## Solution Change the gp3 throughput price in the table on `guides/platform/compute-and-disk.mdx` from `0.95` to `0.095`. The other table rows only changed whitespace, because Prettier realigned the table columns. Checks run: `pnpm turbo run lint --filter='[origin/master]'` and Prettier `--check` on the changed file. ## Review instructions 1. Open `/docs/guides/platform/compute-and-disk#disk-types` on the docs preview. 2. In the disk types table, the gp3 **Pricing** cell reads "Throughput: 125 MB/s included, then $0.095 per MB/s". 3. The other values in the table (disk $0.125 per GB, IOPS $0.024 per IOPS, io2 disk $0.195 per GB, io2 IOPS $0.119 per IOPS) are unchanged. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) [FE-4887](https://linear.app/supabase/issue/FE-4887/correct-gp3-throughput-pricing-in-compute-and-disk-docs) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
5a1e59eb2e |
docs: add Claude as ID-JAG issuer for MCP Enterprise-Managed Auth (#52021)
## Problem Anthropic now lets Claude issue the ID-JAG for enterprise-managed MCP auth when a customer's identity provider can't. No Supabase code change is needed: the platform already validates ID-JAGs against whichever issuer URL the organization configures. The page called the feature "enterprise-managed authentication." It implements the MCP spec's Enterprise-Managed Authorization extension and is built on an RFC 7523 authorization grant. Authentication stays with the IdP. The Studio field description had the same wrong word. ## Solution **New section, "Using Claude as the ID-JAG issuer."** Covers the Claude-side steps (Organization settings > Connectors > Supabase > Managed authorization > Set up, copy the Issuer URL, leave Tenant ID empty), the Supabase-side step (same ID-JAG Issuer field), and the connection test. Two constraints were verified against our platform code: one issuer per SSO provider so the Claude URL replaces the IdP URL and members need an SSO identity in Supabase. The third, that a Claude-issued ID-JAG attests Claude-org membership rather than an IdP session, comes from Anthropic's partner guide. **Rename to "enterprise-managed authorization."** Page title, headings, body, SSO guide section, nav label (title case, matching sibling entries), and the Studio description. The slug moves to `enterprise-mcp-authorization` with a permanent redirect from the old path in `apps/www/lib/redirects.js`. The Studio "Learn more" link and the two published blog posts that linked the page point at the new slug directly. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Ana <30495040+ana1337x@users.noreply.github.com> Co-authored-by: Ana <ana1337x@users.noreply.github.com> |
||
|
|
e6e5c56264 |
docs(pgvector): fix duplicate heading and code block formatting (#48440)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Docs update — small structural and formatting fixes to `apps/docs/content/guides/database/extensions/pgvector.mdx`. ## What is the current behavior? **Duplicate `## Usage` heading.** The guide has `## Usage` at two places — once above "Enable the extension", and again above "Create a table to store vectors". Anchor IDs are generated from heading text, so both render as `#usage`. The table of contents shows two identical "Usage" entries, and clicking the second one scrolls to the first section. **Untagged code fence.** The iterative-search example uses a bare ``` fence, so it gets no syntax highlighting, unlike every other block on the page. Its SQL is also uppercase, while the rest of the guide (and the docs style guide) uses lowercase keywords. **Stray leading space** before `-- Example: enable the "vector" extension.` inside the enable-extension SQL block. **Typo:** the prose says "Transformer.js"; the library is Transformers.js (the code comment two lines below already spells it correctly). ## What is the new behavior? - Second `## Usage` renamed to `## Storing vectors`, which describes the two subsections it introduces ("Create a table to store vectors" and "Storing a vector / embedding"). The TOC now has unique entries and unique anchors. - Iterative-search fence tagged ` ```sql ` and its keywords lowercased. - Stray leading space removed. - "Transformer.js" → "Transformers.js". Content-only; no components, navigation, or generated output touched. ## Additional context Before renaming the heading I checked for anything linking to the old anchor: ``` grep -rn "#usage" apps/docs/content ``` No in-page or cross-file link targets `pgvector#usage` — the hits are unrelated pages and external URLs — so the rename doesn't break any links. Verified locally against the repo's own tooling: - `supa-mdx-lint` with `supa-mdx-lint.config.toml` → no errors or warnings (the new heading is sentence case, per `Rule001HeadingCase`). - Prettier 3.8.1 with `prettier.config.mjs` and `prettier-plugin-sql-cst` → already formatted, including the newly tagged `sql` block. One thing I deliberately left alone: the JS sample still imports `@xenova/transformers`, which has since been superseded by `@huggingface/transformers`. That's a behavioral change rather than a formatting one, so it felt out of scope here — happy to open a separate PR if you'd like it updated. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
4233c11b66 | docs(self-hosted): explain Functions memory budgets and idle cleanup (#51958) | ||
|
|
042a7fad25 | docs(self-hosted): explain main worker error references (#51811) | ||
|
|
a26ee8b3de |
docs: call out the [inbucket] rename in the CLI v3 migration guide (#52686)
## Problem Supabase CLI v3 fails to load a `supabase/config.toml` that still has an `[inbucket]` section. `supabase init` wrote that section until v2.108.0, so `supabase start`, `stop`, `status` and the `db` commands fail for projects created before then, with: ```text [inbucket] in supabase/config.toml is no longer supported. Use [local_smtp] instead. ``` It is one of the most common v3 upgrade failures, but the [migration guide](https://supabase.com/docs/guides/local-development/cli/migrating-to-v3) only lists it as one row in the removed config keys table. ## Solution - Adds a caution admonition near the top of the guide, before "Before you upgrade", so it's seen before anything else. - Adds a "Rename `[inbucket]` to `[local_smtp]`" section (anchor `#inbucket`) under "Removed config keys and environment variables". It covers the error text, a before/after example, `[remotes.<name>.inbucket]` and `config.json`, and the fact that v2.108.0 and later already read `[local_smtp]`, so projects can rename it before they upgrade. The keys inside the section are unchanged in v3 (`enabled`, `port`, `smtp_port`, `pop3_port`, `admin_email`, `sender_name`), checked against `packages/config/src/removed-config-keys.ts` and `inbucket.ts` on supabase/cli `develop`. v2.108.0 is the first release with supabase/cli#5333, which added `[local_smtp]` to both config loaders. ## Review instructions 1. Open the preview of `/docs/guides/local-development/cli/migrating-to-v3`. 2. Check the admonition renders under the intro, and that its link jumps to the new section. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Tracks CLI-2906 🤖 Generated with [Claude Code](https://claude.com/claude-code) |
||
|
|
88ca61270f |
docs: clarify that the supabase stack commands predate CLI v3 (#52667)
## What kind of change does this PR introduce? Docs fix. ## What is the current behavior? The [Try the experimental `supabase stack` commands](https://supabase.com/docs/guides/local-development/cli/migrating-to-v3#try-the-experimental-supabase-stack-commands) section of the v3 migration guide opens with "v3 includes the experimental `supabase stack` commands". On a page listing v2 to v3 changes, that reads as if the stack commands are new in v3. They were already available in v2 and are still experimental. ## What is the new behavior? The opening paragraph now says the commands were available in v2, that v3 keeps improving them, and that they are still experimental. It also links to the Running multiple local projects guide. The rest of the section is unchanged. Linear: [CLI-2918](https://linear.app/supabase/issue/CLI-2918) ## Additional context The section stays on the page on purpose, to raise visibility of the stack commands for people reading the migration guide. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
0e0f84ac30 |
Remove MGMT API examples (#52676)
Updated log configuration settings to reflect changes in the CLI usage and removed API examples. ## Problem MGMT API overrode previous overrides ## Solution Remove MGMT API references --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> |
||
|
|
fca0f99354 |
docs: move the explain() guide to guides/api/query-plans (#52471)
Closes DOCS-1496 ## Problem The Debugging performance issues page is moved to the Data API as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). The [docs tree tests](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests) in supabase/evals drove the rename. Each test gives an agent a developer goal and only the navigation labels, with no page content and no search. - **The task:** [one test](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests/investigate-tree-036-client-call-execution-plan) asks how to see the plan Postgres uses for a slow supabase-js `.from('orders').select()` call. Its answer is this page. - **Today's label:** the page sits under Database as "Debugging performance issues". That label names a symptom many pages share, not the tool the page teaches. - **The change:** round 4 of the tests split the `explain()` content into its own topic, labeled "Query plans with explain()" and placed in Data API, Tools, next to the other client tools. Option 1 fixed every task its new topics targeted. - **Why the whole page moves:** `explain()` is the only thing the page covers, so a split would leave an empty source. The page takes the topic's label as its title. ## Solution - **Move, not split:** the whole page covers `explain()`, so a split would leave an empty source. The page moves to `guides/api/query-plans`, and the old URL redirects there. The existing `api/rest/debugging-performance` redirect now points straight to the new URL, so there's no chain. - **Anchors:** the four H2s keep their anchors, so the client reference link to `#enabling-explain` resolves through the redirect. The two H3s, Example data and Expected response, are gone. Nothing links to them. - **Navigation:** both entries in today's navigation point to the new URL, with the label "Query plans with explain()". In Option 1, the Data API, Tools entry points to the new page, and the Database entry is gone, since it would list the page twice. This was the last Option 1 topic that linked to a section of its source page, so the test that tracked those topics is removed. - **Inbound link:** Realtime reports links to the new URL. - **Cross-links:** the page links Query Performance for finding slow queries, Query optimization for plans of SQL you run yourself, Row Level Security performance for slow policies, and the `explain()` client reference. Query optimization and Row Level Security performance link back to it. - **Guide shape:** a value-statement opener with the reason `explain()` is off by default, and the sample table before the query that reads it. The SQL samples have no comments, and the `format` option has an example. Production readers are told to set up the filter before enabling, and the options paragraph warns that `analyze` on a write changes data. - **Row Level Security performance:** the caution about restricting plans now sits above the step that enables them. - **Sample fix:** `pgrst.db_pre_request` holds one function, so the production step now checks for an existing one and says to call the filter from it. The disable step clears the pre-request setting only for readers who set the filter directly. The filter function sets `search_path`, so the Security Advisor doesn't flag it. It matches the `Accept` header case-insensitively anywhere in the list, because PostgREST accepts `Application/vnd.pgrst.plan+text` and the old prefix check let it through. The check for an existing pre-request function reads `pg_db_role_setting`, which also shows per-database settings that `pg_roles.rolconfig` leaves out. When both a global and a per-database setting exist, the page says PostgREST uses the per-database one. The function is created and set as `public.filter_plan_requests`, because PostgREST resolves an unqualified name against the requested schema first. After the filter, the page says the Supabase Platform sets `cf-connecting-ip`, and that a self-hosted project needs a header its proxy overwrites. ### Verification `test-the-docs`, local stack, Supabase CLI v2.39.2. Each SQL fence ran in document order. The `supabase-js` calls were checked through the HTTP request they send, with `Accept: application/vnd.pgrst.plan`. | Step | Result | | --- | --- | | Plan request before enabling | 406, as expected | | Enable, then request a plan | 200, text plan, and JSON with `+json` | | Sample table, no extra grant | readable by `anon` | | Pre-request filter with `set search_path = ''`, non-matching IP | 401 `Not allowed to use application/vnd.pgrst.plan`, normal requests 200 | | Filter, mixed-case `Application/vnd.pgrst.plan+text` | old filter 200 with a plan, new filter 401; matching IP 200 | | Insert plan with `options=analyze` | row persists after the request; without `analyze`, no row | | Existing-function check with an `in database` setting | `pg_db_role_setting` shows it, `rolconfig` doesn't | | Disable | plan requests 406, normal requests 200 | | `cf-connecting-ip` on a hosted project | checked in review on a test project: Cloudflare sets it, and a request that sends its own value is rejected at the edge with `error code: 1000` | ### Not verified - **Deferred:** the TypeScript fences, because the sandbox runs Node only for example apps. The plan values in the example response come from the old page and differ slightly from a local run. - **Old links left on the redirect:** the client reference specs (`supabase_{dart,py,kt,swift}`), the supabase-js doc comment, and one `www` blog post still link to the old URL. ## Manual testing 1. Open [Query plans with explain()](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/api/query-plans). See the enable, use, production, and disable sections. 2. Open [the old URL](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/database/debugging-performance#enabling-explain). See it redirect to the new page at Enabling `explain()`. 3. In the Database sidebar under Debugging, click **Query plans with explain()**. See the new page open. |
||
|
|
86848fc036 |
docs: move the production security checklist to its own page (#52466)
Closes DOCS-1494 ## Problem The Security section of the Production checklist is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `## Security` to `guides/security/production-checklist`. The production checklist keeps the heading, and its `#security` anchor, with a one-sentence pointer. The page is in the Security sidebar under Guides, after Production Checklist. - **Option 1 navigation:** the "Production security checklist" entry in Run and manage, Security and compliance, points to the new page. The Option 1 test no longer expects the anchor. - **Page shape:** a value-statement opener with the situations that call for the checklist, then the items grouped under Database, Account and organization, Auth, and Threat review. Each group opens with a lead-in that says what its checks protect. - **Inbound links:** two Studio linter entries for OTP settings, the Studio Auth providers form, and `auth/auth-email-passwordless` now point to `production-checklist#auth`. The password length lint points to the password security guide instead, since the checklist has no password item. They used to land on `going-into-prod#security`, which is a pointer now. - **Claim fixes:** - The replication item told readers to enable replication on sensitive tables. It now says to enable RLS on replicated tables that hold sensitive data. - The Auth items named **Authentication > Providers**. The Dashboard label is **Sign In / Providers**. - **Terminal path:** the Auth group links the Management API endpoint for its settings. The Database items link to guides that carry CLI or SQL paths. - **Review fixes:** a note that RLS doesn't filter Postgres Changes `DELETE` events, a SQL path for publications, and the other email links the OTP expiry controls. - **Agent prompt:** after the opener, a copyable `AiPrompt` that has an agent audit the project read-only and report each item as pass, fail, or can't check. It reads Security Advisor and the tables through the Supabase MCP server, and SSL, network restrictions, Auth settings, and org members through Management API GET endpoints. `includeInMarkdown` is on, so the `.md` carries the prompt as a fenced text block. - **Cross-links:** Testing auth flows points to the checklist's Auth group, and the Security overview and Product configuration pages link the checklist. The custom SMTP item links the SMTP guide. ### Not verified - **Deferred samples:** none. The page has no code samples. - **Agent prompt:** its endpoints and fields match `api_v1_openapi.json`, and `Owner` matches Studio's role name. No agent has run it against a hosted project. - **Studio:** the link changes are strings only. Studio tests and build run on this PR because it touches `apps/studio`. ## Manual testing 1. Open [Production security checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/security/production-checklist). See the agent prompt below the opener and four groups of checks. Click **Copy** and see the prompt text. 2. Open [Production checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/deployment/going-into-prod#security). See the Security heading with a one-sentence pointer to the new page. 3. In the Security sidebar under Guides, click **Production security checklist**. See the new page open. |
||
|
|
d97a410577 |
docs: add a Supabase CLI v2 to v3 migration guide (#52147)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Docs update ## What is the current behavior? There's no page covering the breaking changes between Supabase CLI v2 and v3. v3.0.0 was released on 2026-11-02. ## What is the new behavior? Adds a migration guide at `/docs/guides/local-development/cli/migrating-to-v3`, linked from the Local Dev / CLI nav just under "Install and run the CLI". It's modelled on [Vite's migration guide](https://vite.dev/guide/migration): a short summary, what to do before upgrading, how to install (or stay on v2), a CI quick-reference table, then one section per change, ending with the removed commands, flags, config keys and env vars as tables. The content comes from the `BREAKING CHANGE` footers of the breaking PRs on supabase/cli `next`, checked against the code there: supabase/cli#6609, supabase/cli#7064, supabase/cli#7066, supabase/cli#7074, supabase/cli#7109, supabase/cli#7116, supabase/cli#7172, supabase/cli#7176, supabase/cli#7188 and supabase/cli#7221. ## Additional context The page describes v3.0.0 as released: npm `latest`, Homebrew, Scoop and the Linux packages all install v3. The "Staying on v2" channels are live with v2.122.1: npm `v2.stable`, `supabase/tap/supabase@2`, `supabase-v2-stable` on Scoop, and `version: v2.stable` or a semver range like `^2` on `supabase/setup-cli@v3` (ranges need v3.2.0). It also updates about 60 existing guides and troubleshooting pages for v3. Hosted examples pass `--remote`, CI examples that change a hosted project pass `--yes`, deprecated target flags and removed commands are replaced, and pages that described migra as the default now describe pg-delta. It adds a new concept page, "Running commands against local and hosted projects" at `/docs/guides/local-development/local-and-hosted-projects`, linked from the Local Dev nav after "Local development workflow". It covers how a command picks its target (local by default, `--remote` and its forms, the linked project, the `Target:` line), how settings resolve (flag, then shell env, then project env files, then config), and when the CLI asks before changing a hosted project (`--yes`, `SUPABASE_YES`, `--dry-run`, seeding), with a CI recipe and a section for AI coding agents. The migration guide links to it from its target, consent and config sections. Tracks CLI-2747 🤖 Generated with [Claude Code](https://claude.com/claude-code) |
||
|
|
8e2ff1f0e8 |
feat: update mgmt api docs (#52615)
This PR updates Management API docs automatically. This regenerates: - Management API specs and sections - Personal Access Tokens permission-to-endpoint table - Personal Access Tokens MCP tool permissions table Sources include the live Management API specs, MCP permission map, and Studio's shared permission catalog. Co-authored-by: phamhieu <689843+phamhieu@users.noreply.github.com> |
||
|
|
2b85c37aea |
fix: broken links from the Web 404 Review, week of 2026-10-26 (#52617)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1793584471038389?thread_ts=1793584471.038389&cid=C076KTY11DF)_ ## Problem The weekly Web 404 Review found broken URLs that are emitted by links in this repo, or that a redirect can send to a live page. I fixed the ones I confirmed in the code. Each fix is its own commit, so any one of them can be dropped by reverting that commit. ## Solution | Path that 404s | App | Change | | --- | --- | --- | | `/blog/sitemap.xml` | www | Add a permanent redirect to `/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the existing `/blog/rss.xml` redirect. Old supabase.io links still point at this legacy per-section sitemap. | | `/partners/sitemap.xml` | www | Add a permanent redirect to `/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the other `/partners/*` redirects. Same legacy supabase.io source. | | `/design-system/og.jpg` | design-system | `apps/design-system/config/site.ts`: `ogImage` pointed at a file that was never added to the app. Point it at `https://supabase.com/docs/img/supabase-og-image.png`, the shared OG image that docs, learn, and kb already use. That image is 1200x600, so `og:image:height` in `apps/design-system/app/(app)/docs/[[...slug]]/page.tsx` changes from 630 to 600 to match. | | `/docs/reference/auth/config` | docs | `apps/docs/spec/supabase_kt_v1.yml`, `supabase_kt_v2.yml`, `supabase_kt_v3.yml`, `supabase_swift_v1.yml`, `supabase_swift_v2.yml`: the refresh token rotation and `REFRESH_TOKEN_REUSE_INTERVAL` links now go to `/docs/guides/local-development/cli/config#auth.enable_refresh_token_rotation` and `#auth.refresh_token_reuse_interval`, matching the Dart v2 spec. Also add a permanent redirect from `/docs/reference/auth/config` to `/docs/guides/local-development/cli/config` in `apps/docs/lib/redirects/static-redirects.json`, so external links to the old URL stop 404ing. | | `/app/settings/api-keys` | docs | `elevenlabs-generate-speech-stream.mdx` and `elevenlabs-transcribe-speech.mdx`: the ElevenLabs API key link was a relative path that resolved on supabase.com. It now uses `https://elevenlabs.io/app/developers/api-keys`, the current ElevenLabs path (`/app/settings/api-keys` 308s there). The code-sample comments on both pages use the same URL. | I left out the other lines in the review. They need feature work, live outside this repo, or come from stale clients with no matching link in the code. ## To test - [x] www preview: open `/blog/sitemap.xml`. It should 308 redirect to `/sitemap_www.xml` and render the sitemap. - [x] www preview: open `/partners/sitemap.xml`. It should 308 redirect to `/sitemap_www.xml` and render the sitemap. - [x] design-system preview: view source on any `/design-system/docs/...` page. The `og:image` and `twitter:image` meta tags should be `https://supabase.com/docs/img/supabase-og-image.png`, and that URL should load an image. `og:image:height` should be `600`. - [x] docs preview: open `/docs/reference/kotlin/auth-setsession` and `/docs/reference/swift/auth-setsession`. The "Refresh token rotation" and `REFRESH_TOKEN_REUSE_INTERVAL` links should open the matching sections of `/docs/guides/local-development/cli/config`. - [x] docs preview: open `/docs/reference/auth/config`. It should 308 redirect to `/docs/guides/local-development/cli/config`. - [x] docs preview: open `/docs/reference/auth`. It should still 308 redirect to `/docs/reference/self-hosting-auth/start`, so the new `/docs/reference/auth/config` entry doesn't collide with it. - [x] docs preview: open `/docs/guides/functions/examples/elevenlabs-generate-speech-stream` and `/docs/guides/functions/examples/elevenlabs-transcribe-speech`. The "API key" link under Requirements should go to `https://elevenlabs.io/app/developers/api-keys`. ## Checklist - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) ## Linear - fixes GROWTH-1409 --- _Generated by [Claude Code](https://claude.ai/code/session_011aGhSAkL6hxEkWQxXbNazM)_ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com> |
||
|
|
cd0b65c03e | feat(logs): Add Pipelines to unified logs and rename ETL to Pipelines (#52555) | ||
|
|
63ea299a2b |
docs(auth): clarify ip_address is not included in audit logs (#43005)
Fixes #42997 Removed `ip_address` from the audit log example and clarified that client IP addresses are stored in `auth.sessions`, but are not currently included in Auth audit logs. This aligns the documentation with the current behavior. --- ## I have read the CONTRIBUTING.md file. YES ## What kind of change does this PR introduce? Docs update ## What is the current behavior? The documentation example includes `ip_address` in Auth audit logs, but this field is not actually present in the audit logs. ## What is the new behavior? The example no longer includes `ip_address`, and a note clarifies that IP addresses are stored in `auth.sessions`, but not included in audit logs. ## Additional context N/A --------- Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com> Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
a19cfc54eb |
fix(docs): use string for smtp_port in custom SMTP example (#52418)
## Problem
The custom SMTP Management API example in the Auth documentation sends
`smtp_port` as a number (`587`). The API expects a string and rejects
the numeric value with:
```json
{"message":"smtp_port: Invalid input, expected string, received number"}
```
Fixes #52384.
## Solution
Change `smtp_port` from `587` to `"587"` in the `curl` example in
`apps/docs/content/guides/auth/auth-smtp.mdx`, matching the API's
expected string type.
## Review instructions
1. Open `apps/docs/content/guides/auth/auth-smtp.mdx`.
2. Find the custom SMTP Management API example.
3. Verify that `smtp_port` is `"587"` and that the rest of the example
remains unchanged.
## Validation
- `git diff --check` — passed.
- JSON payload parsing — passed; `smtp_port` is a string.
- Prettier check for the modified MDX file — passed.
- Full monorepo build — not run; this is a one-line documentation
change.
- Live API snippet test — deferred because it would target the
production Management API.
## Checklist
- [x] I have read
[[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [ ] If I edited an existing docs topic, I used the `/edit-the-docs`
skill, which applies the docs [[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
Co-authored-by: Nik Richers <nrichers@gmail.com>
|
||
|
|
bc1104398b |
Update monthly-active-users.mdx code formatting (#37651)
* Update monthly-active-users.mdx * fix: formatting --------- Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com> |
||
|
|
7e5748ba6b |
docs: move team member role mapping to its own page (#52476)
Closes DOCS-1498 ## Problem The Configure user access section of Temporary access is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `## Configure user access` to `guides/platform/team-database-access`. Temporary access keeps the heading and its anchor, with a one-sentence pointer. The page is in the Platform sidebar after Temporary Access. - **Option 1 navigation:** the "Map team members to Postgres roles" entry in Run and manage, Team, points to the new page. The Option 1 test no longer expects the anchor. Today's navigation uses the same label, at 34 characters. - **Guide shape:** a value-statement opener with a short definition of a role mapping, Prerequisites, then steps to authorize a team member and to restrict their access. Each list has a lead-in. - **Sample fixes:** - The request sent the role list as `user_roles`. The Management API requires `roles`. - `expires_at` was in milliseconds. It takes Unix seconds, which the Dashboard sends. - A new step looks up the team member's user ID through the organization members endpoint. The old sample used a placeholder with no way to find the value. ### Not verified - **Samples:** the Management API calls need a hosted project, so `test-the-docs` can't run them. I ran them by hand against a hosted project. ## Manual testing 1. Open [Map team members to Postgres roles](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/team-database-access). See the prerequisites, the steps to authorize a team member, and the restrictions. 2. Open [Temporary access](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/temporary-access#configure-user-access). See the Configure user access heading with a one-sentence pointer to the new page. 3. In the Platform sidebar, click **Map team members to Postgres roles**. See the new page open. |
||
|
|
07ab3f99fc |
docs: point Grafana Cloud links to the one-click integration (#52580)
## Problem Grafana reported that many Grafana Cloud orgs connect Supabase without using the 1-click integration, and far more of them than come through it. Likely causes: pages that send people to grafana.com instead of the integration, and users assuming they need a Grafana Cloud account first. ## Solution Point Grafana-related links and copy at the one-click integration, with `utm_medium` set per surface (`docs`, `blog`) so Grafana can attribute traffic. - **Metrics API docs page:** add a bullet to "What you can do" for the one-click integration, and reword the Grafana Cloud link under "Additional resources". - **Grafana Cloud guide:** add a note that you can add the integration without a Grafana Cloud account (confirmed with Grafana), and point manual step 1 to the one-click integration for readers who don't need manual control. - **Metrics API blog post:** link the Grafana Cloud bullet and the "Grafana Cloud setup" list item to the integration and guide. The `supabase-grafana` README is a separate repo, covered in https://github.com/supabase/supabase-grafana/pull/93. ## Review instructions 1. Open the Metrics API docs page and confirm the third bullet links to the Grafana Cloud integration. 2. Open the Grafana Cloud guide and confirm the note and the step 1 copy. 3. Open the blog post and confirm both Grafana Cloud links. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
60bd28fd80 |
docs: fix grammar in Partner Catalog listing criteria (#48736)
Three small grammar fixes in the listing criteria section of the Partner Catalog page: - "we welcome everyone to built an integration" → "build" - "We require this criteria" → "these criteria" - "the company may be assessed on your ability" → "its ability" (the sentence starts with "the company" then switches to second person) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Corrected grammar and clarified assessment criteria descriptions in the Partner Catalog guide. * Updated the Maintainability guidance to refer to a company’s capabilities. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
28d9157aab |
docs: stop guide subtitles from repeating the first sentence (#52568)
Closes DOCS-1553 ## Problem Some guides set a subtitle that says almost exactly what the first sentence of the page says, so the reader reads the same line twice. ## Solution - Add a **Write good frontmatter** section to the style guide, with **Title**, **Subtitle**, and **Description** subsections. A title is 35 characters or fewer, in sentence case, and follows the Google developer style guide's title rules. A subtitle is optional and decorative. If it matches the first sentence, leave it out. A description is 150–160 characters, with relevant keywords. - Remove the subtitle on 12 guides where it repeated the first sentence. On the 6 of those with no description, move the subtitle to `description` so the meta description doesn't change. - Change the Vault subtitle to `Manage secrets in Postgres` to match the rule's example. - In `CONTRIBUTING.md`, mark `description` as required and link to the new section. ## Manual testing 1. Open [Creating a client](https://docs-git-docs-guide-subtitles-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client). See no subtitle under the title. 2. Open [Vault](https://docs-git-docs-guide-subtitles-supabase.vercel.app/docs/guides/database/vault). See `Manage secrets in Postgres` under the title. 3. Read [Write good frontmatter](https://github.com/supabase/supabase/blob/docs/guide-subtitles/apps/docs/style-guide/03-page-structure.md#write-good-frontmatter). |
||
|
|
5bbddd5f01 |
docs(mcp): document feedback tools and feature group (#52557)
## Problem [MCP 0.15.0](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.15.0) adds `submit_feedback` and `delete_feedback` in a new `feedback` group. The MCP docs page doesn't mention them, and the configuration panel always sends an explicit `features` list without `feedback`, so hosted users who set up through the panel never get these tools. ## Solution Document both tools on the MCP page: the `feedback` value, that they're hidden in read-only mode, what data is sent, and how hosted, project-scoped, and local connections differ. Update the "Available tools" intro. ## Verification [MCP Tools docs page Preview](https://docs-git-pedrorodrigues-ai-1387-2d-optional-doc-f3ca8e-supabase.vercel.app/docs/guides/ai-tools/mcp) <img width="792" height="890" alt="image" src="https://github.com/user-attachments/assets/74dbe7fd-b1e2-48bf-8b87-403800c8076f" /> <img width="792" height="747" alt="Screenshot 2026-10-30 at 15 30 05" src="https://github.com/user-attachments/assets/bc61ee27-58ba-45b7-bd19-99676035c21d" /> Closes AI-1387 |
||
|
|
340101642a |
docs: move preview branches on Vercel to its own page (#52473)
Closes DOCS-1497 ## Problem The Vercel section of Branching integrations is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution Split out the old section into a new one with `/edit-the-docs` and `/test-the-docs`. ## Manual testing 1. Open [Preview branches on Vercel](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/integrations/vercel-preview-branches). See the prerequisites, two steps, and the After you connect section. 2. Open [Branching integrations](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/deployment/branching/integrations). Under **Hosting providers**, see a one-sentence pointer to the new page, with no Vercel heading. 3. In the Branching sidebar, click **Preview branches on Vercel**. See the new page open. 4. In the Integrations sidebar, click **Preview branches on Vercel**, after **Vercel Marketplace**. See the new page open with the Integrations sidebar. |
||
|
|
b7144f7ff0 |
docs: clarify pool size scope and override behavior (#50521)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Docs update ## Additional context Clarifications on pooler settings override behavior <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated pool-size guidance to link default values to Compute Add-On limits. * Added default pool-size values for each Compute instance size. * Removed guidance stating that manually configured pool sizes remain fixed after Compute resizing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
30d618dc47 |
chore: remove small compute requirement from HIPAA docs (#52553)
Small compute add-on is no longer required. |
||
|
|
57b659d47f |
docs: move slow and failing query logging to its own page (#52469)
Closes DOCS-1495 ## Problem The `log_min_duration_statement`, `auto_explain.*`, and `log_min_error_statement` sections of Postgres log configurations are split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `log_min_duration_statement`, `auto_explain.*`, and `log_min_error_statement` to `guides/observability/log-slow-queries`. Postgres log configurations keeps each heading and its anchor, with a one-sentence pointer. The page is in the Database sidebar after Postgres log configuration. - **Option 1 navigation:** the "Log slow and failing queries" entry in Run and manage points to the new page. The Option 1 test no longer expects the anchor. `/edit-the-docs` and `/test-the-docs` ran as well. - **Cross-links:** the Customizing Postgres config table links this guide from its `auto_explain.*`, `log_min_duration_statement`, and `log_min_error_statement` rows, and the intro links Query logs with SQL for searching the logs. ## Manual testing 1. Open [Log slow and failing queries](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/observability/log-slow-queries). See the slow queries, query plans, errors, and restore-defaults sections. 2. Open [Postgres log configurations](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config#logmindurationstatement). See the heading with a one-sentence pointer to the new page. 3. In the Database sidebar, click **Log slow and failing queries**. See the new page open. |
||
|
|
e79adc4a42 |
docs: move leaked API key rotation to its own page (#52465)
Closes DOCS-1493 ## Problem The Rotate a leaked or compromised key section of API keys is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `### Rotate a leaked or compromised key` to `guides/security/rotate-leaked-api-keys`. API keys keeps the heading and its `#leaked-key` id, with a one-sentence pointer. The page is in the Security sidebar under Guides, since its URL selects that sidebar. - **Option 1 navigation:** the "Rotate a leaked API key" entry in Run and manage, Security and compliance, points to the new page. The Option 1 test no longer expects the anchor. Run /test-the-docs and /edit-the-docs. ## Manual testing 1. Open [Rotate a leaked or compromised API key](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/security/rotate-leaked-api-keys). See the create, replace, and retire sections, with Dashboard and Management API tabs. 2. Open [API keys](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/getting-started/api-keys#leaked-key). See the heading with a one-sentence pointer to the new page. 3. In the Security sidebar under Guides, click **Rotate a leaked or compromised API key**. See the new page open. |
||
|
|
76f3d06a8b |
docs: add Test Row Level Security policies with pgTAP guide (#52344)
Closes DOCS-1499 ## Problem The testing overview teaches RLS tests, in pgTAP and from application code, in sections that have grown into their own task. ## Solution This goes above and beyond the initial ask, which was just to move a section into a new topic. Because I was here anyway, I aimed to improve the experience and improve our RLS Evals score on tests. A companion Evals PR will split out a new Eval for the new topic, migrating the checks that were in the RLS guide. Some fixes are also included from running our docs skills, including: - **Structure:** move the pgTAP example and the Application-Level testing section to `guides/database/postgres/testing-row-level-security`. The overview keeps both headings, each with a short pointer. The "RLS policies testing" nav entry points to the new page, and so does "Test RLS policies with pgTAP" in the Option 1 nav. - **Style:** a value-statement opener, lowercase SQL, and the command split from its output. - **Technical fixes:** test 2 asserts the `returning` value. Test 4 uses `is_empty`. The output is the output `supabase test db` prints. - **Additions:** `supabase start`, the table as a migration applied with `supabase db reset`, and two sentences on how the test isolates its data and user. A note for readers who use an agent to write their tests, linking to a `## Write quality tests with agents` reference section. One sentence in the RLS guide's `### Run the test suite` links to that section. ## Review instructions 1. Open [Test Row Level Security policies with pgTAP](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/testing-row-level-security) on the preview. See five steps and a passing `Tests=4` output. 2. Open [Testing overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#database-unit-testing-with-pgtap). See the heading with a one-sentence pointer to the new page. 3. In the sidebar under Local development, Testing, click **RLS policies testing**. See the new page open. 4. On the [Testing overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#application-level-testing), click **Test the policy from your application**. See the TypeScript suite on the new page. 5. On the new page, click **Write quality tests with agents** in the agent note's prompt. See the five rules for agents near the bottom of the page. 6. On [Row Level Security](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/row-level-security#run-the-test-suite), click **Write quality tests with agents** under Run the test suite. See the new page open at that section. 7. Open the [Database guides with the Option 1 nav](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1). Under Row Level Security, roles and Vault, click **Test RLS policies with pgTAP**. See the new page open. |
||
|
|
9e3471dcbb |
docs(storage): add information about rotating url signing keys (#52522)
## Problem No docs for self-serve storage url signing key rotation ## Solution Add docs for self-serve storage url signing key rotation via dashboard |
||
|
|
804a3c0969 |
chore(docs) - add in unique titles where appropriate (#52452)
## Problem Dupe titles in docs. ## Solution Adds unique titles where appropriate + high confidence. ## Preview links | Before | After | |---|---| | [Database Migrations \| Supabase Docs](https://supabase.com/docs/guides/deployment/database-migrations) | [Deploy Database Migrations \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/deployment/database-migrations) | | [Database Migrations \| Supabase Docs](https://supabase.com/docs/guides/local-development/database-migrations) | [Local Database Migrations \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/local-development/database-migrations) | | [Limits \| Supabase Docs](https://supabase.com/docs/guides/storage/uploads/file-limits) | [Storage Upload Limits \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/storage/uploads/file-limits) | | [Limits \| Supabase Docs](https://supabase.com/docs/guides/functions/limits) | [Edge Functions Limits \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/functions/limits) | | [Error Codes \| Supabase Docs](https://supabase.com/docs/guides/storage/debugging/error-codes) | [Storage Error Codes \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/storage/debugging/error-codes) | | [Views \| Supabase Docs](https://supabase.com/docs/guides/database/views) | [Database Views \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/guides/database/views) | | [Self-Hosting \| Supabase Docs](https://supabase.com/docs/reference/self-hosting-auth/introduction) | [Self-Hosting Auth \| Supabase Docs ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/reference/self-hosting-auth/introduction) | | [Supabase Docs](https://supabase.com/docs/reference) | [Supabase API references ✅](https://docs-git-kody-devrel-780-docs-dupe-titles-supabase.vercel.app/docs/reference) | --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
ec11e10d35 |
chore(docs) -- add in relevant crosslinks over to /kb troubleshooting pages (#52503)
## Problem relevant cross-links missing to KB articles. ## Solution Claude pass with an attempt to inline these where possible. Some were a new sentence, but spot check felt like they were mostly appropriate. ## Preview links N/A b/c too many atomic changes to help that much. --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> |
||
|
|
b27694b1d4 |
docs: add TanStack DB reference page (#51086)
## Problem `supabase/tanstack-db` (a frontend data layer syncing TanStack DB collections with Postgres via Supabase) has no reference documentation on supabase.com/docs. ## Solution Adds a new `/reference/tanstack-db` SDK reference page documenting `supabaseCollectionOptions()`, `queryOnce()`, and live-query/mutation usage. Since the package has no TypeDoc pipeline (unlike `middleware`/`server`), it uses the legacy hand-written YAML spec pattern already used for Python, Swift, C#, and Dart v1 (`apps/docs/spec/supabase_tanstack_db_v1.yml`), wired into `navigation.references.ts` and the sidebar/breadcrumb constants the same way as the existing `middleware` entry. Content is sourced from the public `supabase/tanstack-db` README and source, since there's no internal ticket for this. ## Review instructions 1. Run `pnpm run codegen:references:legacy` in `apps/docs` and confirm `features/docs/generated/tanstack_db.v1.*.json` are generated. 2. Start local Supabase (`pnpm supabase start`) and `pnpm dev:docs`, then visit `/docs/reference/tanstack_db` and confirm the sidebar entry and content render. ## Checklist - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> Co-authored-by: Tiago Antunes <tiagoantunespt@gmail.com> |
||
|
|
0781f58c8f |
docs(storage): add Revoke signed URLs section (#52440)
## Problem We get questions related to the key rotation related to revoking signed URLs. ## Solution Add a new heading for revoking signed urls and add more detail and clarity about what is possible and the procedure ## Review instructions ## 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) - [X] Used `/review-the-docs` Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
051d5f79da |
chore(docs) - remove troubleshooting guides and rendering logic (#52339)
## Problem Dupe content and workflows when this content now all lives in the KB. ## Solution Removes various artifacts from the docs repo (content files, github workflows, etc.) from the docs app. These paths have already been redirected to /kb in #52095 and we haven't seen any meaningful 404 traffic indicating the redirects were done incorrectly. ## Preview links TBD |
||
|
|
038e68b777 |
docs: unify pooler guidance across the docs (#52332)
Closes DOCS-1519 ## Problem DOCS-1519 asks the docs team to do two things: unify the connection recommendations, and remove PgBouncer deprecation notices. PgBouncer isn't deprecated. It runs the dedicated pooler. **Deprecation notices:** no page in `apps/docs` says PgBouncer is deprecated. The last notice was in a 2021 blog post, and #52249 removed it. Two notices remain outside the docs: - **Studio:** the support form's IPv4 alert links to a "PGBouncer and IPv4 Deprecation" discussion. - **Blog:** a September 2023 update says PgBouncer is deprecated as of January 2024. **Recommendations:** Supabase runs two server-side poolers. The shared pooler runs on Supavisor and is on every plan. The dedicated pooler runs on PgBouncer and is on the Pro Plan and above. The docs name the two poolers in many ways, and many pages leave out the dedicated pooler. Some pages contradict the recommendations table in [Connect to your database](https://supabase.com/docs/guides/database/connecting-to-postgres#choose-a-connection-method): - **Prepared statements:** `connecting-to-postgres` says transaction mode doesn't support them. That is true for the shared pooler only. The dedicated pooler supports them on PgBouncer 1.21 and later. - **Migrations:** the restore pages, the quickstart partial, and the RedwoodJS quickstart send migrations and `pg_dump` through session mode. The table says to use the direct connection. - **Dedicated pooler:** `pooling-and-limits` says to use it on any IPv6 network. The table keeps it for high-load apps. ## Solution - **Names:** pages say _shared pooler_ and _dedicated pooler_, in lowercase. Each page names Supavisor or PgBouncer once, after the pooler name. _Session pooler_ and _Transaction pooler_ stay only where a page quotes the Connect dialog. - **Plans:** pooler and connection pages say _Pro Plan and above_ instead of _paid plans_. - **Recommendations:** every page above now matches the table. The shared pooler in session mode is the fallback for IPv4-only networks. - **Dedicated pooler coverage:** Managing connections and the IPv4 add-on page now cover the dedicated pooler. - **Word list:** `WORD_LIST.md` gets `dedicated pooler`, `shared pooler`, and `paid plan` entries. **Also fixed:** - The direct connection examples in both restore pages had the wrong username and `.supabase.com`. - The Managing connections heading changed. It keeps the `#configuring-supavisors-pool-size` anchor, because Studio links to it. **Not changed:** billing and usage pages that say _paid plans_, self-hosting pages, `apps/www`, and Studio. The Postgres and Render migration guides moved to `apps/kb` on `master` while this PR was open, so their edits are no longer in this diff. **Troubleshooting articles:** production redirects `/docs/guides/troubleshooting/` to `/kb/troubleshooting/`, which builds from the troubleshooting repo. The troubleshooting edits move there under DOCS-1521. **Size:** 25 files, 115 lines added and 97 removed. ## Preview links | Page | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | /connecting-to-postgres | [Live](https://supabase.com/docs/guides/database/connecting-to-postgres) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres) | A high-load application on the Pro Plan and above | | /pooling-and-limits | [Live](https://supabase.com/docs/guides/database/connecting-to-postgres/pooling-and-limits) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits) | Use it for high-load applications | | /connection-management | [Live](https://supabase.com/docs/guides/database/connection-management) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connection-management) | The pool size applies to both the shared pooler | | /ipv4-address | [Live](https://supabase.com/docs/guides/platform/ipv4-address) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/ipv4-address) | When using the dedicated pooler in an IPv6-incompatible network | | /backup-restore | [Live](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/backup-restore) | Use the direct connection string. If your network | | /dashboard-restore | [Live](https://supabase.com/docs/guides/platform/migrating-within-supabase/dashboard-restore) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/dashboard-restore) | Use the direct connection string. If your ISP | | /redwoodjs | [Live](https://supabase.com/docs/guides/getting-started/quickstarts/redwoodjs) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/getting-started/quickstarts/redwoodjs) | This quickstart uses two connection strings | ## Review instructions 1. Open [Connect to your database](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres). The table and the **Dedicated pooler** section say _Pro Plan and above_. 2. Open [Connection pooling and limits](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits). It recommends the dedicated pooler for high-load apps only. 3. Open [Managing connections](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connection-management). The pool size section covers both the shared pooler and the dedicated pooler. 4. Open [Backup and restore](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/backup-restore). Step 3 says to use the direct connection string. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
5bdb7399e8 |
docs: add "The Supabase way to build" getting started guide (#50283)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? A getting-started page that sits between the architecture overview (what the pieces are) and the existing guides (how to build one). Explains which product features to add, and when, as you are building. ## What is the current behavior? - Architecture lists the services. Quickstarts show one setup. Nothing says which block to add next. ## What is the new behavior? The page tells you which Supabase piece to add next. The links open the guide that shows you how. A short table at the top maps a need to a piece: store data, know who is calling, keep rows private, handle files, run server logic, show live updates, go to production. Under that are the same seven pieces, in the order most apps grow. Stop at the last one your app needs. Every section has the same four parts: - The situation that means you need this piece - The idea to remember - The mistake to avoid - A few links to the existing guide One warning sits in the database section. The Next.js quickstart leaves its sample table public so the page can load. Come back here before that table holds private data. ## Additional context - Page: `the-supabase-way-to-build.mdx`. Tiles: `the-supabase-way-to-build.data.ts`. Nav: second item under Build with AI tools. - Explainer only. It links out for the how. - Needs an SME read. Placement is interim. ### [The Supabase way to build (Preview)](https://docs-git-nikrichers-docs-1389-experimental-the-9beaf4-supabase.vercel.app/docs/guides/getting-started/the-supabase-way-to-build) <img width="2222" height="15924" alt="Image2026-10-26_01-54-16_PM" src="https://github.com/user-attachments/assets/caf02275-6c7e-4b35-be7f-659953e86bd6" /> ### Test plan - [ ] Preview renders, and the sidebar entry is second under Build with AI tools. - [ ] Each section has a Build it group of links. - [ ] Database stage points at API keys and says the quickstart's public read is temporary. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added the “The Supabase Way to Build” guide, covering Database, Auth, RLS, Realtime, Storage, Edge Functions, and production hardening. - Added curated “Build it” links for each section to help readers find relevant guides. - Included guidance on securing data, files, credentials, and browser-accessible resources. - **Documentation** - Updated the Getting Started navigation to link to the new guide. - Clarified Storage policies, RLS behavior, public buckets, and secure secret management. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io> |
||
|
|
9084e8181b |
docs(ai): add Fireworks AI integration guide (#52193)
## I have read the CONTRIBUTING.md file. YES ## What kind of change does this PR introduce? **New docs page: Fireworks AI integration guide.** This adds `guides/ai/integrations/fireworks-ai` and covers two tasks. The first calls a Fireworks chat model from an Edge Function. The second stores Fireworks embeddings in a pgvector table and searches them from an Edge Function. Fireworks exposes an OpenAI-compatible API, so the page uses the OpenAI SDK with a Fireworks base URL. That matches the existing pattern in `guides/functions/ai-models`. Base for this stacked PR: https://github.com/supabase/supabase/pull/52246 ## What is the current behavior? - The docs have no Fireworks content. `git grep -i fireworks` across the repo returns no docs, examples, or templates. ## What is the new behavior? | File | Change | | --- | --- | | `apps/docs/content/guides/ai/integrations/fireworks-ai.mdx` | New guide covering API key secrets, **Generate text**, and **Search with embeddings** (table, RLS policy, HNSW index, `match_documents`, plus embed and search functions) | | `apps/docs/components/Navigation/NavigationMenu/NavigationMenu.constants.ts` | Adds **Fireworks AI** under AI > Third-Party Tools, after Amazon Bedrock | | `apps/docs/content/guides/ai.mdx` | Adds a Fireworks AI card to the Integrations grid | ## Additional context - Worktree: `~/GitHub/supabase/supabase-worktrees/docs/fireworks-ai-integration` - Style: written against `apps/docs/style-guide/`, with a clean-context critic pass. Placement and page shape follow `guides/ai/integrations/amazon-bedrock.mdx`. - Fireworks facts (base URL, `FIREWORKS_API_KEY`, `accounts/fireworks/models/glm-5p3-flash`, `fireworks/qwen3-embedding-8b`, the `dimensions` parameter, unnormalized Qwen3 vectors) were checked against `docs.fireworks.ai` on 2026-10-22. | Check | Result | | --- | --- | | Page SQL on `pgvector/pgvector:pg17` (extension, table, RLS policy, HNSW index, `match_documents`) | Pass | | `match_documents` called as `authenticated` with RLS on | Pass, returns rows ranked by similarity | | Prettier on all 3 files | Pass | | Internal link targets exist | Pass (6 of 6) | | Edge Functions against the live Fireworks API | **Not run**, no Fireworks API key available | ### Needs review - **Edge Function code is untested end to end.** It follows the `withSupabase` and `jsr:@openai/openai@^6` patterns from `guides/functions/auth` and `guides/functions/ai-models`, but nobody has deployed it or called Fireworks with it yet. - **Model choices are inferred.** `glm-5p3-flash` is the model in the Fireworks quickstart. `qwen3-embedding-8b` is the serverless embedding default their docs recommend. The 1,024 dimension is my pick: it stays under the pgvector HNSW limit of 2,000 and is a supported Qwen3 output size. - **One page, two tasks.** The critic flagged `03-page-structure.md#one-unit-per-page`. I kept a single page to match the other integration pages in this folder. Splitting it is a reasonable alternative. - **Product owner sign-off.** No product spec exists for this page. Scope (inference plus embeddings) is limited to features that have already shipped. ### Proof: the guide renders on the preview and appears in the AI nav **Verified:** `Vercel – docs` check (pass) · preview page returns 200 · Fireworks AI card links from `/docs/guides/ai` (pass) [Fireworks AI guide (PR preview)](https://docs-git-nikrichers-fireworks-ai-integration-supabase.vercel.app/docs/guides/ai/integrations/fireworks-ai)  ### Test plan - [ ] Deploy `fireworks-chat`, `fireworks-embed`, and `fireworks-search` with a real `FIREWORKS_API_KEY` and confirm each returns the documented response - [x] Confirm the page renders and appears under AI > Third-Party Tools in the preview - [x] Confirm the Fireworks AI card renders on `/docs/guides/ai` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jordan Lee <jordan.lee@supabase.io> |
||
|
|
fe599e8c0e |
docs(auth): add guide for testing auth flows without email and SMS limits (#52118)
Found during my dogfooding project :) ## Problem Testing magic-link sign-in on a hosted project can hit the built-in email limit after two sign-ins. A quick workaround is to turn off **Confirm email**, which is risky if it stays off at launch. The docs that would help are spread out: Mailpit appears only in the Passwords guide and the CLI pages, and test phone numbers appear only in the self-hosted phone MFA guide. Resolves [DOCS-1460](https://linear.app/supabase/issue/DOCS-1460/document-how-to-test-auth-flows-without-hitting-email-rate-limits) and [FDBKIN-16338](https://linear.app/supabase/issue/FDBKIN-16338/clarify-built-in-email-rate-limits-and-custom-smtp-requirement-for). The second is feedback from a user who hit the built-in email limit during sign-up testing and didn't know custom SMTP was needed. ## Solution A new guide, **Test auth flows**, explains how to test each sign-in method without real email or SMS limits. It opens with a link to the Supabase CLI setup that the local steps need: - **Test email flows locally:** Mailpit captures every email from local Auth, so the hosted email limit and address restriction don't apply. The steps have the reader copy the Project URL, publishable key, and Mailpit URL from `supabase status`, then swap the app's environment variables from the hosted project to the local stack. The guide also covers turning on email confirmation locally to test that flow. - **Test email flows on a hosted project:** the built-in email service's limits and the error it returns, how custom SMTP or the Send Email hook raises them, and a caution that turning off **Confirm email** also removes the hourly email limit, so it needs to be back on before launch. - **Test phone sign-in with test numbers:** fixed one-time passwords for chosen phone numbers, set in the Dashboard, `config.toml`, or the Management API. The local steps include the SMS provider settings that test numbers need, with placeholder credentials. The guide covers what test numbers skip, what still applies, and the risk of leaving them in production. The page sits under **Auth > Configuration** in the navigation. The magic link, passwords, email templates, phone sign-in, and rate limits guides link to it. The Production checklist gains an item to remove test phone numbers. The Passwords guide's Mailpit section becomes a link to the new page and keeps its heading, so existing links to it still work. ## Verification Local behavior was tested against a local stack with Supabase CLI 2.114.0: - 10 magic links to 10 addresses all arrived in Mailpit. A second request for the same address within one second returned `429 over_email_send_rate_limit`. - A test number signed in with its fixed code, and the code worked again without a new request. A second request within the wait returned `429 over_sms_send_rate_limit`. - With the project SMS limit set to 1, four requests for a test number all succeeded. - Test numbers failed with `phone_provider_disabled` until an SMS provider was enabled. With a provider enabled, Auth sent nothing to test numbers. - A key without the country code didn't match a number sent with `+1`, and the request went to the SMS provider. - A phone MFA challenge for a test number went to the SMS provider. Hosted behavior was tested on a Free plan project through the Dashboard, and the project's settings were restored afterward: - The Phone provider form doesn't save test numbers until the SMS provider's required fields and **Test OTPs Valid Until** are filled in. - With test number `14155552671=123456` saved, the number signed in with its fixed code and no SMS was sent. The same code worked a second time. - A second request for the test number right after the first returned `429 over_sms_send_rate_limit` with "after 4 seconds", so the hosted wait between codes is 5 seconds. - With the Phone provider turned off again, the test number returned `phone_provider_disabled`. Hosted projects require email confirmation by default. A `supabase config push` diff against a new project showed `enable_confirmations = true` on the remote, and the platform source sets `MAILER_AUTOCONFIRM` to `false` by default. On a second Free plan project, `supabase config push` with one `[auth.sms.test_otp]` entry stored the number as `14155552671=123456`, with **Test OTPs Valid Until** set 10 years ahead. The Management API spec defines `sms_test_otp` and `sms_test_otp_valid_until` on `PATCH /v1/projects/{ref}/config/auth`, with `sms_test_otp` limited to `<digits>=<digits>` pairs. Three magic links to a team member's address all sent within two minutes, with no `429`. The test project had **Confirm email** turned off. In the Auth source, `sendEmail` in `internal/api/mail.go` checks the hourly email limit only when `Mailer.Autoconfirm` is false, that is, when **Confirm email** is on. A comment there marks this behavior for deprecation. With **Confirm email** on, the built-in service returns `429` with `over_email_send_rate_limit` after two emails, which matches the original dogfooding report. The page states the limit applies while **Confirm email** is on, and the caution says turning it off removes the limit. The guide's `config.toml` snippet was run as written on a local stack, with `placeholder` Twilio credentials. The test number got `test-otp`, signed in with its code, and could request again after 5 seconds. The page renders on the local docs server, the navigation entry appears, and the section anchors that other guides link to resolve. `pnpm build:guides-markdown` generates the page with its admonitions and tabs. ### Self-review A `review-the-docs` pass covered the new guide and the six linked pages against the style guide and word list. While testing, the `config.toml` template's test OTP example turned out to be missing a country code. That's tracked for the CLI team in [CLI-2820](https://linear.app/supabase/issue/CLI-2820/fix-the-authsmstest-otp-example-in-configtoml-to-include-the-country). ## Follow-up The [Phone sign-in guide](https://supabase.com/docs/guides/auth/phone-login) says a user can request an OTP once every 60 seconds. The hosted test showed a 5-second wait for SMS codes. This PR leaves that sentence as is. |
||
|
|
ce393db239 |
feat: update mgmt api docs (#52280)
This PR updates Management API docs automatically. This regenerates: - Management API specs and sections - Personal Access Tokens permission-to-endpoint table - Personal Access Tokens MCP tool permissions table Sources include the live Management API specs, MCP permission map, and Studio's shared permission catalog. Co-authored-by: antlio <14966155+antlio@users.noreply.github.com> |
||
|
|
b123d74008 |
chore(kb,docs) - migrate migration pages (#52243)
## Problem Don't want dupe entries of migration pages. Consolidation + redirects. ## Solution Went ahead and kept the listing on the docs homepages and docs resource pages b/c those links are good for general discoverability (for people, bots). Also migrated over the existing Vercel Postgres guide that got missed in the first pass of this. Updates relevant links elsewhere w/in the app too. ## Preview links [KB](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/) [KB Vercel Postgres](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/kb/guides/migrate-from-vercel-postgres) [Docs homepage](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs) [Docs resources page](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs/guides/resources) [www neon migration](https://zone-www-dot-com-git-kody-devrel-764-remove-mig-a4e53a-supabase.vercel.app/solutions/switch-from-neon) |
||
|
|
38915f19be |
chore(www,kb) - add cross links to hosted-postgres page (#52242)
## Problem We want to do more to promote this page. ## Solution Adds relevant cross links from other sources. ## Preview links n/a, atomic changes, not helpful to have preview links |