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 | |
|---|---|---|---|---|
|
|
8cce0e4ce4 |
feat(docs): update AWS Marketplace purchase path (#52199)
## Problem The platform AWS Marketplace guide still sends readers only to the raw AWS listing. Self-serve Pro/Team and the canonical landing page are easy to miss. ## Solution Point the guide at [supabase.com/aws-marketplace](https://supabase.com/aws-marketplace) while keeping a direct link to the AWS Marketplace listing. That link will go live when this stack is merged as it is implemented one PR down, in #52198. ## Review instructions 1. Open the docs preview for `/docs/guides/platform/aws-marketplace` 2. Confirm the intro links to the Supabase AWS Marketplace page and the AWS listing |
||
|
|
7e866ef83e |
docs: warn against subscribing to publish from servers (#51466)
## Problem Subscribing in Edge Functions opens a connection per worker, inflating Peak Connections and billed recipients. Point server-side senders to httpSend()/REST, and clarify that self-send messages are billed as well. ## Solution Explain where possible that httpSend is an option from a server. <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions Read the docs! ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
07e69b9737 |
docs: fix broken anchor links (#52181)
## Problem A full docs E2E run with the anchor check from #52174 found 58 broken anchor links on 53 guide pages. Most point to renamed or removed headings. Fixing them sets a baseline of zero for the IA restructure. Closes DOCS-1516 ## Solution - Retarget each link to the section that covers it today, verified on production. - Add a custom id where links already use a hand-written slug, such as `#phx_join`. - Drop the anchor where no section fits. ## Preview links Rows with an anchor link straight to a new custom id, which is broken on live and works on the preview. For the rest, search the page for the phrase to find the changed link. | Live | Preview | Search for | Change | | --- | --- | --- | --- | | [with-react](https://supabase.com/docs/guides/getting-started/tutorials/with-react) | [with-react](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/getting-started/tutorials/with-react) | Row Level Security | `auth#row-level-security` → `database/postgres/row-level-security` (20 links, 15 files) | | [nextjs](https://supabase.com/docs/guides/auth/quickstarts/nextjs) | [nextjs](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/nextjs) | Supabase Auth docs | `auth#authentication` → `auth` | | [astrojs](https://supabase.com/docs/guides/auth/quickstarts/astrojs) | [astrojs](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/astrojs) | Supabase Auth docs | `auth#authentication` → `auth` | | [custom-domains](https://supabase.com/docs/guides/platform/custom-domains) | [custom-domains](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/custom-domains) | Owner or Admin permissions | `access-control#manage-team-members` → `#manage-organization-members` | | [network-restrictions](https://supabase.com/docs/guides/platform/network-restrictions) | [network-restrictions](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/network-restrictions) | Owner or Admin permissions | `access-control#manage-team-members` → `#manage-organization-members` | | [postgres-connection-logging](https://supabase.com/docs/guides/platform/postgres-connection-logging) | [postgres-connection-logging](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/postgres-connection-logging) | Owner or Admin permissions | `access-control#manage-team-members` → `#manage-organization-members` | | [ssl-enforcement](https://supabase.com/docs/guides/platform/ssl-enforcement) | [ssl-enforcement](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/ssl-enforcement) | Owner or Admin permissions | `access-control#manage-team-members` → `#manage-organization-members` | | [with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in) | [with-expo-react-native-social-sign-in](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in) | copied earlier | `#get-the-api-keys` → `#get-api-details` | | [with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in) | [with-expo-react-native-social-sign-in](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in) | Apple Developer Console | `auth-apple#configuration-web` → `#configuration-web-oauth` | | [with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in) | [with-expo-react-native-social-sign-in](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in) | Google Sign In | Dropped `#react-native`, a non-default tab | | [with-flutter](https://supabase.com/docs/guides/getting-started/tutorials/with-flutter) | [with-flutter](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/getting-started/tutorials/with-flutter) | copied earlier | `#get-the-api-keys` → `#get-api-details` | | [going-to-prod](https://supabase.com/docs/guides/ai/going-to-prod#hnsw-understanding-efconstruction--efsearch--and-m) | [going-to-prod](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/ai/going-to-prod#hnsw-understanding-efconstruction--efsearch--and-m) | HNSW, understanding | Custom id matching the links from `ai/choosing-compute-addon` | | [rag-with-permissions](https://supabase.com/docs/guides/ai/rag-with-permissions) | [rag-with-permissions](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/ai/rag-with-permissions) | query plan analyzer | `platform/performance#optimizing-poor-performing-queries` → `database/query-optimization#analyze-the-query-plan` | | [ivf-indexes](https://supabase.com/docs/guides/ai/vector-indexes/ivf-indexes) | [ivf-indexes](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/ai/vector-indexes/ivf-indexes) | Distance operators | `#distance-operators` → `ai/vector-indexes#distance-operators` | | [custom-claims-and-role-based-access-control-rbac](https://supabase.com/docs/guides/api/custom-claims-and-role-based-access-control-rbac) | [custom-claims-and-role-based-access-control-rbac](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/api/custom-claims-and-role-based-access-control-rbac) | local development | `auth-hooks#local-development` → `#developing` | | [native-mobile-deep-linking](https://supabase.com/docs/guides/auth/native-mobile-deep-linking) | [native-mobile-deep-linking](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/native-mobile-deep-linking) | password reset | `passwords#resetting-a-users-password-forgot-password` → `#resetting-a-password` | | [mcp-authentication](https://supabase.com/docs/guides/auth/oauth-server/mcp-authentication) | [mcp-authentication](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/oauth-server/mcp-authentication) | authorization UI | `getting-started#build-your-authorization-endpoint` → `#build-your-authorization-ui` | | [passwords](https://supabase.com/docs/guides/auth/passwords) | [passwords](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/passwords) | implicit flow | `sessions#implicit-flow`, `sessions#pkce-flow` → `sessions/implicit-flow`, `sessions/pkce-flow` | | [redirect-urls](https://supabase.com/docs/guides/auth/redirect-urls) | [redirect-urls](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/redirect-urls) | third-party providers | Dropped the `auth-signinwithoauth` example anchor | | [users](https://supabase.com/docs/guides/auth/users) | [users](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/users) | User Identity | `auth-identity-linking#the-user-identity` → `identities#the-user-identity-object` | | [upgrading](https://supabase.com/docs/guides/platform/upgrading#upgrading-to-pg_graphql-160) | [upgrading](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/upgrading#upgrading-to-pg_graphql-160) | Upgrading to pg_graphql | Custom id matching the link from `database/extensions/pg_graphql` | | [import-data](https://supabase.com/docs/guides/database/import-data) | [import-data](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/import-data) | disk management | `database-size#disk-management` → `#disk-size` | | [multigres](https://supabase.com/docs/guides/database/multigres) | [multigres](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/multigres) | Private Alpha | Dropped the link. `getting-started/features` redirects to `/features` | | [data-deletion](https://supabase.com/docs/guides/database/postgres/data-deletion) | [data-deletion](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/postgres/data-deletion) | Check for blocked queries | `#monitoring-locks` → `#check-for-blocked-queries` | | [postgres-log-config](https://supabase.com/docs/guides/database/postgres/postgres-log-config) | [postgres-log-config](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config) | Supavisor | `connecting-to-postgres#poolers` → `pooling-and-limits#shared-pooler` and `#dedicated-pooler` | | [partner-catalog](https://supabase.com/docs/guides/integrations/partner-catalog) | [partner-catalog](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/integrations/partner-catalog) | Project GraphQL API | `api#graphql-api-overview` → `graphql` | | [vercel-marketplace](https://supabase.com/docs/guides/integrations/vercel-marketplace) | [vercel-marketplace](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/integrations/vercel-marketplace) | How your Vercel team maps | `#permissions` → `#how-your-vercel-team-maps-to-supabase` | | [managing-config](https://supabase.com/docs/guides/local-development/managing-config) | [managing-config](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/local-development/managing-config) | Managing secrets for branches | `branching#managing-secrets-for-branches` → `branching/configuration#managing-secrets-for-branches` | | [reports](https://supabase.com/docs/guides/observability/reports) | [reports](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/observability/reports) | Query Performance Advisory | `performance#examine-query-performance` → `#examining-query-performance` | | [backups](https://supabase.com/docs/guides/platform/backups) | [backups](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/backups) | legacy logical backup | `backup-restore#backup-database-using-the-cli` → `#back-up-database-using-the-cli` | | [backups](https://supabase.com/docs/guides/platform/backups#pitr-restoration-process) | [backups](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/backups#pitr-restoration-process) | Restoration process | Custom id matching the link from `read-replicas/getting-started` | | [branching](https://supabase.com/docs/guides/platform/manage-your-usage/branching) | [branching](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/manage-your-usage/branching) | persistent branches | `branching#persistent-branches` → `#how-branching-works` | | [point-in-time-recovery](https://supabase.com/docs/guides/platform/manage-your-usage/point-in-time-recovery) | [point-in-time-recovery](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/manage-your-usage/point-in-time-recovery) | backup frequency | `backups#frequency-of-backups` → `backups` | | [read-replicas](https://supabase.com/docs/guides/platform/read-replicas) | [read-replicas](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/read-replicas) | IPv4 add-on | `ipv4-address#read-replicas` → `#read-replicas-and-ipv4-add-on` | | [protocol](https://supabase.com/docs/guides/realtime/protocol#access-token) | [protocol](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/protocol#access-token) | access_token | Custom id matching the link from `realtime/authorization` | | [postgres-changes](https://supabase.com/docs/guides/realtime/postgres-changes#negating-a-filter-not) | [postgres-changes](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/postgres-changes#negating-a-filter-not) | Negating a filter | Custom id matching the existing in-page link | | [protocol](https://supabase.com/docs/guides/realtime/protocol#phx_join) | [protocol](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/protocol#phx_join) | phx_join | Custom id matching the existing in-page link | | [reports](https://supabase.com/docs/guides/realtime/reports) | [reports](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/reports) | Broadcast via REST API | `broadcast#broadcast-via-rest-api` → `#broadcast-using-the-rest-api` | <details> <summary>The 15 files with Row Level Security links</summary> - `_partials/quickstart_intro.mdx`, used by the framework tutorials - `auth/phone-login` - `auth/quickstarts/with-expo-react-native-social-sign-in` - `database/postgres/column-level-security` - `getting-started/tutorials/`: `with-flutter`, `with-ionic-angular`, `with-ionic-react`, `with-ionic-vue`, `with-kotlin`, `with-nuxt-3`, `with-redwoodjs`, `with-solidjs`, `with-svelte`, `with-swift`, `with-vue-3` </details> ## Review instructions 1. Open a few live and preview links side by side, and click the changed link on each to confirm the preview lands on the right section. 2. From a checkout of `docs/e2e-anchor-links`, run the anchor check against the preview with the changed pages, as described in `e2e/docs/README.md`: `DOCS_E2E_PAGE_PATHS=<changed /docs/... paths> PLAYWRIGHT_BASE_URL=https://docs-git-docs-fix-broken-anchors-supabase.vercel.app pnpm exec playwright test --grep-invert @a11y` 3. Confirm the anchor check reports no failures. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
839406ca4f |
docs: fix JS syntax errors in the setRoleCustomClaim example in firebase-auth (#35203)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Docs update: in an example (setRoleCustomClaim), fix some small JS syntax errors, and one Firebase Auth type error. ## What is the current behavior? Copy-pasting the example code currently doesn't give a working JS script/function. ## What is the new behavior? / ## Additional context / --------- Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
7f9d4cd7c6 |
docs: add Vault secret deletion example (#52004)
## Problem The Vault guide explains creating, viewing, and updating secrets but has no deletion example. Addresses https://github.com/supabase/vault/issues/32. ## Solution Add a “Deleting secrets” section with an ID-filtered SQL example. Use `returning id, name` to show the deleted entry and explain its removal from `vault.decrypted_secrets`. ## Review instructions 1. Check that “Deleting secrets” appears after “Updating secrets.” 2. Create two dummy secrets and record their IDs. 3. Run the example using one secret’s ID. Confirm the returned row identifies that secret and the other remains readable. 4. Clean up the remaining dummy secret. Manually verified on hosted Vault 0.3.1 using the `postgres` role. Prettier passed with the repository configuration. Full docs build not run. Docker sandbox verification deferred because Docker is unavailable in the review environment. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md). - [x] I used the docs authoring skills and applied the documentation style guide. |
||
|
|
7e76ef25f7 |
fix(docs): link to Database Settings for SSL certificate download (#51327)
## Problem On the psql guide, the "Connecting with SSL" section says "Download your [SSL certificate](#connecting-with-ssl)", but that link points back to the same section. It never says where the certificate is, so readers can't find the download. Reported in the issue linked below. ## Solution Point the link at the Dashboard's Database Settings page (`/dashboard/project/_/database/settings`), where the SSL certificate download lives. This is the same link other database guides already use (for example the DBeaver and Beekeeper Studio guides). One line changed in `apps/docs/content/guides/database/psql.mdx`. ## Review instructions 1. Open `apps/docs/content/guides/database/psql.mdx`, "Connecting with SSL". 2. Check that "Database Settings" now links to `/dashboard/project/_/database/settings` instead of the same page. --------- Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
3232bbb3e4 |
docs: fix four typos across docs pages (#50755)
Doc-only typo fixes (no behavior affected): - `content/guides/database/json.mdx`: `indentity` -> `identity` - `content/guides/database/postgres/cascade-deletes.mdx`: `INITIALLY DEFFERED` -> `INITIALLY DEFERRED` (SQL keyword) - `docs/ref/csharp/v0/release-notes.mdx`: `futher` -> `further` - `docs/ref/self-hosting-analytics/introduction.mdx`: `environement` -> `environment` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Corrected spelling and wording errors across database, PostgREST, and self-hosting analytics documentation. * Clarified the Dashboard instruction for automatically generating identity values. * Corrected terminology in guidance for deferred actions and encryption-key rotation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Dextheking1 <4175097+Dextheking1@users.noreply.github.com> |
||
|
|
8679b0b4d3 |
docs: remove Log Query enforcement date from manage-usage page (#52188)
## Summary - The Log Query usage page stated enforcement (allowance cap + degraded-state consequences) would start "at the start of 2027." Per yesterday's revised logs-pricing plan, Log Query enforcement is being rolled back/deferred: usage stays tracked, but no cap or enforceability lands with the January 2027 launch. Log Ingestion is unaffected and keeps its original timeline (not touched by this PR). - Updated the "Not yet enforced" admonition to drop the specific date and state that a timeline will be announced before enforcement takes effect. - Changed "A concrete walkthrough" from literal January-April month names to relative Month 1-4 labels, so the illustrative mechanics no longer imply an imminent start date. ## Context Related to the O11Y team's logs-pricing rollout; this is the docs-side follow-up to the decision to roll back Log Query enforcement while Log Ingestion proceeds as planned. ## Test plan - [ ] Preview the `logs-query` guide page and confirm the admonition and walkthrough read correctly - [ ] Confirm `logs-ingest.mdx` is unchanged (Ingestion timeline unaffected) |
||
|
|
c7ec6a1166 |
[docs] - remove outdated from heroku.mdx guide (#52236)
## Problem link no longer resolves ## Solution Provide a brief description of the change and the key choices you made when architecting the solution. Feel free to include screenshots if it includes visual changes. <!-- ## 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. |
||
|
|
b6c2018af1 |
Docs: free plan read only tweaks (#52212)
## Problem The Free Plan section of the database size guide describes read-only mode incorrectly: ## Solution The changes are in one file, `apps/docs/content/guides/platform/database-size.mdx`. The PR has three commits, one change type each, so you can review them one at a time: 1. **Style:** fixes two typos and changes "auto-scale" to "autoscale", as the word list requires. 2. **Correction:** rewrites the Free Plan section: - Read-only mode starts at 95% disk usage and stops below 95%. - The 500 MB quota is a billing quota, with a link to the existing Fair use section. - A `danger` admonition says that read-only mode is best effort and that a full disk stops Postgres. - Recovery steps: upgrade to the Pro Plan, restart the project, and wait about 10 minutes. 3. **Addition:** adds a "Write Ahead Log (WAL) on the Free Plan" subsection. It explains how bulk writes and inactive replication slots make WAL grow, and how to keep WAL small. No heading is renamed or removed, so all existing anchors still resolve. ## Preview links | Site | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | Docs | [/docs/guides/platform/database-size](https://supabase.com/docs/guides/platform/database-size#free-plan-behavior) | [/docs/guides/platform/database-size](https://docs-git-docs-free-plan-read-only-supabase.vercel.app/docs/guides/platform/database-size#free-plan-behavior) | best-effort safeguard | ## 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) |
||
|
|
61058a579a |
docs: describe personal access tokens as scoped (#52217)
## Problem The [Personal Access Tokens guide](https://supabase.com/docs/guides/platform/personal-access-tokens) says tokens "come in two flavors: Classic tokens … Scoped tokens." The Select Rewind blog post, the new Personal Access Tokens feature page, and the launch community posts deliberately avoid that split. They describe a token as something you scope and treat the full-access token as an exception you can still create. Readers who follow "see the Personal Access Tokens documentation" from those pieces land on the opposite framing. Three other guides that link to the PAT page also call it a "scoped personal access token" as if it were a separate product. ## Solution This PR rewrites the PAT guide around scoping as the default and stops using "classic" and "scoped" as names for kinds of token. "Scoped" appears only as a verb or a state ("scope a token", "scoped by default"). "Legacy" appears only as the literal Dashboard badge. - **`guides/platform/personal-access-tokens.mdx`** - Replaces the two-flavors list with an intro that explains scoping first and the full-access exception (shown with the **Legacy** badge) second. - Renames "Create and use a scoped personal access token" to "Scope a token and use it" and "Use a scoped personal access token with the Supabase CLI" to "Use a token with the Supabase CLI". - **`guides/ai-tools/mcp.mdx`**, **`guides/getting-started/api-keys.mdx`** and **`guides/deployment/managing-environments.mdx`** reword "scoped personal access token" to describe a state rather than a token type. - **`spec/sections/generateAccessControlPartials.mts`** changes the MCP tools fallback label from "Not available to scoped personal access tokens" to "Not available to personal access tokens with a scope". Because no tool hits this branch today, the generated partials don't change. The permissions, CLI behavior, `sbp_fc` prefix and examples stay the same. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
2f548a69a3 |
docs(postgis): link to the Security Advisor troubleshooting guide (#51439)
## 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? New troubleshooting guide on Security Advisor flagging spatial_ref_sys and other PostGIS objects in the public schema ## What is the current behavior? ## What is the new behavior? New guide PR: https://github.com/supabase/troubleshooting/pull/339 Link to the guide preview: - [Security Advisor flags spatial_ref_sys and other PostGIS objects in the public schema](https://docs-git-docs-troubleshooting-postgis-security-advisor-supabase.vercel.app/docs/guides/database/extensions/postgis#security-advisor-flags-publicspatialrefsys) |
||
|
|
8a78b7e5be |
docs: call Edge Functions from Postgres with the secret key (#51990)
Found during my dogfooding project :) ## Problem Three guides give conflicting guidance on how Postgres should authenticate when it calls an Edge Function: - **Securing Edge Functions:** calls from `pg_net` and cron jobs send the secret key on `apikey`, with `auth: 'secret'` and `verify_jwt = false`. The Dashboard agrees: the webhook and cron job forms only offer **Add secret key**. - **Scheduling Edge Functions:** the only example that stores a key in Vault sends the publishable key. A request with only the publishable key passes the `verify_jwt` check, so anyone who has that public key can call the function. - **Database Webhooks:** doesn't cover calling an Edge Function or authenticating to it. Its SQL example writes headers inline, so a webhook created in a migration puts the secret key in a committed file. Resolves [DOCS-1458](https://linear.app/supabase/issue/DOCS-1458), [FDBKIN-19992](https://linear.app/supabase/issue/FDBKIN-19992) ## Solution All three pages now recommend the secret key for calls from Postgres. - **Scheduling Edge Functions:** stores and sends the secret key, explains why the publishable key isn't safe here, and links to the function-side setup. - **Database Webhooks:** a new Call an Edge Function section covers the Supabase Dashboard flow and a migration. The migration reads the key from Vault in a `security definer` trigger function. The section explains that the definer is required, because the roles that insert rows can't read Vault. - **Securing Edge Functions:** the service-to-service section is now a two-step setup. It shows how to disable the `verify_jwt` check in `supabase/config.toml`, with a link to the Authorization headers guide, and how to use `auth: 'secret'` in the function. It then links to Database Webhooks and Scheduling Edge Functions. - **`pg_net` queue:** Database Webhooks and Scheduling Edge Functions show a caution that any role that can log in to the database can read the secret key while the request waits, because `pg_net` writes the decrypted key to `net.http_request_queue` until it sends the request. Both pages include the caution from a new partial, `_partials/pg_net_queued_key.mdx`, which links to the troubleshooting article. ## Verification (`/test-the-docs`) | Snippet / step | Class | Sandbox | Result | Notes | | --- | --- | --- | --- | --- | | Function with `auth: 'secret'` and `verify_jwt = false`, called with the secret key on `apikey` | runnable-with-setup | Compose runner + `supabase start` | pass | Returns `200` | | Same function, called with the publishable key, then no key | runnable-with-setup | Compose runner + `supabase start` | pass | Rejected with `INVALID_API_KEY`, then `MISSING_CREDENTIALS` | | Scheduling Edge Functions: Vault secrets, then `cron.schedule` | runnable-with-setup | Compose runner + `supabase start` | pass | The cron run succeeded, and the function returned `200` | | Database Webhooks: Vault-based trigger function and trigger | runnable-with-setup | Compose runner + `supabase start` | pass | Inserts as `postgres` and as `authenticated` both reached the function with the documented payload | | Same trigger function as `security invoker`, insert as `authenticated` | runnable-with-setup | Compose runner + `supabase start` | pass | Fails with `permission denied for schema vault`, which confirms the page's explanation | | Database Webhooks: Dashboard steps | deferred | — | deferred | Needs a hosted project. Labels confirmed in the Studio source. | **Tier A path:** Vault secrets → `pg_cron` job → `pg_net` request → Edge Function with `auth: 'secret'` returns `200`. **Environment:** OrbStack; compose sandbox (`sandbox/run.sh`); fences in-container only. Two deviations from the stock sandbox, neither committed: - The sandbox pins Supabase CLI v2.39.2, which predates `sb_secret_` and `sb_publishable_` keys. The run used v2.121.0. - The `dind` service doesn't mount `/work`, so local functions fail with `failed to determine entrypoint`. The function file was copied into the DinD filesystem. `project_url` pointed at the local API gateway, because the database container can't reach the runner's `127.0.0.1`. ## Preview links - [Database Webhooks](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/database/webhooks) - [Scheduling Edge Functions](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/functions/schedule-functions) - [Securing Edge Functions](https://docs-git-alexisa-docs-1458-supabase.vercel.app/docs/guides/functions/auth) ## Post-merge > [!IMPORTANT] > After this PR merges, post the following comment on [FDBKIN-19992](https://linear.app/supabase/issue/FDBKIN-19992) and close it: > > The "Missing required headers" error happens when the webhook doesn't send an auth header to the Edge Function. Database Webhooks send only the headers you configure. [Database Webhooks → Call an Edge Function](https://supabase.com/docs/guides/database/webhooks#call-an-edge-function) shows how to add the secret key, either in the Dashboard with **Add secret key** or in a migration that reads the key from Vault. [Securing Edge Functions](https://supabase.com/docs/guides/functions/auth#service-to-service-calls) covers the function side: disable `verify_jwt` and use `auth: 'secret'`. |
||
|
|
70fe3de074 |
docs: move social login URLs to social sign-in (#52111)
## Problem [supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102) and [supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109) rename *social login* to *social sign-in* in visible text, so every sign-in method follows the same pattern. The URLs still say `social-login`, and the Expo quickstart's says `social-auth`. Keeping feature names consistent includes the URLs: readers see them in the address bar, in search results, and in links shared between docs, the Dashboard, and the marketing site. Part of [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459). ## Solution | Old URL | New URL | | --- | --- | | `/docs/guides/auth/social-login` | `/docs/guides/auth/social-sign-in` | | `/docs/guides/auth/social-login/*` (18 provider pages) | `/docs/guides/auth/social-sign-in/*` | | `/docs/guides/auth/quickstarts/with-expo-react-native-social-auth` | `/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in` | | `/features/social-login` | `/features/social-sign-in` | - **Redirects:** `apps/www/lib/redirects.js` has a permanent redirect for each old URL. One `:path*` entry covers the provider pages. Existing redirects that pointed at the old URLs point straight at the new ones, so no URL redirects twice. - **Links:** docs content, navigation, provider data, and SDK specs, Studio's Auth provider settings (29 "Learn more" links), the marketing site, the UI library docs, and the knowledge base use the new paths. - **Code name:** the docs navigation list `SocialLoginItems` is `SocialSignInItems`. Intentionally unchanged: - **Blog posts:** their links keep the old URLs and use the redirects. - **Sitemaps:** the `refresh-sitemaps.yml` workflow regenerates them. - **Image file names:** for example, `social-login.png` and `supabase-expo-social-auth-login.png`. Readers don't see them. - **UI library blocks:** the blocks are named `social-auth`, and the name is part of their install commands, so renaming them is a decision for the UI library's owners. ## Related PRs The rename spans three PRs, so the feature has one name on every surface: - [supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102) (merged): the docs. - [supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109) (merged): the marketing site, the Dashboard command menu, the UI library docs, the knowledge base, and the Docker configuration comments. - **This PR:** the URLs, including the Expo quickstart's, move to `social-sign-in` with redirects. ## Verification - Docs typecheck and the guides Markdown build pass. - `redirects.js` loads with 841 entries and no conflicting sources. - No `social-login` path remains outside blog posts, snapshots, generated files, the redirect sources, and image file names. To check the redirects, use the marketing site's preview, because `www` applies the docs redirects and the docs preview doesn't. If that preview serves production docs, the redirected page shows as missing until the new paths deploy. The redirect itself is what to check: - [/docs/guides/auth/social-login](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-login) - [/docs/guides/auth/social-login/auth-google](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-login/auth-google) - [/docs/guides/auth/quickstarts/with-expo-react-native-social-auth](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-auth) - [/features/social-login](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/features/social-login) ## Preview links - [Social sign-in](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-sign-in) - [Sign in with Google](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/social-sign-in/auth-google) - [Expo quickstart](https://docs-git-alexisa-docs-1459-urls-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in) - [Social sign-in feature page](https://zone-www-dot-com-git-alexisa-docs-1459-urls-supabase.vercel.app/features/social-sign-in) |
||
|
|
3f4ff4fd4d |
docs: use social sign-in and phone sign-in consistently (#52102)
## Problem The docs used several names for the same sign-in methods: "social auth", "social authentication", and "social login" for social providers, and "Phone Auth" and "Phone Login" for phone. Other methods use *sign-in*, such as passwordless email sign-in and anonymous sign-in. The Auth overview also listed the sign-in methods without linking to their pages, and the custom OAuth/OIDC provider note had two different versions. Resolves [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459). ## Decision This PR first standardized on *social login*, which the [word list](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/WORD_LIST.md) named as an exception to *sign-in*. @czenko approved dropping the exception, so the feature is now *social sign-in*, and every sign-in method follows the same pattern. One name per feature keeps the docs consistent for readers and AI agents, and new pages don't need a special case. ## Solution - **Social sign-in:** "social auth", "social authentication", and "social login" are "social sign-in" in docs page titles, headings, body text, link text, navigation labels, the getting started listing, and the C# SDK reference specs. - **Phone sign-in:** the Auth overview's providers list and both phone navigation labels match the phone pages' titles. - **Word list:** drops *social login* as an exception, and names *social sign-in*, *phone sign-in*, and *anonymous sign-in* as feature names. - **Auth overview:** each sign-in method links to its page. - **Custom provider note:** a new partial, `_partials/custom_oauth_providers_note.mdx`, is included by the providers list and Social sign-in. - **Expo quickstart:** both image alt texts describe their screenshots. Intentionally unchanged: - **URLs, code names, and file names:** `/docs/guides/auth/social-login/...`, `SocialLoginItems`, MDX file names, and image files such as `social-login.png`. - **Dated and quoted content:** blog posts, an event page, a customer story, and a quoted user tweet. - **JS SDK reference text:** "Social Login (OAuth) providers" in `signInWithOAuth` comes from the `supabase-js` repository. ## Related PRs The rename spans three PRs, so the feature has one name on every surface: - **This PR:** the docs. - [supabase/supabase#52109](https://github.com/supabase/supabase/pull/52109): the marketing site, the Dashboard command menu, the UI library docs, the knowledge base, and the Docker configuration comments. The UI library's blocks keep the name `social-auth`, because the name is part of their install commands, so renaming them is a decision for the UI library's owners. - [supabase/supabase#52111](https://github.com/supabase/supabase/pull/52111): the URLs, including the Expo quickstart's, move to `social-sign-in` with redirects. Merge this PR and #52109 first, then rebase #52111, because it edits some of the same lines. ## Preview links - [Auth overview](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth) - [Social sign-in](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth/social-login) - [Build a Social Sign-in App with Expo React Native](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-auth) - [Choosing the Right SSO Sign-in Flow](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/choosing-login-flow) - [Understanding SSO Sign-in Flows](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/login-flows) - [SSO Testing and Best Practices](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/platform/sso/testing-best-practices) - [Restore a Platform Project to Self-Hosted](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/self-hosting/restore-from-platform) - [Configure Social Sign-in (OAuth) Providers](https://docs-git-alexisa-docs-1459-supabase.vercel.app/docs/guides/self-hosting/self-hosted-oauth) |
||
|
|
d4a2c464b2 |
chore(docs) - update troubleshooting links to new destinations (#52095)
## Problem KB now has definitive version of the troubleshooting guides. Need to update the in content links to match work happening in #52088. ## Preview links N/A... all atomic changes to links, so previews not very helpful here. |
||
|
|
8bcbe3dcc7 |
feat(docs): extracts code block component (#51661)
## Problem new surfaces display code blocks their own way while docs has the full implementation but it lives inside `apps/docs` ## Solution - moves the docs code block parts to `ui-patterns/CodeBlock` as separate imports - kb code blocks now show line numbers, which matches docs | state | preview | | -------|------| | before | <img width="913" height="509" alt="image" src="https://github.com/user-attachments/assets/76ff0096-433a-4b06-9eca-1d79c4940e24" /> | | after | <img width="913" height="509" alt="image" src="https://github.com/user-attachments/assets/4f5d91d9-13df-44a0-9e65-edf605773c5f" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. visit /[docs/guides/database/tables#enabling-row-level-security ](https://docs-git-feat-shared-code-block-parts-supabase.vercel.app/docs/guides/database/tables#enabling-row-level-security)code blocks, line numbers, colors in light and dark mode, copy, and word wrap match 2. visit [/docs/guides/auth/passwords](https://docs-git-feat-shared-code-block-parts-supabase.vercel.app/docs/guides/auth/passwords) hover over a typed identifier tooltip should still show 3. visit a kb guide with code, for example [/kb/guides/migrate-from-mysql](https://kb-git-feat-shared-code-block-parts-supabase.vercel.app/kb/guides/migrate-from-mysql) 4. visit the [design system code block page](https://design-system-git-feat-shared-code-block-parts-supabase.vercel.app/design-system/docs/fragments/code-block) ## 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) |
||
|
|
1055bc6b45 |
Update limitations section for Supabase OAuth guide - no longer endorse DB password storage (#52126)
Removed mention of prompting for database password in limitations section. This is no longer official guidance. ## Problem Our documentation authored 3 years ago suggested storing user passwords as an integration workaround to OAuth limitations. We no longer endorse this practice. ## Solution Removed out of date guidance. <!-- ## 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) |
||
|
|
4825c6d9f5 |
fix(studio): clarify disk IO balance FDBKPRI-2885 (#51943)
## Problem Infrastructure and Observability label consumed disk IO burst credits as “Disk IO,” so a value of 1% appears inconsistent with a remaining balance of 99% in AWS or Grafana. Both surfaces request `disk_io_consumption`, which is the inverse of `disk_io_budget`. ## Fix Show `disk_io_budget` as “Disk IO balance” and explain that it represents the lower of the remaining throughput and IOPS burst balances. Infrastructure shows the lowest sampled balance over seven days; Observability shows the selected-window average. Keep Infrastructure's overall Compute score based on consumed credits, so a full balance stays healthy and a low balance still warns. Missing balance remains unavailable. Update the compute and disk guide and disk IO troubleshooting page to explain the remaining balance, its direction, and the different aggregation windows. ## How to test - Open Infrastructure settings for a project with burstable IO. Verify the balance headline and chart show remaining credits, with 100% full and 0% exhausted. - Open Observability and verify “Disk IO balance” shows the average remaining balance for the selected window. - Hover the labels to check the explanation and aggregation window. - Verify a high balance does not inflate Compute usage, a low balance raises the warning, and missing balance does not appear as 0% or 100%. - Focused unit and MSW component tests: 79 passed, including shuffled runs with retries disabled; regression mutations caught wrong metric selection, reversed pressure, and maximum-versus-minimum selection. ## Validation Studio typecheck, changed-file ESLint, and Prettier pass locally. Verified both surfaces on the deployed preview, including Observability refresh and the balance tooltip. Documentation formatting and review pass. The local markdown build is blocked by missing generated federated content and its GitHub credentials; docs CI validates the deployed build. ## Screenshots Same project on `supabase.green` (before) and the PR preview (after), captured October 20. Infrastructure uses the same seven-day window; Observability uses Last 24 hours. ### Infrastructure | Before | After | | --- | --- | |  |  | ### Observability | Before | After | | --- | --- | |  |  | Observability balance explanation:  Fixes FDBKPRI-2885 |
||
|
|
6ea109c69c |
Clarify Supavisor SSL Enforcement (#51941)
## Problem Adda docs note to clarify that SSL Enforcement enables TLS on both legs of the Supavisor connection, as this is a common question. ## 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) |
||
|
|
e854b84ed4 |
docs - broken link in serverless drivers page (#52042)
## Problem broken link |
||
|
|
ae991bb19e |
docs: correct default privilege and function revoke guidance (#51960)
Issue found during my dogfooding project :) ## Problem The docs on default privileges in `public` don't match what Postgres grants or what the revoke statements do: - **Default privileges:** Securing your API and the Row Level Security guide say new tables grant `SELECT`, `INSERT`, `UPDATE`, and `DELETE`. New tables grant every table privilege, which also includes `TRUNCATE`, `REFERENCES`, `TRIGGER`, and, on Postgres 17, `MAINTAIN`. - **Revoking them:** the statements in Revoke default privileges match what the Dashboard runs. They remove the privileges the Data API uses, and leave the other four on new tables and `UPDATE` on new sequences. - **Functions:** `alter default privileges ... in schema public revoke execute on functions from public` has no effect. Postgres grants `EXECUTE` to `PUBLIC` through a global default, and a revoke limited to one schema can't remove it ([Postgres docs](https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html)). New functions stay callable by `anon` and `authenticated` through the Data API. Securing your API, Working with branches, and Database functions each say they don't. - **Dashboard label:** Working with branches refers to a **Default privileges for new entities** setting. The Data API settings label it **Automatically expose new tables**. Resolves [DOCS-1457](https://linear.app/supabase/issue/DOCS-1457/default-privilege-docs-miss-truncate-references-trigger-and-maintain). ## Solution The pages describe what Postgres grants and what the Dashboard setting leaves behind. The revoke procedure removes every default privilege on new objects. - **Securing your API:** Default privileges shows the defaults in a table, and lists what turning off **Automatically expose new tables** in the Data API settings leaves behind. Revoke default privileges revokes every privilege on new tables, sequences, and functions, including the `execute` grant to `PUBLIC`. A caution explains that this revoke also restricts functions in other schemas, such as helper functions that RLS policies call. A new Check your default privileges section has a query, run in the SQL Editor or with `psql`, that lists what each Data API role receives on new objects. - **Row Level Security:** the grants table lists every privilege, which matches its introduction. - **Working with branches:** uses the current setting label, and says what the revoke migration leaves, with `maintain` marked as Postgres 17 only. - **Database functions:** revokes `EXECUTE` from `PUBLIC` without `in schema`, and notes that the change applies to functions in every schema. Each changed snippet was run in page order on a hosted project on Postgres 17.11, inside a transaction that rolled back. ## Product issue The Dashboard's **Automatically expose new tables** setting runs the same function revoke (`packages/pg-meta/src/sql/studio/database/privileges.ts`), so turning it off leaves new functions callable. [DAT-192](https://linear.app/supabase/issue/DAT-192) tracks it. cc @supabase/data-api @avallete ## Preview links - [Securing your API](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/api/securing-your-api) - [Row Level Security](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/database/postgres/row-level-security) - [Working with branches](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/deployment/branching/working-with-branches) - [Database functions](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/database/functions) ## Additional context - The Working with branches sentence about new functions on branches follows from the Postgres default. It wasn't tested on a branch. - Securing your API and the Row Level Security guide still describe defaults "on existing projects". That wording changes when the new default reaches every project, so this PR leaves it. |
||
|
|
f5b00a5237 |
docs: use the standard run snippet for run-this-query steps (#51974)
## Problem Many pages tell readers to run SQL in the SQL Editor only. An agent can't use the Dashboard, so it has no way to run the query. supabase/supabase#51973 adds a standard snippet that also offers `psql`. Existing pages don't use it yet. ## Solution - **Snippet swap:** each simple run-SQL instruction now uses the standard snippet, placed before the SQL block. Where the old sentence said what the SQL does, that part stays as its own sentence before the snippet. ## Preview links On each page, search for `over a direct connection`. | Page | Live | Preview | | --- | --- | --- | | `ai/automatic-embeddings` | [Live](https://supabase.com/docs/guides/ai/automatic-embeddings) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/ai/automatic-embeddings) | | `database/connecting-to-postgres/pooling-and-limits` | [Live](https://supabase.com/docs/guides/database/connecting-to-postgres/pooling-and-limits) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits) | | `database/extensions/pg_net` | [Live](https://supabase.com/docs/guides/database/extensions/pg_net) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/extensions/pg_net) | | `database/postgres/dropping-all-tables-in-schema` | [Live](https://supabase.com/docs/guides/database/postgres/dropping-all-tables-in-schema) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/dropping-all-tables-in-schema) | | `database/postgres/first-row-in-group` | [Live](https://supabase.com/docs/guides/database/postgres/first-row-in-group) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/first-row-in-group) | | `database/postgres/row-level-security` | [Live](https://supabase.com/docs/guides/database/postgres/row-level-security) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/row-level-security) | | `database/postgres/which-version-of-postgres` | [Live](https://supabase.com/docs/guides/database/postgres/which-version-of-postgres) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/which-version-of-postgres) | | `deployment/managing-environments` | [Live](https://supabase.com/docs/guides/deployment/managing-environments) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/deployment/managing-environments) | | `getting-started/quickstarts/hono` | [Live](https://supabase.com/docs/guides/getting-started/quickstarts/hono) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/getting-started/quickstarts/hono) | | `getting-started/quickstarts/refine` | [Live](https://supabase.com/docs/guides/getting-started/quickstarts/refine) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/getting-started/quickstarts/refine) | | `getting-started/quickstarts/spring-boot` | [Live](https://supabase.com/docs/guides/getting-started/quickstarts/spring-boot) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/getting-started/quickstarts/spring-boot) | | `platform/database-size` | [Live](https://supabase.com/docs/guides/platform/database-size) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/platform/database-size) | | `platform/postgres-connection-logging` | [Live](https://supabase.com/docs/guides/platform/postgres-connection-logging) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/platform/postgres-connection-logging) | | `platform/upgrading` | [Live](https://supabase.com/docs/guides/platform/upgrading) | [Preview](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/platform/upgrading) | ## Manual testing 1. Open [Which version of Postgres](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/which-version-of-postgres). The snippet appears before the query. 2. Click **Direct connection** in the snippet. It goes to the **Direct connection** section of the connection guide. 3. Open [Row Level Security](https://docs-git-docs-sql-run-sentence-sweep-supabase.vercel.app/docs/guides/database/postgres/row-level-security). The snippet comes before the SQL, and the migration option follows it. |
||
|
|
72324ca0f7 |
docs: update Snowflake permissions and partial-update guidance (#51997)
## Problem The Snowflake guide does not reflect the partial-update support and automatic companion views introduced in [supabase/etl#1110](https://github.com/supabase/etl/pull/1110). It also omits the `CREATE VIEW` permission, which existing pipelines need before upgrading to avoid startup failures. ## Solution - Add `CREATE VIEW` to setup and upgrade instructions, including ownership and consumer grants. - Explain automatically maintained companion views, partial updates, NULL semantics, and query options. - Document existing-table upgrades, supported keys, schema changes, history requirements, and resync. ## Review instructions 1. Open the Snowflake destination guide in the docs preview. 2. Check that setup and upgrade instructions clearly require `CREATE VIEW` before starting the updated pipeline. 3. Review the companion-view examples and the distinction between queries for complete and partial history. ## 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) |
||
|
|
61d9b7304d |
feat: update mgmt api docs (#51246)
This PR updates Management API docs automatically. This regenerates: - Management API specs and sections - Personal Access Tokens permission-to-endpoint table - Personal Access Tokens MCP tool permissions table Sources include the live Management API specs, MCP permission map, and Studio's shared permission catalog. Co-authored-by: antlio <14966155+antlio@users.noreply.github.com> |
||
|
|
0670509381 | feat(pipelines): Improve lag UI for Pipelines (#51863) | ||
|
|
b46b645c6d |
docs: clarify private flag behavior for realtime.send (#50537)
## Problem Fixes #50532 The database examples in the Broadcast guide pass the last argument of `realtime.send()` and `realtime.send_binary()` positionally, label it differently each time, and two of them pass `false` without saying that makes the message public. The note at the top calls it the "public flag" and names it `is_private`, but the argument is `private`. ## Solution All three database examples now use named notation with `private => true`, so each call says what the value means and shows the default. The note refers to the `private` argument and lists the default first. The Studio changes from the earlier version of this branch are dropped and will go in their own PR. ## Review instructions 1. Open the Broadcast guide and check the examples under "Broadcast from the Database" and "Broadcasting a message from your database". 2. Run any of them in the SQL editor. Each inserts a private message into `realtime.messages`. |
||
|
|
0afbc50aea |
fix(docs): repair two docs destinations (#51959)
I fixed an Auth troubleshooting link that returned 404 to crawlers and added a permanent redirect from the readable password-reset guide URL to its existing canonical page. ## To test Tested on the [docs preview](https://docs-git-fix-growth-1342-docs-404-links-supabase.vercel.app/docs/guides/troubleshooting/database-error-saving-new-user-RU_EwB) and [website preview](https://zone-www-dot-com-git-fix-growth-1342-docs-404-links-supabase.vercel.app): - [x] Open the Auth troubleshooting guide and follow its Auth API link. Expect visible `createUser` reference content; browser and bot requests return 200. - [x] Request the readable password-reset URL and its `.md` variant on the website preview. Expect 308 to the exact canonical paths; the corresponding docs preview destinations return 200. - [x] Request the canonical URLs directly on the docs preview and an unrelated unknown troubleshooting URL. Expect 200 without redirects for the canonical pages and 404 for the unknown URL. **Note:** The docs preview logged React hydration error `#418` on initial load. The browser disconnected before I could compare the production console (`Browser is not available: 3`). ## Linear - fixes GROWTH-1342 |
||
|
|
3de2439b9f |
docs: add cross-links to related guides (part 2) (#51857)
## Summary Adds internal cross-links from existing docs pages to related guides and troubleshooting pages. As these are relatively atomic changes (1-2 links added per average file), intentionally not including before/after links for review here. --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
004d90c5a3 |
docs: add cross-links to related guides (part 3) (#51858)
## Summary Adds internal cross-links from existing docs pages to related guides and troubleshooting pages. As these are relatively atomic changes (1-2 links added per average file), intentionally not including before/after links for review here. --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
1e7a5c3243 |
docs: add cross-links to related guides (part 1) (#51856)
## Summary Adds internal cross-links from existing docs pages to related guides and troubleshooting pages. As these are relatively atomic changes (1-2 links added per average file), intentionally not including before/after links for review here. --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
090e5bceff |
feat(studio): filter organization usage by branch FE-4153 (#49257)
## Summary Customers could see a branch-driven egress overage in their organization total but could not select the branch on the Usage page. This adds a branch filter next to the parent project selector and uses the selected branch's project ref for usage requests. - Validate bookmarked branch refs before displaying usage. Show loading and API errors explicitly, and disclose when an unavailable branch falls back to its parent. - Keep the filter, notice, and usage requests on the same project ref. Allow returning to the parent even when the branches response omits its main row. - Find the selected branch's disk usage beyond the first page of organization projects and explain that deleted branches still contribute to organization totals. - Correct the branching and egress documentation to explain separate branch usage. ## Scope This is the branch-selector improvement proposed in FE-4153's discussion. It does not provide the original ticket's reconciled per-project egress table or historical rows for deleted branches. The current daily-usage API contract supports a single project filter, but does not return project-grouped usage. Keep the full reconciliation work open. ## Validation All 47 focused Vitest tests pass across six files, including nine MSW page tests covering usage request refs, direct branch links, pending/failed lookups, deleted-branch fallback, invalid-project recovery, and denied subscription permissions. Disk tests cover selection beyond the first 96 projects and pagination failures. Deterministic shuffled runs with seeds `4153` and `49257` pass with retries disabled (`--retry=0`). Four focused production mutants were killed by behavioral assertions; original source bytes were restored and verified after every probe. Studio TypeScript, Prettier on all PR paths, and focused lint checks pass; inherited `any` warnings remain. Browser QA on the matching `be17d77` Vercel preview passed parent usage (0.213 GB), searching for `dev-test`, branch selection, return to main, invalid-project recovery, stale-branch fallback, and returning to organization totals. The selected branch showed 0 GB, so nonzero branch overage was not verified. Browser network traffic was not captured; request-ref coverage comes from MSW. Three existing auth/router/platform module-mock scaffolds remain as a test-harness limitation; strict no-module-mock compliance is not claimed. All Studio unit-test and E2E shards passed on be17d77801; CI report jobs are finishing. Related: FE-4153 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Filter organization usage by project branch with searchable branch selection. Usage details reflect the selected branch where available, including branches found on later project-list pages. * See whether usage is scoped to a branch, the main branch, or a project, and switch to organization-wide totals. Billing and quota totals include all branches, including deleted branches that are no longer selectable. * **Documentation** * Clarified how non-compute usage is recorded per branch, included in organization totals, and viewed; it isn’t itemized by branch on invoices. * Clarified that Preview branch Egress counts toward organization totals, not the parent project’s usage, and how to view it. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
b37576924f |
docs(troubleshooting): Update "Formatting support requests" guide (#51824)
- Remove unnecessary quotes - Added minor additions to all cater guide to non LLM usage ## Review instructions Just content changes ## 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) |
||
|
|
bc27d2661e | chore(self-hosted): update 2026-10-16 - 0.8.3 (#51839) | ||
|
|
09f80f528e |
docs: reference the ability to use custom dns from VPCE (#51778)
Quick update to privatelink walkthrough in reference to custom DNS |
||
|
|
0612cbdb27 |
fix(ui): drop stray tab border (#51657)
## Problem there's a legacy border style duplicating border after recent rabs change in docs ## Solution - removes stray border | state | preview | | -------|------| | before | <img width="913" height="509" alt="image" src="https://github.com/user-attachments/assets/dba5a5ee-5212-4be2-86c0-e96d9dac41fb" /> | | after | <img width="913" height="509" alt="image" src="https://github.com/user-attachments/assets/1f7d20eb-2f03-45b0-9a2c-4af8fa335784" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. visit `/docs/guides/auth/passwords#signing-up-with-an-email-and-password` ## 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) |
||
|
|
339797498c |
docs(vercel-marketplace): refresh the Vercel Marketplace guide (#51630)
## Problem The [Vercel Marketplace guide](https://supabase.com/docs/guides/integrations/vercel-marketplace) describes the integration as a Public Alpha, and its Quickstart doesn't match how readers set it up. The **Deploy with Vercel** button deploys an example app that doesn't include Supabase. The section on environment variable sync sits next to the two setup paths, even though it applies to both. The page also uses promotional phrasing and bare `Note:` paragraphs where the style guide calls for admonitions. These issues came up while reviewing #51617, which fills in the **Via Vercel Marketplace** step. Resolves DOCS-1451. ## Solution Manual review plus a review with the `edit-the-docs` skill. - **Quickstart:** The Quickstart now opens by naming both setup paths, a starter template and the Vercel Marketplace, and explains that both create a Supabase project and sync the same environment variables. The template button deploys the Next.js Supabase starter and installs the Supabase integration from the Vercel Marketplace, matching the deploy link on Vercel's Supabase template page. - **Release status:** The Public Alpha admonition is removed. - **Overview:** Promotional phrases such as "seamless experience" and "easy access management" now name the specific behavior: Vercel bills you, you sign in with your Vercel account, and Vercel team roles carry over to Supabase. - **Studio support:** Readers get a click path for each entry point. The **Integrations** tab opens the Supabase dashboard homepage, and the **Storage** tab opens a specific project. Both tab names match the current Vercel dashboard. Each instruction names the location before the control, and buttons use _click_, per `WORD_LIST.md`. - **Admonitions:** The permissions note is now a `note` admonition. The billing cycle note is a `caution` admonition, because a plan change resets the billing cycle. - **Capitalization:** Common nouns such as organization, project, and integration are lowercase. - **Limitations:** The organization removal bullet now gives the order of operations: delete the associated projects, then uninstall the integration. Two writing patterns from this PR are now proposed as style guide rules in #51632 (DOCS-1452): using _the following_ when a sentence sits between a reference and its list, and putting the location before the action in UI instructions. ## Preview links https://docs-git-alexisa-docs-1451-supabase.vercel.app/docs/guides/integrations/vercel-marketplace ## 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) |
||
|
|
4c7014745c |
feat(studio): add custom OIDC option to third-party auth providers (#51612)
<!-- claude-slack-attribution --> _Requested by **Stojan Dimitrovski** · [Slack thread](https://supabase.slack.com/archives/C022071RB2L/p1791475016175969?thread_ts=1791475016.175969&cid=C022071RB2L)_ ## Problem The Management API accepts any OIDC issuer for third-party auth (`POST /v1/projects/{ref}/config/auth/third-party-auth` with `oidc_issuer_url`), but the Dashboard only offers Firebase, Clerk, WorkOS, Auth0 and Amazon Cognito. Users with another OIDC provider have no way to register it from the Dashboard. Studio also hides any issuer it does not recognize: `IntegrationCard` returns `null` for the `custom` type, so an issuer added through the API never shows up in the list and cannot be deleted from the Dashboard. ## Solution - Add a "Custom OIDC" item to the Add provider menu on the Third-Party Auth page. - New `CreateCustomOidcDialog` with a single required Issuer URL field. It reuses `useCreateThirdPartyAuthIntegrationMutation`, so query invalidation and the error toast behave like the other providers. The URL is sent as typed after trimming whitespace. - New `isValidOidcIssuerUrl` helper in `ThirdPartyAuthForm.utils.ts`: the value must be an `https://` URL with a host, no query string, no fragment, and no embedded credentials. - The dialog copy is kept short: a one-line description and a single helper line noting that signing keys are found at the issuer's `/.well-known/openid-configuration`. - `IntegrationCard` now renders custom issuers (badge-check icon, "Custom OIDC" label, Issuer URL, Delete integration) instead of hiding them. Delete uses the existing flow and permission check. - The `custom` label changes from "Custom" to "Custom OIDC". - New docs page `apps/docs/content/guides/auth/third-party/custom-oidc.mdx` (served at `/docs/guides/auth/third-party/custom-oidc`). It covers the Dashboard flow, the Management API alternative, the `role` claim, client setup, and RLS. It is linked from the third-party auth overview and added to the docs sidebar. This supersedes the draft docs PR #51611. Not included: UI for `jwks_url` and `custom_jwks`. The page and menu keep the same feature gate (`authentication:third_party_auth`) and the same permission checks as the other providers. Before: the Add provider menu lists five providers. An issuer that is not one of them is registered only through the API and does not appear in the Dashboard. After: the menu has a sixth item, Custom OIDC. It opens a dialog that takes an issuer URL, rejects non-HTTPS values with an inline message, and registers the issuer. The new provider appears in the list and can be deleted from there. ## Review instructions 1. Open a project's Authentication > Third-Party Auth page and open Add provider. Check for the new Custom OIDC item. 2. Enter `http://example.com` and submit. The field shows an inline error and no request is sent. 3. Enter a valid HTTPS issuer URL that serves an OIDC discovery document and submit. A success toast appears and the provider shows in the list as Custom OIDC with its Issuer URL. 4. Enter an issuer the API rejects. The API error shows in the existing error toast and the dialog stays open. 5. Delete the provider with Delete integration and confirm it disappears from the list. 6. Read the new docs page and check that its Dashboard steps match the UI. Local checks: - `vitest --run components/interfaces/Auth/ThirdPartyAuthForm`: 20 tests pass (validation helper unit tests plus dialog component tests with MSW). - `tsc --noEmit` in `apps/studio`: no new errors. - ESLint on the directory: no warnings in the new or changed code. - Prettier is clean on the changed files, including the docs page. The typos check is clean on the docs page and overview. I did not run the dialog in a browser against a real project, so there are no screenshots. The docs app was not built or rendered locally. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) 🤖 Generated with [Claude Code](https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe) https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe --- _Generated by [Claude Code](https://claude.ai/code/session_011HY2zckzPLcvXd28JPSqBe)_ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
626f0d412a |
docs(branching): explain what a new branch inherits and what each push runs (#51753)
## Problem Users ask whether the GitHub integration applies migrations and syncs `config.toml` to a branch on its own or whether they need a GitHub Action for it but there's no docs clarifying that. The branching guides also does not have when a new branch inherits from its base project, where a dashboard branch gets its schema, what the `configure`, `migrate`, and `deploy` steps read from the repository, and what the workflow step statuses mean. ## Solution Added the missing facts to the four pages that already cover each topic, with no new pages and no moved headings. - Overview: a "What a new branch starts with" section listing the copied settings, the placeholder Auth secrets, the webhook default, and where each branch kind gets its schema. - GitHub integration: a "What runs on each push" subsection that answers the FDBKIN-11978 question directly, the `config.toml` sections the configure step applies and the protected-branch rule, two migrate edge cases and the `[db.migrations]` switch, and a new "Edge Functions" subsection on copy-from-base and checksum skips. - Dashboard: "Where a dashboard branch gets its schema". - Troubleshooting: the step status table and two new causes under "Config.toml not applying". ## 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) |
||
|
|
d46e226af8 |
docs(cli): update local stack guides for CLI v2.120.0 and v2.121.0 behavior (#51751)
## Problem The two `supabase stack` guides describe behavior the CLI changed in v2.120.0 (Oct 6) and v2.121.0 (deploy PR supabase/cli#7104 open). A reader following them today hits different output than the pages promise. | Guide says | CLI does | Since | | --- | --- | --- | | `stack logs` streams live lines only, no history | Keeps history, adds `--tail`, `--since`, `--service gateway`, reads while stopped (supabase/cli#6893) | v2.120.0 | | Rejected config change fails with `cannot change on the saved stack` | Fails with `The saved stack cannot adopt these changes` (supabase/cli#6944) | v2.120.0 | | Port changes always need a new local project | A stopped project re-plans ports on next start (supabase/cli#6950) | v2.121.0 | | No bulk destroy | `destroy` accepts repeated `--stack-id` (supabase/cli#7000) | v2.121.0 | | OrioleDB unsupported | `db.orioledb_version` runs in both runtimes (supabase/cli#6934) | v2.121.0 | | Nothing about native `pg_cron` | Jobs run in background workers; earlier versions fail every job (supabase/cli#7039) | v2.121.0 | The CLI getting-started guide (#50736) also says a container runtime is required and never mentions the native runtime. ## Solution Updated both stack guides and added one sentence to the getting-started prerequisites. - v2.121.0-only behavior is marked "In CLI v2.121.0 or later", with the earlier behavior stated beside it. The guides' baseline stays at v2.119.0. - Every claim was checked against supabase/cli `develop` source and the commits above. - The `supabase stack` commands stay out of the generated CLI reference by design, so these guides remain the only place the flags are documented. 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) |
||
|
|
31a74e8663 | fix(self-hosted): align OAuth and OIDC discovery api-gw routes with the platform (#51493) | ||
|
|
2d7e5f57ed |
chore(docs / www) - update video links to latest DevRel videos where applicable (#51606)
## Problem Several outdated (or missing) video references across docs and www apps. ## Solution Updates these links (and adds where appropriate) to link out to the newer series on Supabase by @dshukertjr and individual videos by @dijonmusters ## Preview links [docs](https://docs-git-kody-devrel-708-update-video-links-supabase.vercel.app/docs) [www](https://zone-www-dot-com-git-kody-devrel-708-update-vid-8e2d6a-supabase.vercel.app/) ## Review instructions For marketing folks specifically, sanity check on the [changes](https://github.com/supabase/supabase/pull/51606/changes#diff-1fb413a22e16c9b7b200e47aa9661c8be240a52a06276ed04c450e3d92c9a12a) to the features.tsx file, which render to: Page | Before (live) | After (preview) -- | -- | -- vector-database | https://supabase.com/features/vector-database | https://zone-www-dot-com-git-kody-devrel-708-update-vid-8e2d6a-supabase.vercel.app/features/vector-database realtime-postgres-changes | https://supabase.com/features/realtime-postgres-changes | https://zone-www-dot-com-git-kody-devrel-708-update-vid-8e2d6a-supabase.vercel.app/features/realtime-postgres-changes realtime-broadcast | https://supabase.com/features/realtime-broadcast | https://zone-www-dot-com-git-kody-devrel-708-update-vid-8e2d6a-supabase.vercel.app/features/realtime-broadcast realtime-presence | https://supabase.com/features/realtime-presence | https://zone-www-dot-com-git-kody-devrel-708-update-vid-8e2d6a-supabase.vercel.app/features/realtime-presence deno-edge-functions | https://supabase.com/features/deno-edge-functions | https://zone-www-dot-com-git-kody-devrel-708-update-vid-8e2d6a-supabase.vercel.app/features/deno-edge-functions cli | https://supabase.com/features/cli | https://zone-www-dot-com-git-kody-devrel-708-update-vid-8e2d6a-supabase.vercel.app/features/cli role-based-access-control | https://supabase.com/features/role-based-access-control | https://zone-www-dot-com-git-kody-devrel-708-update-vid-8e2d6a-supabase.vercel.app/features/role-based-access-control --------- Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com> |
||
|
|
21f7e306ee |
docs(cli): align declarative schema and diff engine docs with CLI behavior (#51609)
## Problem Four docs pages describe CLI behavior that v2.120.0 no longer has. A reader following them hits a wrong result in three places. - The declarative guide tells legacy-engine users who ran `db pull --declarative` to delete the exported tree. The command also rewrites `[db.migrations].schema_paths` in `config.toml`, so `db diff` keeps failing after the delete. The guide also claims the failure happens "on the first file". The code does not guarantee that. - The declarative directory moved from `supabase/database` to `supabase/schemas` in v2.115.0. The CLI warns when it finds a tree at the old path. No page mentions the move or the warning, and the `db schema declarative sync` example in the command reference still prints the old path. - The command reference marks `--experimental` as required on the declarative commands. `[experimental.pgdelta] enabled = true` also unlocks them. Two smaller gaps: the diff engines page shows how to fall back to `migra` for one run but not how to try `pg-delta` for one run, and the guide omits the note `db diff -f` prints when it ignores schema files. Every claim was checked against the CLI source on `develop` and the v2.120.0 tag. ## Solution Docs-only change. Four files, 17 insertions, 8 deletions. - `declarative-database-schemas.mdx`: corrects the legacy caution, documents the pre-2.115.0 directory and its warning, adds the `db diff -f` note. - `diff-engines.mdx`: adds the single-run opt-in table (`db diff --use-pg-delta`, `db pull --diff-engine pg-delta`, `--experimental` for the declarative commands) and the `SUPABASE_EXPERIMENTAL_PG_DELTA` override. Updates the legacy `db pull --declarative` row. Prettier realigned the comparison table, which accounts for most of that page's diff. - `cli_v1_config.yaml`: `schema_paths` notes the automatic rewrite on `migra` and the warning on `pg-delta`. `declarative_schema_path` notes the pre-2.115.0 default. - `cli_v1_commands.yaml`: fixes the example path and drops `required: true` from `--experimental` on the two declarative commands. Both match the spec the CLI generator produces from `develop`. The command reference is generated from the CLI repo, so the same fixes are in supabase/cli as a separate PR. Without that, the next release's reference update reverts them here. ## Review instructions 1. Open the preview for `/docs/guides/local-development/declarative-database-schemas` and search for "schema_paths". The legacy caution should say the command rewrites the setting and tell readers to remove it. 2. On the same page, search for "2.115.0". The directory note should name the version and both fixes. 3. Open the preview for `/docs/guides/local-development/diff-engines` and search for "single run". The opt-in table should render, and the comparison table below it should still align. 4. Open the CLI reference for `db schema declarative sync`. The second example should print `supabase/schemas`, and `--experimental` should not show as required. 5. Open the config reference entries for `db.migrations.schema_paths` and `experimental.pgdelta.declarative_schema_path` and read the added sentences. 6. Optional source check in supabase/cli `develop`: `updateDeclarativeSchemaPathsConfig` in `apps/cli/src/commands/db/shared/pgdelta.write.ts` and `apps/cli/src/commands/db/schema/declarative/declarative.former-default.ts` back the two main claims. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: avallete <andrew.valleteau@supabase.io> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
3910dda149 |
chore(docs) - update vercel marketplace mention (#51617)
## Problem outdated placeholder for the `vercel marketplace` navigation. this is now live ## Preview URL https://docs-git-docs-chore-update-vercel-marketplace-mention-supabase.vercel.app/docs/guides/integrations/vercel-marketplace#via-vercel-marketplace |
||
|
|
2ba7352cfe |
docs: clarify declarative pg_cron job workflow (#51596)
## Problem The declarative schemas guide does not explain how pg-delta tracks pg_cron jobs. Its guidance that schema diffs exclude row data can also suggest that jobs stored in cron.job are excluded. Readers need to know where to declare jobs, how changes become migrations, and why jobs without unique names are skipped. ## Solution Document the declarative workflow for pg_cron jobs, including: - Declaring jobs in SQL files under supabase/schemas/. - Giving each job a unique name. - Generating migrations when job declarations change or are removed. - The scheduling and unscheduling calls emitted by the engine. Connect the DML caveat to the extension configuration explanation so readers understand why supported configuration rows are tracked. Validation: Prettier, Markdown generation, and git diff --check passed. The cron workflow was checked against source code but was not executed in a sandbox. ## Review instructions 1. Open the declarative database schemas guide in the docs preview. 2. Read Data manipulation language and follow the extension configuration link. 3. In Extension-managed objects, confirm that the cron guidance explains where to declare jobs, the naming requirement, and the generated migration behavior. 4. Follow generate and apply a migration and confirm it leads to the existing workflow. ## 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) |
||
|
|
1b1c495c6a |
docs: note deno.json/package.json required for .npmrc (#50320)
## Summary - .npmrc is only read when deno.json or package.json also exists in the function's directory. Adds a caution note to the private npm packages section. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Added a caution explaining that private NPM package configuration requires a `deno.json` or `package.json` file in the function directory. - Clarified that `.npmrc` is ignored when neither configuration file is present. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
1c97fe51be |
docs: move C# SDK from community to official support (#51487)
## Problem Remove COMMUNITY badge from C# SDK Reference, and fix links pointing to `supabase community`. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
853bac960e |
feat(studio): limit DuckLake managed setup to the current project (#51380)
## Problem In **Add pipeline**, the managed DuckLake configuration method (**Select Supabase projects**) lets users pick any project in their organization for the catalog and for storage. For now, managed DuckLake should only use the current project. ## Solution - Rename the option to **Use this Supabase project** and remove the **Catalog project** and **Storage project** selectors. Users still set **Metadata schema** and **Bucket**. - Remove `ducklakeCatalogProjectRef` and `ducklakeStorageProjectRef` from the form schema, default values, and validation rather than hiding them, so the form can't carry another project's ref. `buildDucklakeConfig` sets both `catalogProjectRef` and `storageProjectRef` to the current project ref, which the config builders already receive from the URL. - The bucket list and the **New bucket** dialog always target the current project. The cross-region warning is removed because it can no longer trigger. - `data/replication` (types and API payload mapping) is unchanged. It still sends `project_ref` for the catalog and storage, now always the current project. - Fix in passing: creating a bucket from the dialog now sets the field with `shouldDirty` and `shouldValidate`, so a stale "Bucket is required." error clears. - Edit mode and **Enter connection details** are unchanged. The DuckLake docs page (`apps/docs/content/guides/database/replication/pipelines/ducklake.mdx`) still describes choosing separate projects. It'll be updated in a follow-up PR that should merge after this one ships. ## Review instructions 1. Open a project, go to **Database** > **Pipelines**, select **Add pipeline**, and choose **DuckLake**. 2. Under **Configuration method**, check that the first option is **Use current Supabase project** and that there's no **Catalog project** or **Storage project** selector. 3. Open the **Bucket** list and check that it shows the current project's buckets. **New bucket** creates a private bucket in the current project. 4. Create the pipeline and check that the request sends the current project ref as both `catalog.project_ref` and `storage.project_ref`. 5. Run the unit tests: `cd apps/studio && pnpm vitest run components/interfaces/Database/Replication/DestinationPanel/DestinationForm data/replication` ## 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) --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
325a5a0da7 |
fix(studio): polish extension installation dialogs (#51463)
## Problem The enable-extension dialog in #51440 needs clearer installation copy and a consistent disclosure for custom-schema guidance. On narrow screens, footer buttons touch and dialog content can scroll sideways. ## Solution Polish the dialog on top of #51440: - Explain fixed-schema requirements and hide custom-schema guidance when the extension requires a specific schema. - Share the disclosure interaction with the session-expired and API-hardening dialogs through `ui-patterns/DialogDisclosure`, documented with a live design-system example. - Fix narrow-screen overflow and add vertical spacing to shared dialog footers. - Refine inline-code styling and update the PostGIS instructions and E2E button locator. | After | | --- | | <img width="852" height="710" alt="CleanShot 2026-10-09 at 12 17 47@2x" src="https://github.com/user-attachments/assets/59f6f1e7-9884-4cdb-b678-62b7f88a8ec5" /> | | _Standard extension_ | | <img width="836" height="1092" alt="52254" src="https://github.com/user-attachments/assets/dbf53d3e-6583-4c3b-8f43-577e0723d9a7" /> | | _Standard extension expanded accordion_ | | <img width="836" height="604" alt="CleanShot 2026-10-09 at 12 20 04@2x" src="https://github.com/user-attachments/assets/c8e3961f-2683-440c-a2a2-48ccd53c4a17" /> | | _Extension with fixed schema_ | ## Review instructions 1. Open `/project/<ref>/database/extensions`. Turn on the toggle for a disabled `postgres_fdw` extension. Expand **Install in a different schema** and check its hover, keyboard focus and full-width click target. Repeat with `pg_cron` or `pgmq`: the intro must say **must**, and custom-schema guidance must be absent. Cancel without enabling. 2. At 320 px and 375 px, check the extension dialog's alignment, inline-code rendering, wrapped SQL and stacked **Enable** / **Cancel** spacing. Confirm the page does not scroll sideways. 3. On a platform project with the Data API enabled, open `/project/<ref>/integrations/data_api/settings`. Under **Harden Data API**, click **Harden Data API**. Expand both sections and check the same trigger behaviour. Confirm completed sections still show their check icons. Close without applying either action. 4. The session-expired dialog has no direct route. It is rendered by `apps/studio/hooks/misc/withAuth.tsx` after authentication loading exceeds 10 seconds. For repeatable local review, temporarily pass `visible={true}` to its `SessionTimeoutModal` callsite, then open `/projects`. Expand **Having trouble?** by clicking the text or chevron and using Enter / Space. Check the help text and controls. Close the dialog without signing out or clearing site data, then undo the temporary prop change. 5. In the design system, open [`/docs/components/dialog#optional-details`](https://design-system-git-dnywh-choreextension-dialog-polish-supabase.vercel.app/design-system/docs/components/dialog#optional-details). Click **Export results**, then expand **What’s included** with the mouse and keyboard. The demo imports the same `ui-patterns/DialogDisclosure` used by Studio. 6. Open another dialog and an alert dialog at a narrow width. Check the shared 8 px gap between stacked footer buttons. Review inline-code examples on `/docs/components/typography` for the shared styling change. |
||
|
|
8617532ae1 |
fix(docs): remove orphaned cli.mdx and update stale /guides/cli link (#51495)
Resolves [DOCS-1252](https://linear.app/supabase/issue/DOCS-1252/resolve-e2e-broken-link-errors-for-the-cli-guide). #48453 updated most `/cli` links to `/local-development`. This PR covers the remaining `/cli` references. ## Changes - **Delete `apps/docs/content/guides/cli.mdx`.** The file has had no route since the October 2024 docs IA reorganization (#29364), which moved the CLI guides under `local-development/`. - In production, `/docs/guides/cli` redirects to `/docs/guides/local-development` through `apps/www/lib/redirects.js`, so the file's content never renders. - On Vercel previews, which don't have `www` redirects, the URL returns 404. Docs E2E tests every changed guide file, so any edit to `cli.mdx` fails the required check. - Deleting it is safe for Docs E2E, which only scopes added or changed files. The redirect still covers the old URL. - **Update the connection-refused troubleshooting page** to link to `/docs/guides/local-development` instead of the redirected `/docs/guides/cli`. - **Point the "Go to Local Dev / CLI" command palette entry at `/guides/local-development`.** It routed to `/guides/cli`, which only resolves through the `www` redirect and returns 404 on previews. - **Remove the unused `cli` navigation menu** from `NavigationMenu.constants.ts`. No `MenuId` resolves to it, so it was never rendered, and its links pointed to pages that no longer exist. Question for @czenko: #48453 left `cli.mdx` alone on purpose, describing it as needing a routing or content decision. Deleting it seemed like the simplest fix, but is there a reason to keep it? It looks like it's an artifact that sometimes gets updated because it's being mistaken as a living document. Also, I believe troubleshooting guides are being currently moved - this ticket and change might coincide with the new https://github.com/supabase/troubleshooting repository, but I didn't see this file existing in there just yet - it's being currently being moved in this PR https://github.com/supabase/troubleshooting/pull/330/changes#diff-b5908c6861f711c3a38fba99aa133cdb796f26c27a35e77c674cb21f988a1046 (so I think I should do the link change in that PR and I can remove it from this PR as to not create merge conflicts or drift). But it makes questions come up about how broken links are handled in that repository 👀 --------- Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io> |