mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
create-pull-request/patch
40517
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
50b6025bb7 |
feat(kb) - add in date fields (#52168)
## Problem Dates appear to be particularly important for fanout queries -- when a model decides to search for something _outside_ of it's training data. This is confirmed for the new DeepSeek search -- which [drops any entries _without_ a date when running a date focused query](https://suganthan.com/blog/deepseek-search-api/) -- and I'd _guess_ plausible for Claude (which also includes a [`page_age` parameter](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-search-tool#response)) in a search result response. ## Solution Adds in date fields for two groups of content: 1. In our repo, sets a manual date field on the entry itself. Maybe this doesn't scale... but that's okay for now. 2. Troubleshooting content, pulls in the date fields from the associated entries in the Supabase DB (mimicking how docs did this previously) Then use that date entry to add a `Last edited: X` callout to the top of each article. It's important to have that at the top b/c LLM crawlers sometimes truncate content further down in the HTML (where this was moved in the redesign by @antlio). <img width="740" height="415" alt="image" src="https://github.com/user-attachments/assets/594e17ae-8a17-40d5-979d-e4bcbd127b02" /> ## Preview links - [Troubleshooting](https://kb-git-kody-devrel-750-kb-dates-supabase.vercel.app/kb/troubleshooting/42501--permission-denied-for-table-httprequestqueue-KnozmQ) - [Guide](https://kb-git-kody-devrel-750-kb-dates-supabase.vercel.app/kb/guides/migrate-from-auth0) - [FAQ](https://kb-git-kody-devrel-750-kb-dates-supabase.vercel.app/kb/faqs/auth/oidc-providers-supabase-project) |
||
|
|
d973267d27 |
feat(studio): paginate platform webhooks deliveries table by cursor (#52314)
## Problem The deliveries table loaded one page from the API and split it into pages of 5 in the browser, so older deliveries could not be reached. Linear: [FE-3750](https://linear.app/supabase/issue/FE-3750/add-pagination-to-platform-webhooks-deliveries-table) ## Solution - **Cursor pagination:** the table requests deliveries 5 at a time (`page[after]`), and Next and Previous load the next or previous page. It asks for 6 and shows 5, so Next is never enabled on an empty page. Previous uses the history of cursors we visited, because the API's `prev` link can skip a row or land on an empty page. - The footer reads "Showing N deliveries" (the API returns no total). The delivery search still filters only the loaded page. - **Loading and errors:** skeleton rows show while a page loads, and a failed load shows an error with a Try again button instead of "No deliveries found", and polling stops until you retry. If a later refresh fails, the loaded rows stay with a notice that they may be out of date, and polling continues. - Retry and Send test event refresh every cached page of the endpoint's deliveries. Switching endpoints starts again on page 1. - Retry from the details sheet now works for a delivery that is not on the current page. - A pending delivery has no result yet, so its row no longer opens the details sheet. Its Retry button is unchanged. - Removed the "Attempt" field from the details sheet. It was the row's position on the page, not an attempt number. A real one needs the API to return it (CTRL-1974). ## Review instructions 1. Enable the Platform Webhooks feature preview, open an endpoint, and send 7 test events (limited to 10 per minute). 2. Page 1 shows 5 deliveries, Previous is disabled and Next is enabled. Next shows the other 2 and disables Next. Previous goes back to the first 5. 3. On an endpoint with exactly 5 deliveries, both buttons are disabled. 4. In DevTools > Network, set throttling to "Slow 4G" and click Next. Skeleton rows show. Then block the `deliveries` request and click Next. "Failed to retrieve deliveries" shows with a Try again button. Wait 10 seconds: no new `deliveries` requests are sent. Unblock the request and click Try again to load the rows. Also block the request while rows are loaded: they stay, and an "Unable to refresh deliveries" notice appears within about 5 seconds and clears once you unblock. 5. Open the details sheet from the bottom row of page 1. In a second tab, send a test event and wait about 5 seconds. Click Retry delivery in the first tab. A toast and a `POST .../retry` request appear, even though the row has moved off page 1. 6. Set the endpoint URL to `https://httpbin.org/delay/10` and send a test event. While the new row shows `pending` (about 10 seconds), clicking it does nothing. Once it shows `success`, it opens the sheet. |
||
|
|
6397239315 |
refactor(studio): replay removed Assistant tool outputs through legacy contracts (#52398)
Stacked on #52396. ## What Self-hosted Studio's Assistant uses four fallback tools (`getSchemaTables`, `getRlsKnowledge`, `getFunctions`, `getEdgeFunctionKnowledge`) that a later PR replaces with contract tools. Saved chats in IndexedDB still hold their outputs, and today those replay to the model unchecked. - New `LegacyToolContract` type: only `name`, `outputSchema`, `toModelOutput`, and `outputOnInvalid`. - New `tools/legacy-tools.ts` with a legacy contract for each fallback tool. Only history replay reads them, through `sanitizeContractPart`; nothing registers them as tools. - Schema tables, RLS policies, and function lists replay at the `schema` opt-in level and above; below it, the model gets a short note instead. The Edge Functions guide has no project data, so it replays at every level. - A saved output that doesn't match its stored shape is replaced with a short "couldn't be read" note. - README documents legacy contracts. ## Behavior changes Self-hosted always runs at the `schema` level, so valid saved outputs replay as before. Malformed saved outputs are now replaced instead of passed through. ## Tests - `legacy-tools.test.ts` covers every stored shape at every opt-in level, plus invalid outputs. - `registry.test.ts` checks legacy names don't overlap live contract names. - A saved self-hosted chat replays through `prepareMessagesForModel` and `convertToModelMessages` without errors. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
167c633ed0 |
fix(studio): treat same-origin URLs outside basePath as external in TanStack (#52441)
In the TanStack build, links from the dashboard to other pages on the same origin (e.g. `https://supabase.com/docs/...` from `/dashboard`) were treated as internal routes and got the basepath prepended, landing on `/dashboard/docs/...`. Next only treats an absolute URL as local when it's same-origin **and** under the basePath, so this matches that behavior. **Changed:** - `splitInternalUrl` leaves absolute same-origin URLs outside `NEXT_PUBLIC_BASE_PATH` untouched, so the `next/link` shim renders a plain anchor. Relative paths are always internal, and nothing changes when no basePath is set - The `next/router` shim's `push`/`replace` now do a document navigation for absolute external targets. Previously TanStack resolved an absolute `to` as a relative path segment, so `router.push` to any external URL (cross-origin too) stayed inside the app - `prefetch` skips external targets **Added:** - Unit tests for `splitInternalUrl`, plus shim tests rendering the real Link/router under a `/dashboard` basepath ## To test - Only reproducible where docs and the dashboard share an origin (i.e. prod `supabase.com/dashboard`). On previews, confirm nothing regressed: - New project → pick a paid compute size on a Pro org → submit → in "Confirm compute costs", the "Compute Costs" link opens the compute docs in a new tab - Click a few other docs links (e.g. in project settings) – they open the docs, not a dashboard 404 - Normal in-app navigation (sidebar, table editor links) still navigates client-side without full reloads --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
2fc4ac187a |
chore: Bump launch-editor to fix a vulnerability (#52442)
Bumps the transitive dependency `launch-editor` from 2.14.1 to 2.14.2 in `pnpm-lock.yaml` to resolve a high-severity `pnpm audit` advisory (patched in >=2.14.2). The update was produced by `pnpm tsx scripts/fix-audit-vulnerability.ts launch-editor --json`, which returned `status: "fixed"` after re-running `pnpm audit` without a permanent override. Only the lockfile changes; no `package.json` or `pnpm-workspace.yaml` edits. `pnpm install --frozen-lockfile` passes on the current base. [FE-4761](https://linear.app/supabase/issue/FE-4761/bump-a-single-vulnerable-dependency) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
84115482be |
feat(studio): storage lifecycle policies UI (#52318)
## Problem Lifecycle policies can only be set with an abstracted ui that hides the actual underlying policies but the user can still modify the policies via api, which would result in an un-documented drift from the policies set via said abstracted ui. ## Solution Show ui with list of effective policies applied and show if the policies drifted in a way that is incompatible with the abstracted ui in the "Create/Edit bucket modal". <img width="1489" height="800" alt="Screenshot 2026-10-26 at 18 35 39" src="https://github.com/user-attachments/assets/9e64f123-c06e-4cfe-9dba-839fae61c845" /> <img width="1439" height="847" alt="Screenshot 2026-10-26 at 18 35 50" src="https://github.com/user-attachments/assets/a32d3a27-6719-48b3-abd2-fb134158bd96" /> <img width="654" height="316" alt="Screenshot 2026-10-26 at 18 36 38" src="https://github.com/user-attachments/assets/0710c139-9b64-42f7-b410-c1a351b1f616" /> This PR also updates copywriting around the effects procured by the lifecycle policies settings in the bucket settings modal. <img width="704" height="440" alt="Screenshot 2026-10-26 at 18 35 17" src="https://github.com/user-attachments/assets/f4fa03d1-e11b-4d08-b4f5-d94b2d9350a3" /> <img width="351" height="82" alt="Screenshot 2026-10-26 at 18 35 28" src="https://github.com/user-attachments/assets/6ff1e149-92e0-4fd8-bfb5-0177afe207aa" /> ## To review - create a file storage bucket, enable object versioning and set some lifecycle policy values - once created, go to /project/_/storage/files/policies and find the bucket policies or navigate to it from the "Edit bucket settings" via the "View rules" button <img width="1133" height="725" alt="Screenshot 2026-10-27 at 14 50 52" src="https://github.com/user-attachments/assets/ef014f7a-5db6-413a-af53-a5648309b2c3" /> - adding extra policies should result in a "This bucket has a custom lifecycle policy" message in the edit bucket modal <img width="557" height="130" alt="Screenshot 2026-10-27 at 14 52 23" src="https://github.com/user-attachments/assets/cde29748-65d9-45b5-a54b-55737d78d311" /> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> |
||
|
|
8635496932 |
docs(www): add Supplemental Terms Version 1 text (#52368)
<!-- claude-slack-attribution --> _Requested by **Nicole Kramer** · [Slack thread](https://supabase.slack.com/archives/C0161K73J1J/p1793097128831369)_ **Before:** The hidden Supplemental Terms page (`/legal/customer-resources/supplemental-terms`) showed one placeholder sentence, and its Version 1 label had an effective date of "TBD". **After:** The page shows the full text of the 2026.10.20 Supplemental Terms document (Section 1, Germany: Professional Secrecy) as Version 1, with an effective date of October 27, 2026. This replaces the placeholder copy with the real Supplemental Terms text as Version 1. ## How - `apps/www/data/legal/customer-resources/supplemental-terms/v1.mdx` now holds the document text, converted with pandoc and checked word-for-word against the docx (13 paragraphs, identical apart from the short form URL noted below). The one numbered top-level section and its six lettered subsections use the same `##` / `###` heading levels as the DPA. No `_Last Modified:_` line and no frontmatter, matching the DPA and other versioned pages. - The form link in Section 1.a is shown via the short URL `https://supabase.link/germanyprofessionalsecrecy` (link text and href) instead of the long Google Form URL in the docx, as requested by Legal. It is a markdown link, since MDX does not support bare `<...>` autolinks. - `apps/www/pages/legal/customer-resources/supplemental-terms.tsx`: the page already uses `LegalDocVersions` and the `versions` array like the DPA page. The only change is `effectiveDate: 'TBD'` to `'October 27, 2026'` (confirmed by Legal). - Page visibility is unchanged: still `noindex`/`nofollow` and not linked from the Legal Hub. ## Review instructions 1. Open the preview at `/legal/customer-resources/supplemental-terms` (direct URL only; the page is not in the Legal Hub). 2. Check the header reads "Version 1 — October 27, 2026" and the text matches the Word document. ## Notes - Local typecheck, lint and build could not be run because `pnpm install` is blocked in this environment. Prettier (3.8.0, repo options) passes on the MDX file. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VBvtQSeMbNzFwFgzHQ5K9L --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
ef45cf8d07 |
chore: Bump nextjs to 16.4.3 (#52438)
Bumps `next` from 16.3.6 to 16.4.3 in `pnpm-lock.yaml` to resolve a critical `pnpm audit` advisory. The lockfile was updated with `pnpm tsx scripts/fix-audit-vulnerability.ts next`, which then reran `pnpm audit` and confirmed the advisory is gone. No permanent override was needed. Package manifests are unchanged; the other lockfile changes are transitive dependencies of the new `next` version (`@next/*` and `sharp` 0.35.5). [FE-4760](https://linear.app/supabase/issue/FE-4760/bump-a-single-vulnerable-dependency) --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> |
||
|
|
d4b9d1240c |
refactor(studio): remove the legacy edge function overview (#52281)
The `edgeFunctionsOverview` flag is fully rolled out, so the edge function Overview page now always renders the new Overview. This removes the legacy Overview and everything only it used. - **Overview page**: renders `EdgeFunctionOverview` directly, like the other function tabs. The flag check and the loader shown while flags load are gone. - **`EdgeFunctionRecentInvocations`** and its utils: only the legacy Overview showed this list. - **`components/ui/Charts/AreaChart`**: the legacy Overview was its last importer. The other `AreaChart` uses are recharts' own. **Self-hosted:** flags never load off-platform, so self-hosted Studio always got the legacy Overview. Its Overview tab is already hidden, and the new Overview sends a direct visit to the Details tab, so nothing reachable from the UI changes. After this ships, the `edgeFunctionsOverview` flag can be deleted in ConfigCat. ### How to test 1. Open an edge function's Overview on platform. It shows the new Overview, with no loader flash while flags load. 2. Self-hosted: open `/project/default/functions/<slug>` directly. It redirects to the Details tab. ### Validation - Studio typecheck, lint, Prettier and knip pass on this layer. Functions and Charts unit tests pass. ### Stack Merge in order: 1. #50953 — reusable logs table building blocks 2. #50954 — function-scoped unified logs queries 3. #50955 — slimmer function detail layout, header on Overview 4. #50957 — Invocations merged into a function-scoped Logs tab 5. #50958 — Overview errors in the shared logs table 6. #52281 — remove the legacy Overview --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jordi Enric <jordi.err@gmail.com> |
||
|
|
3f59d25833 |
feat(studio): serve TanStack client assets from the asset CDN (#52397)
Studio's TanStack build serves every client JS/CSS chunk from Vercel at
`/dashboard/_vercel/immutable/...`, and each of those requests also goes
through the www zone's routing (supabase.com/dashboard is proxied by
www). The Next build served the same files from the R2 asset CDN. This
moves the TanStack build's client assets back to the asset CDN on
production builds, using native Vite / TanStack Start hooks rather than
an `assetPrefix`-style rewrite.
**Added:**
- `apps/studio/asset-cdn.ts`: one gate shared with `next.config.ts`
(production or `FORCE_ASSET_CDN=1`, `FORCE_ASSET_CDN=-1` disables,
staging CDN when `NEXT_PUBLIC_ENVIRONMENT=staging`) plus URL helpers.
Only files under `_vercel/immutable/` are rewritten, and web workers
never are
- `upload-static-assets.sh tanstack`: syncs
`.vercel/output/static/_vercel/immutable` to
`<SITE_NAME>/tanstack/_vercel/immutable` on R2 with `max-age=31536000,
immutable`. Uses `--size-only` (names are content hashes, so only new
files upload) and excludes source maps. Local files are kept
- The upload script now fails with a clear message when the asset CDN is
enabled but `ASSET_CDN_S3_ENDPOINT` or the AWS keys are missing, instead
of the AWS CLI failing on an empty `--endpoint-url`
- Unit tests for the gate and URL helpers
**Changed:**
- `server.ts` uses `createStartHandler({ transformAssets })` so the
shell's scripts, modulepreloads and stylesheets point at the CDN with
`crossorigin="anonymous"` (module scripts need CORS; it also keeps full
error details in Sentry)
- `vite.config.ts` sets `experimental.renderBuiltUrl` (client only) so
URLs inside the bundle follow: the preload helper's dependency map, and
fonts/images referenced from CSS. The CDN base is computed once from the
process env (the same env the upload script sees) and inlined into both
server and client so they can't disagree
- `build:tanstack` runs the upload after `vite build` unless
`SKIP_ASSET_UPLOAD=1`, the same as `build:next`. The Docker image's
TanStack build sets `SKIP_ASSET_UPLOAD=1` (images serve their own
assets, and the pruned context has no upload script)
**Unchanged on purpose:**
- Vite `base` and the router basepath stay `/dashboard`; documents,
`/_serverFn` and `/api` stay on Vercel
- Web workers stay same-origin (`worker-src 'self' blob: data:`, and
workers must be same-origin anyway), so `immutableStaticFiles` stays on
- With the CDN off (previews, self-hosted), the build output is
identical to master apart from release hashes
The CDN folder is shared and content-addressed rather than per-commit,
so unchanged chunks dedupe across deploys and older tabs keep finding
their lazy chunks whichever deployment serves the next document.
**Rollout:** production has `FORCE_ASSET_CDN=-1` for now, so merging
this doesn't change prod. Staging picks it up on merge and gets tested
first.
## To test
### On the preview (tests the upload, not the page)
The staging preview for this branch builds with `FORCE_ASSET_CDN=1`, so
it exercises the real build-and-upload path. **The preview page itself
is expected not to load in a browser:** the asset CDN only allows the
staging and production origins in its CORS rules, so module scripts are
blocked on a `*.vercel.app` URL.
- In the build log, check `Uploading immutable static files to R2...` is
followed by `Upload completed successfully!`
- View the preview's page source: the `<script>`, `modulepreload` and
stylesheet tags point at the staging asset CDN
(`.../<SITE_NAME>/tanstack/_vercel/immutable/...`) with
`crossorigin="anonymous"`
- Open a few of those asset URLs directly in a new tab (a JS chunk, a
CSS file, and a `.woff2` font from the CSS): each returns 200 with the
right content type
- Worker URLs inside the chunks still point at
`/dashboard/_vercel/immutable/.../*.worker-*.js` on the page's own
origin
### After merge, on the full staging environment
- Load the staging dashboard with DevTools open: every script,
modulepreload and stylesheet comes from the staging asset CDN with a
200, and there are no CORS or CSP errors in the console
- Fonts render (Inter, and the code fonts in the SQL editor)
- Sign in and click around: Table Editor, SQL Editor, GraphiQL, Logs.
Lazy routes load, and nothing comes from `/dashboard/_vercel/immutable`
except Monaco's workers
- SQL Editor and GraphiQL: Monaco works (syntax highlighting,
autocomplete), and its workers load same-origin
- Trigger an error and check the Sentry event has a readable stack trace
- After the next staging deploy, check the build log's upload only added
new files
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
|
||
|
|
845ed5a1e3 |
feat(kb): add cookie consent banner (#52342)
## Problem kb has no cookie consent banner, so PostHog pageviews have to wait. Part of GROWTH-1352. ## Solution - `ConsentIsland` mounts the www/docs consent toast as a `client:only` island. - Shared consent code reads `process.env.NEXT_PUBLIC_*`, which Vite doesn't provide in the browser, so `astro.config.mjs` defines it for the client only. - `consent.tsx`, `ConsentToast`, and `PrivacySettings` import specific `common` modules instead of the barrel, which cuts the island from 652 KB to 96 KB. - A footer Privacy Settings link opens the same dialog, like docs. <img width="400" height="150" alt="kb-consent-banner" src="https://github.com/user-attachments/assets/c32a57ce-89e9-4842-89e4-67d03dafcd7c" /> kb previews auto-accept consent like www and docs (`NEXT_PUBLIC_ENVIRONMENT=staging`). Production needs `NEXT_PUBLIC_IS_PLATFORM` and `NEXT_PUBLIC_USERCENTRICS_RULESET_ID` before the banner shows. Testing: on `astro dev` (toast forced on), the banner renders, and Privacy settings opens from both the toast and the footer. Accept and opt out are unverified until production. ## Review instructions 1. The kb, www, and docs previews load with no console errors. 2. On the kb preview, the footer Privacy Settings link opens the dialog. ## 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) |
||
|
|
d1dcb57bdf |
feat(www): use the shared AiTools component on www pages (#52186)
## Problem Docs guides, docs troubleshooting pages, and knowledge base guides render the shared `AiTools` component from `ui-patterns`. The marketing site renders its own copy of the same actions in `MarkdownActions`, with the same styles and links. A change to one doesn't reach the other. Resolves [DOCS-1505](https://linear.app/supabase/issue/DOCS-1505/use-the-shared-aitools-component-on-www-pages). ## Solution Blog posts, customer stories, event pages, changelog entries, and pricing render `AiTools` through a www wrapper, and `MarkdownActions` is deleted. The wrapper sends `copy_as_markdown_clicked` and `ask_ai_clicked` with each page's type, as `MarkdownActions` did. - **Prefer on Google:** blog posts show the Prefer on Google link through `AiTools`, and clicks send `preferred_source_clicked`. #52026 proposed adding the link through `MarkdownActions`. This PR adds it through `AiTools` instead, and #52026 is closed. The link's URL is a shared constant in `markdown-affordance.ts`, which the docs wrapper also uses. - **Horizontal layout:** `AiTools` has an `orientation` prop. Pricing uses it to keep the actions in a row under the hero. The design system's AI Tools page documents it. - **Headings:** `AiTools` adds an "AI tools" heading: - Blog posts style it like the sidebar's On this page label. - Pricing, customer stories, and event pages hide it visually, so they look as they do on the live site. Screen readers still announce it as the section's label. - Changelog entries give AI tools its own sidebar section, like Change type and Products. The Links section appears only when an entry links to a GitHub discussion. The changelog index keeps `ChangelogLlmMarkdownButton`. It's a split button in the header toolbar, and `AiTools` is a list of links built for sidebars. ## Preview links Compare the before and afters (since there's a lot of examples here, links are less visually busy than images in this case): | Site | Live | Preview | | ------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | WWW | [/blog/give-your-supabase-app-its-own-mcp-server](https://supabase.com/blog/give-your-supabase-app-its-own-mcp-server) | [/blog/give-your-supabase-app-its-own-mcp-server](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/blog/give-your-supabase-app-its-own-mcp-server) | | WWW | [/pricing](https://supabase.com/pricing) | [/pricing](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/pricing) | | WWW | [/customers/berriai](https://supabase.com/customers/berriai) | [/customers/berriai](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/customers/berriai) | | WWW | [/events/agency-webinar-ai-prototyping-production](https://supabase.com/events/agency-webinar-ai-prototyping-production) | [/events/agency-webinar-ai-prototyping-production](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/events/agency-webinar-ai-prototyping-production) | | WWW | [/changelog/cbc-tls-ciphers-deprecated](https://supabase.com/changelog/cbc-tls-ciphers-deprecated) | [/changelog/cbc-tls-ciphers-deprecated](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/changelog/cbc-tls-ciphers-deprecated) | | WWW | [/changelog/17817-pgbouncer-and-ipv4-deprecation](https://supabase.com/changelog/17817-pgbouncer-and-ipv4-deprecation) | [/changelog/17817-pgbouncer-and-ipv4-deprecation](https://zone-www-dot-com-git-alexisa-docs-1505-supabase.vercel.app/changelog/17817-pgbouncer-and-ipv4-deprecation) | | Design system | [/design-system/docs/fragments/ai-tools](https://supabase.com/design-system/docs/fragments/ai-tools) | [/design-system/docs/fragments/ai-tools](https://design-system-git-alexisa-docs-1505-supabase.vercel.app/design-system/docs/fragments/ai-tools) | ## Review instructions 1. Open each live and preview link side by side. 2. On pricing, check that the actions sit in the same row under the hero. 3. On the blog post, check that the "AI tools" heading matches the On this page label. 4. On the blog post, check that Prefer on Google appears in the sidebar and at the end of the post on mobile. 5. On both changelog entries, check that AI tools has its own sidebar section. Links appears only on the pgbouncer entry, which links to a GitHub discussion. 6. On each page, click Copy as Markdown, Ask ChatGPT, and Ask Claude. On the blog post, also click Prefer on Google. In the browser's network tab, check that each telemetry request includes the page's `pageType`. 7. On the design system page, check the Horizontal layout example. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
447cfa5227 |
feat(docs): add docs-ia-mvp-v1 flag for the new navigation (#52049)
Closes DOCS-1464 ## Problem The new docs navigation, Option 1, needs an A/B test against today's navigation. The docs app has no flag that switches the navigation per visitor. `docs:*` keys in this repo are build-time toggles from `enabled-features`. They are the same for every visitor, so they can't run an A/B. The flag is `docs-ia-mvp-v1`, a PostHog multivariate flag, like `docs-search-v2`. ## Solution - **Variant hook:** `useIaNavVariant` reads `docs-ia-mvp-v1` and returns `control` or `option-1`. It copies `useSearchV2Variant`. It returns `control` until the flag resolves, records exposure once resolved, and respects consent. - **Query param override:** `?docs-ia-mvp-v1=option-1` or `?docs-ia-mvp-v1=control` forces a variant for dogfooding and evals. A forced variant records no exposure. - **Option 1 config:** `features/IaNav/option1.constants.ts` re-exports today's navigation constants. An export defined in that file replaces the re-exported one, so Option 1 in DOCS-1469 overrides only what changes. - **Consumers:** The top nav, the mobile menu, and the guide sidebar read from `useNavItems`, which picks the config for the variant. **Not changed:** Reference sidebars, breadcrumbs, and hub pages. Breadcrumbs and hub pages can read `useIaNavVariant` in DOCS-1470 and DOCS-1471. **PostHog:** The flag doesn't exist in PostHog yet. Until it does, every visitor gets `control`, and the query param still works. ## Manual testing 1. Open [Auth with Option 1 forced](https://docs-git-docs-ia-nav-flag-supabase.vercel.app/docs/guides/auth?docs-ia-mvp-v1=option-1). The top nav and sidebar match today's navigation, because the Option 1 config is a copy. Locally, you can make a change to see the variant. 2. Open [Auth with no param](https://docs-git-docs-ia-nav-flag-supabase.vercel.app/docs/guides/auth). The navigation is unchanged. |
||
|
|
c4424c9795 |
feat(kb): open search with cmd+k on every page (#52413)
## Problem - the kb search dialog opens only on the home page, because the home hero button contains the dialog and the cmd+k listener ## Solution - moves the search dialog and the cmd+k shortcut into the shared kb layout, so cmd+k opens search on every kb page - changes the home hero button to open the same dialog, so each page has only one search dialog <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open `/kb` 2. click the search button in the hero, and make sure that the search dialog opens 3. close the dialog, push cmd+k (ctrl+k on windows or linux), and make sure that the same dialog opens 4. push cmd+k again, and make sure that the dialog closes 5. open `/kb/topics/migration`, push cmd+k, and make sure that the dialog opens ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
eb616619a6 |
docs: Add John Murret to humans.txt (#52419)
## Problem Adding myself to humans.txt as part of onboarding. ## 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. 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: - [ ] 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) |
||
|
|
4b2c09c44e |
docs: set descriptions for federated wrapper, python, and terraform pages (DEVREL-772) (#52407)
## Problem Missing meta descriptions on generated pages (wrappers, python client, terraform guides). ## Solution Add a `description` to the `meta` of each `pageMap` entry in: - `scripts/federated-content/sources/wrappers.ts` - `scripts/federated-content/sources/python.ts` - `scripts/federated-content/sources/terraform.ts` ## Review instructions Sanity check the descriptions. Rendered on the pages: <img width="1217" height="492" alt="image" src="https://github.com/user-attachments/assets/c962da15-9bdc-4440-80de-8bf2bbbce456" /> If needed, can check the output of pages, but probably not necessary given these aren't user facing. | Page | Before (live) | After (preview) | | --- | --- | --- | | Airtable wrapper | https://supabase.com/docs/guides/database/extensions/wrappers/airtable | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/database/extensions/wrappers/airtable | | Stripe wrapper | https://supabase.com/docs/guides/database/extensions/wrappers/stripe | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/database/extensions/wrappers/stripe | | S3 wrapper | https://supabase.com/docs/guides/database/extensions/wrappers/s3 | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/database/extensions/wrappers/s3 | | Python API | https://supabase.com/docs/guides/ai/python/api | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/ai/python/api | | Terraform provider | https://supabase.com/docs/guides/deployment/terraform | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/deployment/terraform | | Terraform tutorial | https://supabase.com/docs/guides/deployment/terraform/tutorial | https://docs-git-kody-devrel-772-federated-descriptions-supabase.vercel.app/docs/guides/deployment/terraform/tutorial | Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
51b7cd6a4b |
refactor(studio): declare Assistant tool availability on contracts (#52396)
## What
Assistant tool contracts now declare where they're available, and
`getTools` builds tools from the registry.
- `ToolContract` and `RemoteToolContract` gain `availability: {
environments, requires? }`, both read-only sets. `environments` is
`platform` and/or `self-hosted`; `requires` is any of `explorer`,
`supportMode`, `baseUrl`.
- New `tools/registry.server.ts` maps every contract to its factory in
`TOOL_FACTORIES`; its type makes a missing or mismatched factory a
compile error. `buildLocalTools` builds only the tools available for a
request.
- `getTools` no longer branches per tool module. Local contract tools
take precedence over remote MCP tools with the same name. The
self-hosted fallback tools are unchanged for now.
- Deleted the per-module getters (`studio-tools.ts`, `schema-tools.ts`,
`report-tools.ts`, `notebook-tools.ts`, `incident-tools.ts`,
`support-tools.ts`); their tests now call the factories directly.
## Behavior changes
- Self-hosted no longer offers `deploy_edge_function`. Its server half
calls `/v1/projects/{ref}/functions/deploy`, which self-hosted Studio
doesn't serve.
- Self-hosted no longer offers the support tools (`escalate_to_human`,
`resolve_support_conversation`) in support mode.
- Platform offers `list_databases` without the Explorer flag.
Everything else produces the same tool set as before.
## Tests
- `index.availability.test.ts` asserts the exact tool names for every
combination of environment, Explorer, support mode, and `baseUrl`.
- `registry.test.ts` checks registry invariants: keys match contract
names, every contract has a factory, and a name in both the local and
remote maps has disjoint environments and matching gates.
This is the first step in moving the self-hosted Assistant tools to
contracts.
## Checklist
Check all before review:
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
|
||
|
|
051d5f79da |
chore(docs) - remove troubleshooting guides and rendering logic (#52339)
## Problem Dupe content and workflows when this content now all lives in the KB. ## Solution Removes various artifacts from the docs repo (content files, github workflows, etc.) from the docs app. These paths have already been redirected to /kb in #52095 and we haven't seen any meaningful 404 traffic indicating the redirects were done incorrectly. ## Preview links TBD |
||
|
|
843f6665a4 |
chore(www): update blog post authors (#52408)
Add Fran |
||
|
|
7f7ebf527b |
feat(studio): use shared logs table for recent function errors (#50958)
The Overview's "Errors in the last 24h" section now uses the Logs tab's queries (#50954) and the read-only `EmbeddedLogsTable` (#50953) instead of its own SQL and table. It previews the latest five errors since the last deploy, capped at 24h, shows "+N more" when there are more and links to the rest. It's behind the `edgeFunctionsOverview` flag, like the rest of the new Overview. - Rows have no multi-select checkbox. Clicking one opens it in the Logs tab with the same range and error filter, and "View logs" and "+N more" open the filtered list. - With the unified logs preview off, those links open the pre-unified Invocations tab (for invocation rows) or Logs tab (for runtime rows), using those tabs' own `its`/`ite`/`log` params. - "Explain with AI" and "Copy summary" send the previewed errors to the Assistant with the same prompt as selected logs on the Logs page. The prompt also notes how many errors were left out. - One count query, scoped to the function and unfiltered, gives both the error count behind "+N more" and the invocations since the deploy, from its level and log type facets. It replaces the hand-built invocation count SQL, so the section runs two queries instead of three. - The row query fetches only the five errors shown, through a new `pageSize` option on `useUnifiedLogsInfiniteQuery`. - The section uses the edge function preset from #50957, so it runs the Logs tab's scoped queries and shares its saved columns. - The custom error grouping and its SQL are removed. Net, the PR removes about 390 lines. ### How to test 1. With `edgeFunctionsOverview` on, open a function that has recent errors. You should see up to five rows without checkboxes, and "+N more" when there are more. 2. Click a row with the unified logs preview on. It opens the Logs tab with that log selected. Turn the preview off and click an invocation row and a runtime row. They open Invocations and Logs respectively. 3. Use Explain with AI and Copy summary and check the prompt. 4. For a function with no errors since the last deploy, the section shows the invocation count instead. ### Validation - MSW component tests: preview rows and "+N more", no checkboxes, the summary prompt, row links with the preview on and off, and the no-errors state. They also check the row query asks for five rows and that a single unfiltered count runs. `pageSize` and the facet count helper have unit tests. - Studio typecheck, lint ratchet, Prettier and knip pass on this layer. ### Stack Merge in order: 1. #50953 — reusable logs table building blocks 2. #50954 — function-scoped unified logs queries 3. #50955 — slimmer function detail layout, header on Overview 4. #50957 — Invocations merged into a function-scoped Logs tab 5. #50958 — Overview errors in the shared logs table 6. #52281 — remove the legacy Overview --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jordi Enric <jordi.err@gmail.com> |
||
|
|
104e8f2619 |
blog: supabase compute private alpha (#52333)
## 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? - Blog post: Supabase Compute private alpha (publishes Oct 27, 2026) ## What is the current behavior? N/A ## What is the new behavior? - Adds the Supabase Compute private alpha blog post and its images ## Additional context - Draft while final content checks finish - The Compute guide link will be added once the docs page is public --------- Co-authored-by: Ana <ana1337x@users.noreply.github.com> |
||
|
|
14ca6c0455 |
feat(docs) - move docs redirects into docs app directly (#52248)
## Problem Several: - using above recommended # of redirects in the apps/www configuration -- currently around ~1275, so 275 above the recommended limit -- which leads to degraded performance for _every_ request going through the first zone (including the dashboard, I'd think). ``` www:build: www:build:next: Warning: total number of custom routes exceeds 1000, this can reduce performance. Route counts: ``` - We want to add more redirects over time. The current approach doesn't allow us to do so without cost. - No ability to test docs redirects in previews, which makes reviewing and merging in changes riskier than it should be. The fact that we _can_ test the changes in this PR is a huge improvement. ## Solution Diff approach, but related to #51193 Moves docs redirects into the docs app directly, splitting them between [next.config.mjs](https://vercel.com/docs/routing/redirects/configuration-redirects) (dynamic) and [Vercel's bulk redirects](https://vercel.com/docs/routing/redirects/bulk-redirects) (static). ```txt apps/ ├── docs/ │ ├── lib/ │ │ └── redirects/ │ │ ├── README.md # process and rules for adding redirects │ │ ├── static-redirects.json # source: one-to-one /docs entries (hand-edited) │ │ ├── dynamic-redirects.js # conditional /docs entries + dev/preview rules │ │ └── generated/ │ │ └── static-redirects-md-variants.json # .md guides variants generated in pre-build ``` B/c this -- in itself -- also puts us above the 1000 redirects, separates out redirects based on their _type_: - Dynamic redirects, live in a .js folder -> referenced in next.config.mjs. These are not support - Static redirects live in a json folder (required for Vercel bulk redirects) -> then referenced in the vercel.json config Also adds `.md` variant logic to both -- we can actually see a _lot_ of these paths are hit within analytics. Quick sample over the past 24 hours: ``` path, code, # of hits /docs/guides/monitoring-and-debugging.md 308 1768 /docs/guides/api/api-keys.md 308 722 /docs/guides/auth/server-side/nextjs.md 307 381 /docs/guides/auth/social-login/auth-google.md 308 231 /docs/guides/getting-started/mcp.md 308 218 /kb/troubleshooting/formatting-support-requests-for-faster-resolution.md 308 159 /docs/guides/troubleshooting/formatting-support-requests-for-faster-resolution-616717.md 308 156 /docs/guides/local-development/overview.md 308 139 /docs/guides/telemetry/logs.md 308 129 /kb/sitemap.md 308 117 /docs/guides/auth/social-login/auth-apple.md 308 103 /kb/troubleshooting/rotating-anon-service-and-jwt-secrets-1Jq6yd.md 308 97 ``` The exact method for generating these .md variants could use a sanity check: - Dynamic - follows the existing logic from the apps/www - Static - adds a prebuild script to automatically create .md variants for `/docs/guides` links. I _think_ this will work even though the output is gitignored by default... but remains to be seen. ## Preview links - [Dynamic path, no .md](https://docs-git-kody-devrel-723-redirects-rework-supabase.vercel.app/docs/guides/reports/reports) - [Dynamic path, .md](https://docs-git-kody-devrel-723-redirects-rework-supabase.vercel.app/docs/guides/reports/reports.md) - [Static path, no .md](https://docs-git-kody-devrel-723-redirects-rework-supabase.vercel.app/docs/guides/api/joins-and-nesting) - [Static path, .md](https://docs-git-kody-devrel-723-redirects-rework-supabase.vercel.app/docs/guides/api/joins-and-nesting.md) ## Builds <img width="1128" height="289" alt="image" src="https://github.com/user-attachments/assets/3cbbb111-e7b8-4922-ba8c-23cbc0bb3ddc" /> ## Go-live - [ ] Sign off on restructure from Growth Eng + Docs team. - [ ] Reviewer double-check with agent that a) this contains largely the same set as the current set in www and b) that these resolve to 200s. For a, there are a few small differences due to cleanup + re-ordering redirects that didn't previously work. - [ ] In the docs project, purchase a batch of 25,000 bulk redirects in Vercel (builds fail if you don't have the quota with `Bulk redirects limit exceeded. Attempting to add 1,013 redirects to a deployment, but only 1,000 available. Visit https://vercel.com/supabase/docs/settings/advanced#bulk-redirects to increase bulk redirects capacity.`) - [ ] Move the disabled redirects back into the main folder, and confirm builds work. - [x] Update `write-the-docs` skill to mention redirects --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
038e68b777 |
docs: unify pooler guidance across the docs (#52332)
Closes DOCS-1519 ## Problem DOCS-1519 asks the docs team to do two things: unify the connection recommendations, and remove PgBouncer deprecation notices. PgBouncer isn't deprecated. It runs the dedicated pooler. **Deprecation notices:** no page in `apps/docs` says PgBouncer is deprecated. The last notice was in a 2021 blog post, and #52249 removed it. Two notices remain outside the docs: - **Studio:** the support form's IPv4 alert links to a "PGBouncer and IPv4 Deprecation" discussion. - **Blog:** a September 2023 update says PgBouncer is deprecated as of January 2024. **Recommendations:** Supabase runs two server-side poolers. The shared pooler runs on Supavisor and is on every plan. The dedicated pooler runs on PgBouncer and is on the Pro Plan and above. The docs name the two poolers in many ways, and many pages leave out the dedicated pooler. Some pages contradict the recommendations table in [Connect to your database](https://supabase.com/docs/guides/database/connecting-to-postgres#choose-a-connection-method): - **Prepared statements:** `connecting-to-postgres` says transaction mode doesn't support them. That is true for the shared pooler only. The dedicated pooler supports them on PgBouncer 1.21 and later. - **Migrations:** the restore pages, the quickstart partial, and the RedwoodJS quickstart send migrations and `pg_dump` through session mode. The table says to use the direct connection. - **Dedicated pooler:** `pooling-and-limits` says to use it on any IPv6 network. The table keeps it for high-load apps. ## Solution - **Names:** pages say _shared pooler_ and _dedicated pooler_, in lowercase. Each page names Supavisor or PgBouncer once, after the pooler name. _Session pooler_ and _Transaction pooler_ stay only where a page quotes the Connect dialog. - **Plans:** pooler and connection pages say _Pro Plan and above_ instead of _paid plans_. - **Recommendations:** every page above now matches the table. The shared pooler in session mode is the fallback for IPv4-only networks. - **Dedicated pooler coverage:** Managing connections and the IPv4 add-on page now cover the dedicated pooler. - **Word list:** `WORD_LIST.md` gets `dedicated pooler`, `shared pooler`, and `paid plan` entries. **Also fixed:** - The direct connection examples in both restore pages had the wrong username and `.supabase.com`. - The Managing connections heading changed. It keeps the `#configuring-supavisors-pool-size` anchor, because Studio links to it. **Not changed:** billing and usage pages that say _paid plans_, self-hosting pages, `apps/www`, and Studio. The Postgres and Render migration guides moved to `apps/kb` on `master` while this PR was open, so their edits are no longer in this diff. **Troubleshooting articles:** production redirects `/docs/guides/troubleshooting/` to `/kb/troubleshooting/`, which builds from the troubleshooting repo. The troubleshooting edits move there under DOCS-1521. **Size:** 25 files, 115 lines added and 97 removed. ## Preview links | Page | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | /connecting-to-postgres | [Live](https://supabase.com/docs/guides/database/connecting-to-postgres) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres) | A high-load application on the Pro Plan and above | | /pooling-and-limits | [Live](https://supabase.com/docs/guides/database/connecting-to-postgres/pooling-and-limits) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits) | Use it for high-load applications | | /connection-management | [Live](https://supabase.com/docs/guides/database/connection-management) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connection-management) | The pool size applies to both the shared pooler | | /ipv4-address | [Live](https://supabase.com/docs/guides/platform/ipv4-address) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/ipv4-address) | When using the dedicated pooler in an IPv6-incompatible network | | /backup-restore | [Live](https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/backup-restore) | Use the direct connection string. If your network | | /dashboard-restore | [Live](https://supabase.com/docs/guides/platform/migrating-within-supabase/dashboard-restore) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/dashboard-restore) | Use the direct connection string. If your ISP | | /redwoodjs | [Live](https://supabase.com/docs/guides/getting-started/quickstarts/redwoodjs) | [Preview](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/getting-started/quickstarts/redwoodjs) | This quickstart uses two connection strings | ## Review instructions 1. Open [Connect to your database](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres). The table and the **Dedicated pooler** section say _Pro Plan and above_. 2. Open [Connection pooling and limits](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connecting-to-postgres/pooling-and-limits). It recommends the dedicated pooler for high-load apps only. 3. Open [Managing connections](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/database/connection-management). The pool size section covers both the shared pooler and the dedicated pooler. 4. Open [Backup and restore](https://docs-git-docs-unify-pooler-guidance-supabase.vercel.app/docs/guides/platform/migrating-within-supabase/backup-restore). Step 3 says to use the direct connection string. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
e79496d5cf |
refactor: Point the search_v2 fn to global supabase project (#52382)
## Problem Currently we experience a lot of empty results responses from our new search_v2 experiment. We are improving our search logic on our frontend plus our search functions in the backend ot fix this. ## Solution Improve our search setup to follow this path: 1. Same as before, strict full text search. 1. If that returns zero results, we do prefixes via wild cards, ie: "edge fun" becomes "edge fun|*" so people don't have to type the full term. 1. If that returns zero results, then we run the terms under OR, which will give partial results for individual terms. 1. If that returns zero results then we are most probably under a typo/misspelling scenario, then we use `pg_trgm` extension with a `0.4` tier to return the closest bit, which is good cause it covers missing first letters like "dge functions" too. We will do this migration in three steps to not disrupt current users under the experiments, I will be posting the PRs here: 1. First, we will create a new search_v2 table on `supabase.com [LIVE]` project where production parts of our monorepo go + already implement the improvements I just mentioned. 1. Re-route the ingest script to populate once per day the database table in this new project. At this point we will have the data and the search function ready. 1. Update the API search_v2 function to query from this new project, so users will experience no down time. 👈 **this PR is here** <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. Open the preview of docs 1. Make sure you are on the search_v2 experiment or open it on an incognito window 1. Open the search modal and run a query like "edge fun" 1. Search should return results, confirming it's using the new database table ## 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) |
||
|
|
7ce15123ab |
feat(studio): grant infra for production and development branch variants (#52372)
Part 1 of 7 in a stack that splits #52331 into reviewable pieces. Resolves part of [FE-4693](https://linear.app/supabase/issue/FE-4693/pilot-migrate-branches-to-grants-8-endpoints-createbranchmodal). There are no functional changes beyond #52331, and the top of the stack is identical to it. See #52331 for the full rationale. ## Stack 1. 👉 #52372 Grant infra for branch variants 2. #52373 Branches list query 3. #52374 Page gates on the list grant 4. #52375 Branch creation 5. #52376 Branch read, delete, reset, and restore 6. #52377 Branch update and push 7. #52378 Branch diff and merge ## Changes Adds `lib/fga-refinements.ts` entries: `production`/`development` variants for the 8 single-branch endpoints, with a new `variantRequired` flag. The fetch wrapper and `assertGrant` reject a grant without a variant. Also adds the `production` variant for `POST /v1/projects/{ref}/branches` when the body sets `is_default` or `with_data`. Adds `GrantForVariants`, the `useBranchGrant` hook, and shared fixtures in `tests/lib/branch-test-utils.ts`. Behavior-neutral: existing branch calls still use `unguarded.migrating`, which skips these checks. ## Testing `guarded-fetch.test.ts` and `useBranchGrant.test.ts`. |
||
|
|
e646c430d7 |
refactor(docs) - tidy Mgmt API heading props (#52392)
## What changed Follow-up to #52340, addressing the review comments left after it merged: - Removed the redundant `headingTag="h2"` on the Management API intro section. `h2` is the default, and the intro header is hidden on pages with `hideTitle`. - Exported a `HeadingTag` type from `Reference.ui.tsx` and used it in the section prop types. - Renamed the `headingTag` prop to `tag` to match the `tag` prop on the shared `Heading` component. Manually poked around at pages like the following and behavior seems to be the same: - https://docs-git-kody-docs-mgmt-api-heading-cleanup-supabase.vercel.app/docs/reference/cli/global-flags - https://docs-git-kody-docs-mgmt-api-heading-cleanup-supabase.vercel.app/docs/reference/javascript/typescript-support https://docs-git-kody-docs-mgmt-api-heading-cleanup-supabase.vercel.app/docs/reference/api/v1-get-security-advisors Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
266372acbe |
feat(kb): add guides on connecting to Supabase Postgres (#51345)
## Summary Adds 6 question-and-answer guides to the knowledge base about connecting to Supabase Postgres: serverless functions, connection limits, database tools, ORMs, network access, and AI agents. Each guide answers one question: the description is the short answer, and the body adds the details and links into the docs. Ref: GROWTH-1191 ## Guides - How do I connect to Postgres from serverless and edge functions? - How many connections can a Supabase Postgres database handle? - How do I connect a database GUI or BI tool to Supabase Postgres? - How do I restrict who can connect to my Supabase Postgres database? - Can I use Supabase with Drizzle or Prisma without supabase-js? - How can an AI coding agent create and manage a Postgres database? ## Notes - Links to the docs and the dashboard use absolute `https://supabase.com/...` URLs, so they also work on previews. - Some guides link to guides added in #51346, #51343. Those links resolve once those PRs are merged. - Related guides proposed in #50472, in case you'd rather merge or drop any of these: `too-many-connections-for-database-postgres`, `how-to-change-max-database-connections-_BQ8P5`, `supavisor-faq-YyP5tI`, `troubleshooting-connect_timeout-or-hanging-queries-in-vercel-serverless-functions-775f92`. --------- Co-authored-by: kodster28 <kody.jackson@supabase.io> |
||
|
|
a9f56b3c4a |
feat(ui): mobile nav drawer (#52177)
## Problem on mobile docs pages with a sidebar have two menu buttons: the burger opens the global menu, and a second bar opens the sidebar while kb has its own full-screen accordion menu making two apps sharing no mobile nav code ## Solution - adds `MobileNavDrawer`, `MobileNavTabs` and `MobileNavThemeButton` to `packages/ui-patterns/src/MobileNav` - makes docs and kb use the same three parts - adds a full-width drawer in `MobileNavDrawer` under `--header-height`. It sets `inert` while it is closed - adds a tab row in `MobileNavTabs`, with a dropdown below `@xl` to avoid multiple tab lines - adds a theme button in `MobileNavThemeButton`. Each tap moves to the next theme in `singleThemes` - shows the group tabs, the theme button and the links of the selected group above the sidebar | before | after | | -------|------| | <img width="619" height="802" alt="image" src="https://github.com/user-attachments/assets/09d441c6-b4f3-4768-bb29-1e1d4f23fad1" /> | <img width="619" height="802" alt="image" src="https://github.com/user-attachments/assets/53043083-f05f-45aa-b30e-3db6fccdd443" /> | <!-- ## 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) - [ ] 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) |
||
|
|
94e0e1e7d2 |
chore: Move ingest to new table while pointing the search_v2 fn to the experiment one (#52370)
## Problem Currently we experience a lot of empty results responses from our new search_v2 experiment. We are improving our search logic on our frontend plus our search functions in the backend ot fix this. ## Solution Improve our search setup to follow this path: 1. Same as before, strict full text search. 1. If that returns zero results, we do prefixes via wild cards, ie: "edge fun" becomes "edge fun|*" so people don't have to type the full term. 1. If that returns zero results, then we run the terms under OR, which will give partial results for individual terms. 1. If that returns zero results then we are most probably under a typo/misspelling scenario, then we use `pg_trgm` extension with a `0.4` tier to return the closest bit, which is good cause it covers missing first letters like "dge functions" too. We will do this migration in three steps to not disrupt current users under the experiments, I will be posting the PRs here: 1. First, we will create a new search_v2 table on `supabase.com [LIVE]` project where production parts of our monorepo go + already implement the improvements I just mentioned. 1. Re-route the ingest script to populate once per day the database table in this new project. At this point we will have the data and the search function ready. 👈 **this PR is here** 1. Update the API search_v2 function to query from this new project, so users will experience no down time. <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions _Make sure ingest runs correctly after merge._ ## 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) |
||
|
|
5d52b00f70 |
feat(studio): combine function invocations and logs (#50957)
With the unified logs preview on, an edge function's Logs tab renders the unified logs view scoped to that function (#50954), with its invocations and runtime output in one list. That replaces the separate Invocations and Logs tabs. - `UnifiedLogs` takes a `scope` plus view props: `hasFilterSideBar`, `offeredFilters` and `columnPreferencesKey`. The function Logs tab turns the sidebar off, which also drops the filters-toggle shortcut, and saves its columns and panel layout separately from the Logs page. - `getEdgeFunctionLogsScope` and `EDGE_FUNCTION_LOGS_VIEW` are the edge function preset: the scope's fixed filters, the filters the tab offers and its saved-columns key. It offers date, log type, level and message, so no user filter, since no function row has a user. - The Invocations tab and its shortcut are hidden. Old Invocations links redirect to Logs, converting `its`/`ite`/`log` to `date`/`id`. - `getEdgeFunctionLogsUrl` builds links into the scoped tab with the shared params serializer from #50953, and clicking a bar on the invocations chart uses it. With the preview off, both tabs work as on master. ### How to test 1. Turn on the unified logs preview and open an edge function's Logs tab. You should see only that function's invocations and runtime logs, with the filter bar limited to date, log type, level and message. 2. Filter to Edge Function runtime, then to errors, and check counts and the chart follow. 3. Open an old `/functions/<slug>/invocations?its=…&ite=…&log=…` link. It lands on Logs with the same range and log selected. 4. Click a bar on the Overview invocations chart. The Logs tab opens on that bucket. ### Validation - URL helper, offered filter and preset tests, plus the scoped query tests from #50954. - Studio typecheck, lint ratchet, Prettier and knip pass on this layer. ### Stack Merge in order: 1. #50953 — reusable logs table building blocks 2. #50954 — function-scoped unified logs queries 3. #50955 — slimmer function detail layout, header on Overview 4. #50957 — Invocations merged into a function-scoped Logs tab 5. #50958 — Overview errors in the shared logs table 6. #52281 — remove the legacy Overview --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jordi Enric <jordi.err@gmail.com> |
||
|
|
de32f3130b |
fix(studio): show compute size labels on infrastructure surfaces (#52170)
## Problem
We don't want to mention raw AWS instance type names. Instead only
display the actual instance size name (e.g. "Small", "Medium", ...).
Fixes PROD-673
## Solution
Add a `getComputeSizeLabel` helper (`apps/studio/lib/compute-labels.ts`)
that maps `infra_compute_size` to its display label (`medium` →
"Medium", `2xlarge` → "2XL", …) and returns `undefined` for unknown
values so callers render nothing instead of a raw value.
Studio elements changed:
- Read replica details: "Compute Size" field
(`/project/<project_id>/settings/infrastructure/replica/<replica_id>`)
- Infrastructure diagram: primary and replica node cards
(`generateNodes` now receives the label; replicas always match the
primary's compute size) (`/project/_/settings/infrastructure`)
- Map view: "AWS • {size}" line in the region popup
(`/project/<project_id>`)
- HA pooler node cards (`useHaPoolerCard`)
Also removes the `size` field from the create-replica request (API
ignores it).
Unit tests cover the new helper, including the unknown-value case. The
existing `project_homepage:show_instance_size` feature flag keeps gating
the label as before.
## Review instructions
1. Open a project's Infrastructure settings page
(`/project/_/settings/infrastructure`).
2. Check the diagram node cards and (for projects with replicas) the map
view popup: compute shows as "Small"/"Medium"-style labels matching the
project's compute badge.
3. Open a read replica's details page: the "Compute Size" field shows
the same label.
4. Open the add-replica dialog and submit: the request body contains
only `read_replica_region`.
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
|
||
|
|
78eb845aa2 |
feat(kb): add guides on database-only use, pausing, pricing, and scaling (#51343)
## Summary Adds 6 question-and-answer guides to the knowledge base about using Supabase as a standalone Postgres database, Free plan pausing, pricing, scaling, and self-hosting. Each guide answers one question: the description is the short answer, and the body adds the details and links into the docs. Ref: GROWTH-1191 ## Guides - Can I use Supabase as just a Postgres database? - Do Supabase projects pause when they're inactive? - How much does a single database-only Supabase project cost? - Is there a free hosted Postgres database I can use for a side project? - How do I scale a Supabase Postgres database? - Can I self-host Supabase? ## Notes - Links to the docs and the dashboard use absolute `https://supabase.com/...` URLs, so they also work on previews. - Some guides link to guides added in #51345, #51346. Those links resolve once those PRs are merged. - Related guides proposed in #50472, in case you'd rather merge or drop any of these: `pausing-pro-projects-vNL-2a`, `restore-project-after-90-days-pause`, `are-all-features-available-in-self-hosted-supabase-THPcqw`. --------- Co-authored-by: kodster28 <kody.jackson@supabase.io> |
||
|
|
6478d6d858 |
feat(kb): add guides on connecting frameworks and apps to Postgres (#51347)
## Summary Adds 8 question-and-answer guides to the knowledge base about connecting apps to Postgres by framework and app type: Next.js, SvelteKit and similar frameworks, Python, Rails, Laravel, Spring Boot, single-page apps, and mobile apps. Each guide answers one question: the description is the short answer, and the body adds the details and links into the docs. Ref: GROWTH-1191 ## Guides - Which Postgres database works for a Next.js app on Vercel? - How do I connect SvelteKit, Nuxt, Astro, or TanStack Start to Postgres? - How do I connect a Python app to hosted Postgres? - How do I connect a Ruby on Rails app to hosted Postgres? - How do I connect a Laravel app to hosted Postgres? - How do I connect a Spring Boot app to hosted Postgres? - How do I query Postgres from a frontend app without a backend? - Which database should I use for a mobile app? ## Notes - Links to the docs and the dashboard use absolute `https://supabase.com/...` URLs, so they also work on previews. - Some guides link to guides added in #51345, #51346, #51348. Those links resolve once those PRs are merged. --------- Co-authored-by: kodster28 <kody.jackson@supabase.io> |
||
|
|
2f59892ac6 |
fix(docs) - Mgmt API functions as h1 instead of h2 (#52340)
## Problem Current Mgmt API docs have no h1's, which is bad for AEO/SEO. ## Solution Updates the headingTag component to accept optional h1 input value + removed dupe header from top-level mgmt api page. ## Preview links ### Current https://supabase.com/docs/reference/api/v1-get-performance-advisors <img width="1778" height="947" alt="Screenshot 2026-10-26 at 3 43 02 PM" src="https://github.com/user-attachments/assets/871aad3c-049d-468c-9672-8bcb58ebe3bc" /> ### Proposed [mgmt api landing](https://docs-git-kody-devrel-769-supabase.vercel.app/docs/reference/api/introduction) (removed dupe header of `Introduction`) https://docs-git-kody-devrel-769-supabase.vercel.app/docs/reference/api/v1-get-performance-advisors <img width="1328" height="795" alt="image" src="https://github.com/user-attachments/assets/02bedc9e-f131-4e59-b495-ed9c54b98be8" /> --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
c81d8eab49 |
fix(studio): build oauth app grant mocks without iterator helpers (#52379)
`data/oauth-apps/mocks.ts` built a mock list with
`Array(50).keys().map(...)`, which needs `Iterator.prototype.map`
(Safari 18.4+, Chrome 122+, Firefox 131+). The array is built when the
module loads, not only when mocks are enabled, and `AccountLayout`
imports `USE_MOCKS` from this module. On older browsers every
`/account/*` page (plus the org OAuth apps page, `/account/apps` and
`/authorize`) crashes into the global error boundary with
`Array(50).keys().map is not a function`.
**Changed:**
- Build the 50 mock grants with `Array.from({ length: 50 }, …)`. Same
data, works everywhere.
This was the only chained iterator-helper call in `apps/` and
`packages/`.
## To test
- On the preview, open `/dashboard/account/me` in Safari 18.3 or earlier
(or any browser without iterator helpers): the page renders instead of
the error screen
- In a current browser, `/dashboard/account/me` and the org OAuth apps
page still render as before
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
|
||
|
|
08504ae26a |
fix(www) - remove duplicate h1 entries (#52341)
## Problem Dupe H1 entries across several pages ## Solution For blogs, remove the `#` or move to `##`. For others, adjust the templating logic to avoid rendering multiple. ## Preview links ### Design system [previous](https://supabase.com/design-system/docs) <img width="1328" height="832" alt="image" src="https://github.com/user-attachments/assets/95abab7f-acba-4935-83f7-4f980a7379ce" /> [new](https://design-system-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/design-system) <img width="1328" height="795" alt="image" src="https://github.com/user-attachments/assets/98c3f377-ee47-48bc-b3de-f7677824f1df" /> ### www | Area | Page | Before (production) | After (preview) | h1 count before → expected after | |---|---|---|---|---| | CTA form (Solutions) | AI Builders | https://supabase.com/solutions/ai-builders | https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/solutions/ai-builders | 2 → 1 | | CTA form (Solutions) | Agencies | https://supabase.com/solutions/agencies | https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/solutions/agencies | 2 → 1 | | CTA form (Enterprise) | Enterprise | https://supabase.com/solutions/enterprise | https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/solutions/enterprise | 2 → 1 | | Changelog | Declarative Schema Management (pg-delta) | https://supabase.com/changelog/44938-public-alpha-declarative-schema-management-with-pg-delta | https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/changelog/44938-public-alpha-declarative-schema-management-with-pg-delta | 2 → 1 | | Changelog | Queue table operations | https://supabase.com/changelog/42460-queue-table-inserts-edits-and-deletes-on-the-table-editor | https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/changelog/42460-queue-table-inserts-edits-and-deletes-on-the-table-editor | 2 → 1 | | Changelog | Auth asymmetric keys | https://supabase.com/changelog/29289-supabase-auth-asymmetric-keys-support-in-2025 | https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/changelog/29289-supabase-auth-asymmetric-keys-support-in-2025 | 5 → 1 | | Company | Company | https://supabase.com/company | https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/company | 40 → 1 | |
||
|
|
74045a0d61 |
feat(studio): load v2 permissions alongside v1 in ProfileProvider (#52387)
## What `ProfileProvider` now loads `/platform/profile/permissions/v2` alongside the v1 permissions, and includes it in the provider's `isLoading` state. ## Why Many grant-gated queries can't fire until the v2 permissions resolve. Previously the v2 request only started once a consumer (`useAsyncCheckPermissionsV2`, `useGrant`, `ensureGrant`) mounted, adding a serial round-trip in front of those queries. `ProfileProvider` sits near the root in both the Next.js (`pages/_app.tsx`) and TanStack Start (`routes/__root.tsx`) runtimes, so the request now starts in parallel with the profile and v1 permissions fetches on every page load. ## Notes - Consumers of `useProfile().isLoading` now also wait for v2 permissions. - The existing `permissionKeys.list()` invalidation in the profile-create 409 path prefix-matches the v2 key, so v2 is refetched there too. ## Testing - `lib/profile.test.tsx` passes. |
||
|
|
c62f591343 |
content(kb) - add next.js pointers (#52313)
## Problem Similar to #52187, but adding in a few FAQs specifically related to Next.js use cases. ## Preview links - [Add auth to a next.js app](https://kb-git-kody-devrel-758-nextjs-pointers-supabase.vercel.app/kb/faqs/nextjs/authentication-nextjs) - [best auth option for next.js](https://kb-git-kody-devrel-758-nextjs-pointers-supabase.vercel.app/kb/faqs/nextjs/best-authentication-option-nextjs) - [tech stack for nextjs app](https://kb-git-kody-devrel-758-nextjs-pointers-supabase.vercel.app/kb/faqs/nextjs/tech-stack-nextjs) |
||
|
|
f9e0376951 |
fix(studio): reload once on chunk load failures (#52380)
When a lazy-loaded JS/CSS chunk fails to load (flaky or mobile
networks), users land on the global error screen and stay there until
they refresh by hand. This reloads the page once instead, in both
runtimes.
A reload is the only reliable recovery: WebKit (Safari and every iOS
browser) caches a failed module fetch in the document's module map, so
every later `import()` of that URL fails instantly until the page is
replaced. TanStack's `lazyRouteComponent` already reloads once for route
chunks, but it keys its guard on the error message, and Safari's message
("Importing a module script failed.") is the same for every chunk and
survives reloads, so after the first time in a tab it never reloads
again. Non-route lazy imports (`next/dynamic`, `React.lazy`, Monaco) had
no recovery at all.
**Added:**
- `lib/chunk-load-error.ts`: `isChunkLoadError` (Chrome, Firefox,
WebKit, webpack `ChunkLoadError` and Vite's CSS preload wording) and a
reload guard
- The guard is time-based (`sessionStorage`, 30s window), not
message-based: a second failure within 30s of a reload shows the normal
error screen instead of looping. It's also capped at 3 automatic reloads
per tab, and the guard is read back after writing it. If storage is
unavailable, or silently drops the write, it never reloads
- Unit tests for every message form, the guard window, the per-tab cap,
and broken, missing or write-dropping storage
**Changed:**
- The global error boundary in `pages/_app.tsx` and `routes/__root.tsx`,
plus TanStack's root `errorComponent`, reload once for chunk-load errors
and render nothing while the reload is in flight. Fallbacks only peek at
the guard during render; the reload is claimed after commit
(`useChunkLoadReload`), so a discarded render can't use up the guard
- Chunk-load errors that a reload recovers from are no longer reported
to Sentry. One that recurs within the guard window (the user actually
saw the error screen) is reported, tagged `chunkLoadError: true`
No `vite:preloadError` listener: it also fires for hover/intent route
preloads, so reloading on it would refresh the page under someone who
only hovered a link.
## To test
- On the preview, open DevTools → Network, block one route chunk URL
(e.g. the SQL editor's), then navigate to it: the page reloads once and
recovers (unblock after the reload), with no error screen flash
- Keep the chunk blocked: after the one reload you get the normal error
screen, not a reload loop
- Repeat after 30s+ in the same tab: it reloads again
- Sentry: the recovered reload sends no event; the persistent failure
sends one tagged `chunkLoadError`
- Normal navigation and genuine non-chunk errors behave as before
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
|
||
|
|
080b888e6b |
feat(studio): slim edge function detail layout and move header to Overview (#50955)
The edge function detail layout is now breadcrumbs plus tabs (`PageNav`), without the page header, so tabs like Logs and Code get the full height below the tabs. The function name, invoke URL and last deploy details move into a header on the Overview tab, which also holds the chart period selector. Both the new and legacy Overview render it, and both now default to a 1 hour period instead of 15 minutes. The Overview sections (invocations, errors, performance and usage) now sit in one default-width `PageContainer` instead of each nesting a full-width one, and the invocations chart moves into a chart card. Invocations has no section heading, since it's the headline metric right below the page header. Both overview versions use the same chart periods. Sparse chart data is filled only between returned API buckets, avoiding synthetic zeros outside the reported range. Chart navigation uses the full rolling period, including a full day for the 1 day option. The selector shows a checkmark for the selected period, and the header announces loaded details. Self-hosted Studio retains a Copy URL action in the detail toolbar because it has no Overview tab. This layer doesn't depend on the logs changes below it. **Heads-up:** the header now only appears on Overview. Code, Details, Invocations and Logs show breadcrumbs and tabs only. This change isn't behind a flag. ### How to test 1. Open an edge function's Overview. The header shows the name, URL (with copy) and last deploy hover card, and the period selector sits in the header with 1 hour selected. 2. Switch through the other tabs. Breadcrumbs and tabs stay sticky, and there's no header. 3. With the `edgeFunctionsOverview` flag off, the legacy Overview renders with the same header. ### Validation - 104 focused tests pass with retries disabled and shuffled order (seed 50968). New tests cover both overview versions, period changes, empty results, header loading and copying, and self-hosted URL copying. Test names describe observable behavior. - 12 targeted regression mutations were detected and restored; the selected-indicator mutation was repeated after the visual alignment fix. - Browser QA on the staging preview for `3d055c0dc4` covers the header and deploy details, copied URL, period changes, all detail tabs, sticky navigation, the legacy overview, and empty results. Temporary local flag overrides were removed. The final test-only commit `5af6a2896b` has identical production code; its matching preview also passed header, URL-copy, period-switching, and Settings smoke checks. - Independent code review and changed-file formatting checks pass. All 40 executed CI checks pass on `5af6a2896b`, including TypeScript/lint, unit tests, Next.js and TanStack E2E tests, and builds. All six review threads are resolved. ### Stack Merge in order: 1. #50953 — reusable logs table building blocks 2. #50954 — function-scoped unified logs queries 3. #50955 — slimmer function detail layout, header on Overview 4. #50957 — Invocations merged into a function-scoped Logs tab 5. #50958 — Overview errors in the shared logs table 6. #52281 — remove the legacy Overview --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jordi Enric <jordi.err@gmail.com> |
||
|
|
5d8499b6f1 |
chore(eslint): allowlist grant and connectionString in query exhaustive-deps (#52334)
## Problem `@tanstack/query/exhaustive-deps` flags every variable used in a `queryFn` that isn't in the `queryKey`. Some variables are intentionally left out because they don't change the returned data, and keeping them out of the key avoids splitting the cache: * **`connectionString`** in queries that run SQL against the user's database. These currently need `eslint-disable` comments or count against the ratchet. * **`grant`**, the FGA grants that Studio data hooks now take (see #52331). Every migrated query would otherwise need a disable comment. The installed plugin (5.91.2) has no way to configure this. ## Solution * Upgrade `@tanstack/eslint-plugin-query` from `^5.0.0` (resolving 5.91.2) to `^5.104.5`. The rule's `allowlist` option arrived in 5.95.0. 5.105.0 is newer than our pnpm minimum release age allows. * Allowlist `grant` and `connectionString` for `exhaustive-deps` in `eslint-config-supabase/next.js`. * Remove the 11 disable comments in Studio that only suppressed `connectionString`. * Six disable comments stay, because they suppress other dependencies: * `ReportBlock.tsx` * `UserJourneys.queries.ts` * `github-config-query.ts` * `bucket-objects-infinite-query.ts` * `table-rows-query.ts` * `useSingleLog.tsx` * Lower Studio's `@tanstack/query/exhaustive-deps` baseline from 87 to 28. The upgraded rule is stricter than 5.91.2: without the allowlist it adds about 18 warnings. With the allowlist, the total drops well below the old baseline, because many existing warnings were unsuppressed `connectionString` omissions. The lockfile changes are the plugin and its `@typescript-eslint` dependencies. The graphiql entries are re-keyed by pnpm's peer resolution; their versions are unchanged. ## Testing * `pnpm --filter studio run lint:ratchet` passes. * ESLint is clean on each file where a disable comment was removed. * Other apps' ratchets only track `shadcn/*` rules, so they're unaffected. |
||
|
|
fd058409ac |
feat(www): add PG Down Under 2026 contest go page (#52361)
## What Adds the raffle landing page and thank-you page for PG Down Under 2026, modeled on the PGConf.dev 2026 contest page. - `/go/pg-down-under-2026/contest` - `/go/pg-down-under-2026/contest/thank-you` Differences from the PGConf.dev page: AirPods Pro 3 prize with a hero image, no talk/speaker section, and an onsite draw at the booth. Both pages are registered in `apps/www/_go/index.tsx` and marked for removal after November 30, 2026. ## Notes - HubSpot form is wired in. The field map uses the standard contact properties (`firstname`, `lastname`, `email`, `company`). - The hero image is a transparent PNG added under `apps/www/public/images/landing-pages/pg-down-under-2026/`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
49aab4b835 |
Add Santos Flores de Leon to humans.txt (#52343)
Adding myself to humans.txt per the onboarding process. ## Problem N/A ## Solution N/A ## Review instructions 1. Go to humans.txt 2. Confirm `Santos Flores de Leon` is in the right row. Alphabetical sort. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
fdab2cc751 |
feat(studio): interrupt serious account recovery gaps (#51643)
## Problem Users with serious recovery gaps may never visit Account Security, so a manually accessible reminder is easy to miss. ## Solution Show the existing reminder as a full-screen layout takeover after required MFA verification and successful account reads. Keep the original URL, query and fragment intact. The dashboard stays mounted but inert, preserving unsaved work; dismissal reveals it. Wait for existing dialogs to close. Keep rollout gating, eligibility and snooze unchanged. A successfully resolved background check dismisses an untouched takeover; started tasks and completed rows remain until Continue. Both of these recovery flags are enabled via ConfigCat for local and staging: - `enableAccountRecoveryInterstitial`: this work - `enableAuthRecoveryCodes`: the work it depends on We’ll only flip these to `true` for production once all of this is merged and heavily tested. | Interruption Example | | --- | | <img width="654" height="800" alt="16563" src="https://github.com/user-attachments/assets/eec71acf-78ab-473d-a9d3-9c6cdc3aff07" /> | The dashboard remains usable while eligibility loads. An open takeover stays in place through background refreshes. Signing out clears in-memory reminder state so clearing browser snooze permits retesting. ## Review instructions 1. Open [this PR’s staging preview](https://studio-staging-git-dnywh-account-recovery-interstitial-supabase.vercel.app/dashboard/organizations) with a non-SSO test account and complete required MFA verification. Check `enableAccountRecoveryInterstitial` and `enableAuthRecoveryCodes` are both true in the staging dev toolbar. Close the toolbar and other dialogs. 2. **Exhausted codes:** use an account with existing codes and exactly one verified authenticator. Override GET `/factors/recovery-codes` in DevTools Network: retain JSON fields, set `remaining` to `0` and save. Clear `account-recovery-reminder:<userId>` from Local Storage for this preview origin, then reload. Make sure you are **not** on `dashboard/account/security` as that won’t show the interstitial. Confirm the request uses the override and the takeover opens without changing the URL. 3. **Missing codes, separate scenario:** disable overrides and use an MFA test account with no generated codes. Clear snooze and reload. A zero remaining count simulates exhausted codes, not missing codes. A second verified authenticator prevents the exhausted-code trigger, but not the missing-code trigger. 4. Skip, reload and switch projects or organisations. Confirm snooze persists. A different account must have separate reminder state. For warning-to-critical escalation, generate codes on the missing-code account, then override its remaining count to zero and reload without clearing the warning snooze. 5. Disable overrides before live actions. Save codes or add an authenticator, then Continue. Confirm the page and URL remain intact. Tab and Command/Ctrl+K must not reach dashboard controls; nested dialogs must still work. Editor draft and browser-history preservation are also covered by component tests. 6. With snooze cleared, open a project URL containing a query and fragment; opening and dismissing the takeover must leave that full URL unchanged. Check account settings, sign-in, MFA verification and consent/connection flows remain uninterrupted. A healthy account, failed reads or a disabled rollout flag must not trigger a takeover. 7. Throttle the status request: the dashboard stays usable while eligibility loads. If another dialog is already open, the takeover waits until it closes. There is no standalone recovery route or runtime mock parameter. |
||
|
|
e2ec13d9a6 |
feat(studio): snooze recovery reminders per browser (#52124)
## Problem Skipped recovery reminders need a consistent reminder interval for each signed-in person in the browser. ## Solution Snooze missing codes for thirty days and exhausted codes for seven days. Escalation breaks snooze; sign-out preserves it. Completing codes, or adding a backup factor for exhausted codes, resolves the applicable gap. Track task actions, completion and dismissal. ## Review instructions **This PR’s own deploy preview cannot show the takeover.** Review its diff here, but test the assembled stack on [#51643’s staging preview](https://studio-staging-git-dnywh-account-recovery-interstitial-supabase.vercel.app/dashboard/organizations). The controller only mounts in #51643. Before each scenario: use a non-SSO staging test account with MFA verified; check `enableAccountRecoveryInterstitial` and `enableAuthRecoveryCodes` are both true in the staging dev toolbar, then close the toolbar and other dialogs. Clear `account-recovery-reminder:<userId>` from DevTools Application → Local Storage **for that preview origin**, then reload the dashboard. 1. Use an account with existing codes and exactly one verified authenticator. Override GET `/factors/recovery-codes` in DevTools Network: retain JSON fields, set `remaining` to `0`, save and reload. Confirm the overridden request succeeds and the takeover opens. 2. Skip. Confirm the URL stays unchanged and the local-storage record has critical severity with expiry seven days ahead. In a separate scenario, genuinely missing codes should record warning severity with expiry thirty days ahead. 3. Reload, switch projects or organisations, then sign out and back in. The reminder stays hidden. Clear the record and reload to retest. 4. Disable overrides before live actions. Save codes and Continue; the record clears. Adding a second authenticator resolves exhausted codes but must not resolve missing codes. Use separate test accounts for these cases. |
||
|
|
eec2d0f947 |
feat(studio): offer a backup authenticator in the recovery reminder (#52123)
## Problem A recovery reminder should let users save codes and add a backup authenticator independently, with clear loading and completed states. ## Solution Add an optional authenticator task for accounts with one verified factor. Keep completed rows visible, use text shimmers while loading, and dismiss an untouched takeover when a successful refresh confirms the gap is resolved. Continue and Skip dismiss through the same callback used by the layout takeover. | State | Screenshot | | --- | --- | | Loading | <img width="654" height="800" alt="40913" src="https://github.com/user-attachments/assets/d75585f0-5d00-46db-9ec7-1305da0f7464" /> | | Multiple issues | <img width="654" height="800" alt="Supabase" src="https://github.com/user-attachments/assets/8342667c-ecce-4271-a418-41295ebba223" /> | | One issue fixed | <img width="654" height="800" alt="15927" src="https://github.com/user-attachments/assets/693c37fe-e955-4c9d-b866-1c60743a31b8" /> | | Both issues fixed | <img width="654" height="800" alt="59618" src="https://github.com/user-attachments/assets/46140e95-b686-41ab-a5ea-94016f7eda29" /> | ## Review instructions **This PR’s own deploy preview cannot show the takeover.** Review its diff here, but test the assembled stack on [#51643’s staging preview](https://studio-staging-git-dnywh-account-recovery-interstitial-supabase.vercel.app/dashboard/organizations). The controller only mounts in #51643. Before each scenario: use a non-SSO staging test account with MFA verified; check `enableAccountRecoveryInterstitial` and `enableAuthRecoveryCodes` are both true in the staging dev toolbar, then close the toolbar and other dialogs. Clear `account-recovery-reminder:<userId>` from DevTools Application → Local Storage **for that preview origin**, then reload the dashboard. 1. Use a test account with missing codes and exactly one verified authenticator. Cancel Add authenticator, then reopen and enrol a test authenticator. Confirm only that row completes and Skip for now becomes Continue. Generate and acknowledge codes; both completed rows stay visible. These actions change the test account. 2. **Separate exhausted-code scenario:** use an account that still has exactly one verified authenticator. Override GET `/factors/recovery-codes` in DevTools Network: retain JSON fields, set `remaining` to `0`, clear snooze and reload. An account with two verified authenticators will not trigger for exhausted codes. Disable overrides before live actions. 3. For the codes-only layout, use an account with two verified authenticators and genuinely missing codes. Repeat at a narrow viewport. Loading, unavailable and externally resolved states have component-test coverage; healthy or failed reads must not trigger a takeover. |
||
|
|
749386567d |
feat(studio): fix recovery codes inside an interstitial (#52122)
## Problem Users need to fix missing or exhausted recovery codes without leaving the recovery reminder. ## Solution Add a reusable recovery reminder and full-screen modal shell using the existing recovery-code dialogs. Dismissal is a callback. The automatic layout gate in #51643 mounts the UI; there is no standalone preview route. | State | Screenshot | | --- | --- | | Blocked request | <img width="654" height="800" alt="39307" src="https://github.com/user-attachments/assets/2ba80ea7-24ad-4d29-ab50-730890501014" /> | | Recovery codes used up | <img width="654" height="800" alt="Supabase" src="https://github.com/user-attachments/assets/5dd63735-1254-4855-bbd8-04c2e4c699fa" /> | | No recovery codes | <img width="654" height="800" alt="Supabase" src="https://github.com/user-attachments/assets/58ff5b91-7da6-4c39-ad99-cea7cce8cf73" /> | | Recovery codes saved (just completed above _Generate codes_ step) | <img width="654" height="800" alt="63500" src="https://github.com/user-attachments/assets/1fc7ca56-a7cb-4edd-a3cd-4d8cf5c09659" /> | ## Review instructions **This PR’s own deploy preview cannot show the takeover.** Review its diff here, but test the assembled stack on [#51643’s staging preview](https://studio-staging-git-dnywh-account-recovery-interstitial-supabase.vercel.app/dashboard/organizations). The controller only mounts in #51643. Before each scenario: use a non-SSO staging test account with MFA verified; check `enableAccountRecoveryInterstitial` and `enableAuthRecoveryCodes` are both true in the staging dev toolbar, then close the toolbar and other dialogs. Clear `account-recovery-reminder:<userId>` from DevTools Application → Local Storage **for that preview origin**, then reload the dashboard. 1. **Exhausted codes:** use an account with existing codes and exactly one verified authenticator. In DevTools Network, right-click GET `/factors/recovery-codes` → **Override content**. Keep the JSON fields, set `remaining` to `0`, save and reload. Confirm the request shows the overridden response and the takeover opens. 2. **Missing codes, separate scenario:** disable overrides and use an MFA test account with no generated codes. Clear snooze and reload. Setting `remaining` to `0` simulates exhausted codes, not missing codes. 3. Disable overrides before live actions. Cancel regeneration to check existing codes remain intact, then generate or regenerate codes and acknowledge storage. These actions change the test account. Continue or Skip should reveal the unchanged URL and page. |
||
|
|
df8aca1fb2 |
refactor(studio): share recovery setup dialogs (#52121)
## Problem The same recovery setup needs to work from Account Security and the new recovery interstitial without duplicating dialog behaviour. ## Solution Share the generation and regeneration flow, and report completion only after codes are acknowledged or an authenticator is verified. Keep the existing Account Security entry points. This PR provides the dialog foundation; #52122 and #52123 consume its callbacks, and #51643 mounts the takeover. ## Review instructions 1. Open [Account Security](https://studio-staging-git-dnywh-recovery-shared-dialogs-supabase.vercel.app/dashboard/account/security) in staging, or `/account/security` locally, using a disposable test account. 2. Generate recovery codes. Confirm Done stays disabled until the save acknowledgement is checked, then closes the dialog. 3. Regenerate codes. Cancel the confirmation first and confirm nothing changes; repeat and confirm the replacement codes appear. 4. Open Add authenticator and cancel. Then complete enrolment with a test authenticator; confirm it appears only after verification. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
04ea14c103 |
fix(studio): isolate account recovery checks by user (#52120)
## Problem Account checks need consistent query gating and recovery-gap evaluation. Sign-in and sign-out already reset the query cache; user-scoped keys add defence in depth. ## Solution Tie account query caches to the signed-in person, honour query gating, and centralise recovery-gap evaluation. No layout changes. ## Review instructions 1. Open [Account Security](https://studio-staging-git-dnywh-recovery-account-queries-supabase.vercel.app/dashboard/account/security) in staging, or `/account/security` locally. Sign in with a test account that has MFA enabled; confirm its authenticators and recovery-code status load normally. 2. Sign out and sign in as a different test account with a different MFA setup. Confirm the page shows that account’s setup, without the previous account’s authenticators or code status. 3. Reload with MFA enabled and complete the sign-in challenge. Account Security should load normally after verification. |
||
|
|
5bdb7399e8 |
docs: add "The Supabase way to build" getting started guide (#50283)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? A getting-started page that sits between the architecture overview (what the pieces are) and the existing guides (how to build one). Explains which product features to add, and when, as you are building. ## What is the current behavior? - Architecture lists the services. Quickstarts show one setup. Nothing says which block to add next. ## What is the new behavior? The page tells you which Supabase piece to add next. The links open the guide that shows you how. A short table at the top maps a need to a piece: store data, know who is calling, keep rows private, handle files, run server logic, show live updates, go to production. Under that are the same seven pieces, in the order most apps grow. Stop at the last one your app needs. Every section has the same four parts: - The situation that means you need this piece - The idea to remember - The mistake to avoid - A few links to the existing guide One warning sits in the database section. The Next.js quickstart leaves its sample table public so the page can load. Come back here before that table holds private data. ## Additional context - Page: `the-supabase-way-to-build.mdx`. Tiles: `the-supabase-way-to-build.data.ts`. Nav: second item under Build with AI tools. - Explainer only. It links out for the how. - Needs an SME read. Placement is interim. ### [The Supabase way to build (Preview)](https://docs-git-nikrichers-docs-1389-experimental-the-9beaf4-supabase.vercel.app/docs/guides/getting-started/the-supabase-way-to-build) <img width="2222" height="15924" alt="Image2026-10-26_01-54-16_PM" src="https://github.com/user-attachments/assets/caf02275-6c7e-4b35-be7f-659953e86bd6" /> ### Test plan - [ ] Preview renders, and the sidebar entry is second under Build with AI tools. - [ ] Each section has a Build it group of links. - [ ] Database stage points at API keys and says the quickstart's public read is temporary. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added the “The Supabase Way to Build” guide, covering Database, Auth, RLS, Realtime, Storage, Edge Functions, and production hardening. - Added curated “Build it” links for each section to help readers find relevant guides. - Included guidance on securing data, files, credentials, and browser-accessible resources. - **Documentation** - Updated the Getting Started navigation to link to the new guide. - Clarified Storage policies, RLS behavior, public buckets, and secure secret management. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io> |