mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
docs/tutorial-template
189
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
fd01db4691 |
feat(www): send pageview and global crash metrics on preview (#54425)
## Problem Studio sends pageview and global crash counters to the frontend metrics endpoint on non-production deployments (#54331), and docs is getting the same in #54424. The marketing site sends neither. ## Solution Port the same implementation to `apps/www`: - **Gate**: the existing `IS_PREVIEW` constant (`NEXT_PUBLIC_VERCEL_ENV === 'preview'`). Nothing is sent in production or local dev. - **Sender**: `lib/frontend-metrics.ts`, the same fire-and-forget `text/plain` POST as Studio, tagged `app: 'www'`. - **Pageview**: `usePageviewMetric` sends one count on hydration and on each pathname change, and skips while the pathname is not yet available. It is mounted once per router: through a small client component in `app/layout.tsx`, and directly in `pages/_app.tsx`. A page is served by only one router, so it is never mounted twice. - **Crash**: `app/global-error.tsx` sends one `global_crash` per error object. `pages/_error.tsx` sends one when the status code is unset or 5xx, so 404s and other 4xx responses are not counted. No CSP change is needed because www does not set a Content-Security-Policy. No turbo change is needed because the www build env already passes `NEXT_PUBLIC_*`. ## Additional context `app/global-error.tsx`, `pages/_error.tsx`, and `lib/frontend-metrics.ts` use relative imports because the `sentry-browser` vitest project, which renders the two error files, has no path-alias resolution. ## Review instructions 1. Open the www preview deployment for this PR with the network tab open. 2. Load an app-router page and a pages-router page. Confirm each sends one POST to the metrics endpoint with `metric_name: "pageview"` and `app: "www"`. 3. Navigate client-side and confirm one more POST per pathname change. 4. In `apps/www`, run `pnpm exec vitest run lib/frontend-metrics.test.ts hooks/usePageviewMetric.test.tsx` and `pnpm exec vitest run --project sentry-browser`. |
||
|
|
9623f958be |
feat: Produce sitemap and full markdown files for docs (#54069)
## Problem Agents have no single index of the docs markdown exports, unlike the KB's `sitemap.md`. www's `/llms.txt` and `/llms-full.txt` also read docs files from disk, which forces www's build to wait on the docs build. ## Solution **docs** - Add `build:markdown-sitemap`, which writes `public/markdown/sitemap.md`. It scans `public/markdown/**/*.md` and lists each file as `[title](url.md)`. Guide URLs are `/docs/guides/<page>.md` and the rest are `/docs/markdown/<page>.md`, built with the existing `internal-links` helpers. - Add `build:markdown-full`, which writes `public/markdown/full.md`. It concatenates the same files. - Both scripts share one file-list helper (`internals/markdown-files.ts`), so they always cover the same files and exclude `sitemap.md` and `full.md`. - Both tasks depend on `build:markdown` and are wired into `build` in turbo. - Search v2 ingestion and the `docs.tar.gz` archive now ignore both files. **www** - `/llms.txt` and `/llms-full.txt` now fetch `sitemap.md` and `full.md` from `NEXT_PUBLIC_DOCS_URL`, replacing only their docs parts. Pricing, product overviews, agent resources, the KB link and the customer stories link are unchanged. If docs is unreachable, the docs section is left out instead of returning a 404. - Remove the on-disk docs reads, the `outputFileTracingIncludes` entries, and the `docs#build:guides-markdown` dependency and docs input globs from www's turbo config. These routes were the only link between www and the docs build. `turbo-build.test.ts` is updated to match. - Add a `/docs.md` → `/docs/markdown/sitemap.md` redirect, next to the existing `/kb.md` one. Routes without a markdown export are not patched, they are simply absent from the sitemap. ## Review instructions From the Docs preview link: 1. Open /docs/markdown/sitemap.md it should show a file with all links to the docs pages available in markdown 1. Open /docs/markdown/full.md it should show a file with all the content from all the pages Sadly, only after deployed... 1. www project should return the content of both files when: a. supabase.com/llms.txt is queried should return docs sitemap.md content b. supabase.com/llms-full.txt is queried should return docs full.md content 1. supabase.com/docs.md should return sitemap.md file ## 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) |
||
|
|
fe8e912993 |
refactor(www): split redirects into static and dynamic files and add redirect checks (#54194)
## Problem `apps/www/lib/redirects.js` was a single file with static and dynamic rules mixed together, and the redirects had no automated checks. `/docs` redirects already moved to `apps/docs/lib/redirects/`, so www was the odd one out. ## Solution I applied the docs layout to www without changing how redirects are served: - `apps/www/lib/redirects/static-redirects.json`: 220 one-to-one entries, including fixed redirects to external `https://` URLs. - `apps/www/lib/redirects/dynamic-redirects.js`: 14 entries with params, splats, regex, escapes, or `has`. - `apps/www/lib/redirects/index.js`: combines both (static first) for `next.config.mjs` and `scripts/generateMdContent.mjs`. - `apps/www/lib/redirects/redirects.test.ts`: checks for loops, chains, duplicate sources, invalid sources and destinations (anchors, missing `/` or `https://`), dynamic entries in the static file, and internal destinations that do not exist. - README for the folder, plus updates to `apps/www/README.md`, `DEVELOPERS.md`, `CODEOWNERS`, and the `www-tests` path filter and sparse checkout. Bulk redirects are not part of this PR: www has 234 redirects, well under the route limit, so they stay in `next.config.mjs`. ### Missing-destination check Internal destinations are checked against the same sources the site serves from: - `app/` and `pages/` routes, and `public/` files. - Blog, customer, event, and alternative slugs, derived the way `lib/posts.tsx` derives them. Events with `disable_page_build` do not count. - Feature and `/go` page slugs. - `.md` destinations must be a page that `generateMdContent.mjs` publishes. An existing HTML page is not enough. - `/docs/guides` destinations, against the docs content and guide routes. Other zones and build-generated files are not checked. A destination with params is probed with one sample value, so value-specific loops or chains are not caught. The README lists these limits. ### Behavior notes - The rule set matches `master`, with one exception: `/blog/2021/07/30/1-the-supabase-hackathon` now points at the canonical slug `/blog/1-the-supabase-hackathon`. The old destination `/blog/the-supabase-hackathon` also resolves today, because the blog route matches posts by filename suffix. The check requires canonical slugs. - First-match results on `supabase.com` are identical on 241 probe paths. - Static entries now precede dynamic ones. On the `supabase.design` host, 25 static sources that used to sit after its catch-all rule now come before it. Those paths now take two hops to reach the design system instead of one. - Comments on static entries were dropped, because JSON has no comments. ## To test 1. Open the www preview and visit `/about`. It redirects to `/company`. 2. Visit `/buildersday`. It redirects to `/builderday`. 3. Visit `/sign-in`. It redirects to the dashboard sign-in page. 4. Visit `/blog/2021/07/30/1-the-supabase-hackathon`. It lands on the hackathon post. ## Linear - fixes GROWTH-1571 |
||
|
|
d6e4089b1a |
feat(common): add FrameworkProvider and remove next imports (#53905)
Introduces a lightweight `FrameworkProvider` React context in `packages/common` (`Link`, `Image`, `pathname`, `asPath`, `isReady`, `params`, `push`), wires it up in the consuming apps, and removes the `next` dependency from `packages/common`. **Added:** - `FrameworkProvider`, `useFramework`, `FrameworkLink`, and `FrameworkImage` in `packages/common/framework.tsx`, with plain HTML defaults (`DefaultFrameworkLink` / `DefaultFrameworkImage`). `useFramework().push` always exists and falls back to `window.location.assign` - App-level framework providers wiring `next/link`, `next/image`, and router state in `www` (App + Pages routers), `docs`, `design-system`, `learn`, and `ui-library`, and native TanStack Router bindings in `studio` (`StudioFrameworkProvider`) - `StudioFrameworkProvider` reuses the common defaults (its image only applies the basePath) and reports `isReady` once the first route load commits, so the first page view carries the final route after any redirect - Unit tests for `StudioFrameworkProvider` (`useParams`, `FrameworkLink`, `FrameworkImage`, query/hash-only navigation, `isReady`) and for `PageTelemetry` route-change sends and the `TelemetryTagManager` consent gate **Changed:** - `common/hooks/useParams.ts`: read params from `useFramework()` instead of `next/compat/router` - `common/telemetry.tsx`: replace `next/script` in `TelemetryTagManager` with `useEffect` script injection, and read route state from `useFramework()` in `PageTelemetry` - `common/MetaFavicons/app-router.ts`: drop type-only `Metadata` import from `next` - Moved `MetaFaviconsPagesRouter` to `apps/www/components/MetaFaviconsPagesRouter.tsx` (its sole consumer) - Studio: `toRoutePattern` and `applyBasePath` now live once in `lib/internal-url.ts`, shared by the provider and the `compat/next` shims - `PageTelemetry` throws outside production when no `FrameworkProvider` is mounted, since it would otherwise send only the landing pageview. `useFramework()` itself still falls back to the defaults - `ui-library`: renamed its code-sample framework context to `FrameworkPreferenceProvider` / `useFrameworkPreference` so `FrameworkProvider` only means the `common` one **Removed:** - `learn`'s unused copy of that context (`useCourse` had no callers) - `next` from `packages/common/package.json` peerDependencies App Router adapters set `asPath` to the pathname only, same as the `usePathname`-based telemetry on master (reading search params at the root would opt static pages out of static rendering). ## To test - Run `packages/common` tests and typecheck, and `apps/studio` `StudioFrameworkProvider` / `route-render` / `telemetry` tests - Navigate between routes in Studio, Docs, and WWW and confirm page telemetry fires once per navigation (and does not duplicate on hash-only changes) - Load Studio at `/` (which redirects) and confirm the first page event has the final route - Verify URL params (`useParams`) continue resolving route and search params in Studio --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
d885fc7458 |
feat(www): shared account menu (#53666)
## Problem - www keeps its own copy of the account menu items separate from the shared top nav menu in kb and docs - www header buttons stay hidden until auth loads and the mobile menu shows no account links during that time - on app router page such as the home page sign out does not reload the page ## Solution - moves the www desktop account menu onto the shared top nav menu so www docs and kb show the same account items - fixes "Command Menu" shortcut label to follow the platform, so windows and linux readers see "Ctrl K" - changes the header and the mobile menu to read the signed-in mark while auth loads - moves the mobile menu account links onto the shared mobile actions, so www, docs and kb use one component - changes the desktop "Sign in" links to open the sign-in page, so desktop and mobile open the same page - fixes sign out on app router pages so the page reloads after sign out on every page <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. visit [homepage](https://zone-www-dot-com-git-antlio-fix-www-shared-account-menu-supabase.vercel.app/) 2. open the browser console, and run this snippet, which stores a fake dashboard session with no real token: ```js const user = { id: 'test', aud: 'authenticated', email: 'you@example.com', user_metadata: { avatar_url: 'https://github.com/supabase.png' } } const key = 'supabase.dashboard.auth.token' localStorage.setItem(key, JSON.stringify({ access_token: 'a.b.c', refresh_token: 'r', token_type: 'bearer', expires_in: 3600, expires_at: Math.floor(Date.now() / 1000) + 3600, user })) localStorage.setItem(`${key}-user`, JSON.stringify({ user }))``` 3. reload the page ## 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) |
||
|
|
a4b871d473 |
chore(www) - create customers.md index and link in llms.txt (#53461)
## Problem Missing `customers.md` entry (which also meant that a lot of these stories were missing from `llms.txt` as well). ## Solution Updates generation logic to create `customers.md` + adds reference to `llms.txt`. ## Preview links - [`llms.txt`](https://zone-www-dot-com-git-customers-md-index-supabase.vercel.app/llms.txt) - [`customers.md`](https://zone-www-dot-com-git-customers-md-index-supabase.vercel.app/customers.md) |
||
|
|
2445edf11f |
chore(www) - SEO tweaks (verbiage + h1 tweaks on products pages) (#53374)
## Problem - Current `/product` pages could use a bit of SEO optimization for terms - Current product pages include marketing copy within the H1 - Few other tweaks in docs. ## Solution Moves marketing subtitles out of the `/database` / `/compute` / etc h1s. Updates a few keywords based on seo data within pages + docs ## Preview links | Before | After | | --- | --- | | [/database](https://supabase.com/database) | [/database](https://zone-www-dot-com-git-kody-devrel-861-seo-term-t-9418b2-supabase.vercel.app/database) | --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
3f03e5b0d5 |
chore(www) - refactor faqs on /partners, /compute, and /pricing to avoid JS + add in LD-JSON entries (#53270)
## Problem faqs on /partners, /compute, and /pricing use JS, making them invisible to search / LLM crawlers. ## Solution Moves them to detail > summary elements in a shared component. ## Preview links - [/partners](https://zone-www-dot-lh2wp7c6i-supabase.vercel.app/partners) - [/compute](https://zone-www-dot-lh2wp7c6i-supabase.vercel.app/compute) - [/pricing](https://zone-www-dot-lh2wp7c6i-supabase.vercel.app/pricing) ## JSON-LD validation - [/partners](https://validator.schema.org/#url=https%3A%2F%2Fzone-www-dot-lh2wp7c6i-supabase.vercel.app%2Fpartners) - [/compute](https://validator.schema.org/#url=https%3A%2F%2Fzone-www-dot-lh2wp7c6i-supabase.vercel.app%2Fcompute) - [/pricing](https://validator.schema.org/#url=https%3A%2F%2Fzone-www-dot-lh2wp7c6i-supabase.vercel.app%2Fpricing) |
||
|
|
701730e3eb |
chore(kb,www,docs) - Add in relevant cross-links between the Supabase Component Library and kb,www,docs (#53237)
## Problem After #53183 and #52567 have been addressed, we should strengthen the interconnections between the UI library and the rest of the Supabase ecosystem. ## Solution - Adds contextual links for `/library`, Auth / Realtime category pages, and specific Auth / Realtime components. Hits top-level product pages, docs, kb, and blogs. ## Preview links N/A, link changes are relatively atomic so easier to review without many preview links. --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
e0816d183d |
chore(www) - tweaks for conversion on products / feature pages (#53173)
## Problem Low conversion rate for high SEO traffic pages (`/database`, `/features/sql-editor`, etc). ## Solution - For product pages, changing the button variant for `Start your project` to be `primary`, more visually eye-catching. This is the primary human CTA for the page, so should stand out more. - For `feature` pages, adding a manually specified line delimiter where we can inject a CTA button. Again, these are the primary purpose of the page for human readers, `hey, go try out this thing`, so we should optimize for this a bit more. We'd likely want to take a different approach if we apply this to _all_ feature pages, but this seems fine for an initial test here. Also, while I was in here, added a bunch of empty `blogURL` values for feature pages. ## Preview links ### product pages https://zone-www-dot-com-git-kody-devrel-822-sql-editor-8236e1-supabase.vercel.app/database <img width="1219" height="541" alt="Image" src="https://github.com/user-attachments/assets/67708db7-615f-4bba-aeeb-8647222ea2f3" /> ### feature pages https://zone-www-dot-com-git-kody-devrel-822-sql-editor-8236e1-supabase.vercel.app/features/sql-editor <img width="1219" height="968" alt="Image" src="https://github.com/user-attachments/assets/bbf69d91-0316-47c8-a279-a5d41131f830" /> |
||
|
|
a1538e957b |
feat(www): advertise the AI catalog from the homepage (#53153)
I added an AI catalog pointer to the homepage, following agentready.org practice AR-FIND-04: a `<link rel="ai-catalog">` tag in the head and a matching entry in the existing `Link` header on `/`. I also bumped the MCP server card from 0.15.0 to 0.16.1, the latest `@supabase/mcp-server-supabase` release. **Note:** Both point at `/.well-known/ai-catalog.json`, the path the spec names, which is our rewrite alias for `ard.json`. ## To test Tested on the PR preview: - [x] `curl -sI <preview>/`, expect a `link` header carrying both `rel="api-catalog"` and `rel="ai-catalog"` - [x] `curl -s <preview>/`, expect `<link rel="ai-catalog" href="/.well-known/ai-catalog.json"/>` before `</head>` - [x] `curl -s <preview>/.well-known/mcp/server-card.json`, expect `"version": "0.16.1"` ## Linear - fixes GROWTH-1469 |
||
|
|
d862ac18f2 |
feat(telemetry): stamp the app's platform on every event (#53078)
Every first-party PostHog event now carries a `platform` property naming
the supabase.com app that sent it. Each app passes its directory name
(`studio`, `www`, `docs`, `kb`, `learn`, `ui-library`) once at telemetry
setup, and I stamp it on both send paths.
**Changed:**
- **Events sent through the Management API**
(`/platform/telemetry/event`): `buildTelemetryEventRequest` adds
`platform` to `custom_properties`. This also covers kb's search events,
which build the request without `sendTelemetryEvent`.
- **Events sent by posthog-js** (pageviews, page leaves, identify,
experiment exposures): a `before_send` hook stamps `platform` at send
time.
- **App setup**: `PageTelemetry` takes a required `platform` prop, and
kb's island sets the value directly. While unset, the property is left
off instead of defaulting to an app.
**Note:** I used `before_send` instead of `posthog.register()`. Super
properties persist in localStorage, which every supabase.com app shares,
so events sent before `register()` runs would carry the previous app's
value.
**Do not merge yet.** Studio's `trackFeatureFlag` body still needs
`platform`. That commit waits for the Management API change that accepts
the field to reach production, plus an `api-types` regen. The flag-track
body is strict, so sending `platform` early returns 400 on every flag
call.
## To test
On each app's preview, accept cookies and add `?__posthog_debug=true` to
the URL.
- [x] Studio: load a page, expect `$pageview` with `properties.platform:
"studio"` (seen at ingestion: the staging PostHog project has
`$pageview` and `$pageleave` events from the studio-staging preview
host, all with `platform: "studio"`)
- [x] www: load the homepage, expect `send "$pageview"` with `platform:
"www"`; click "Start your project", expect the
`/platform/telemetry/event` request body to have
`custom_properties.platform: "www"` (both seen)
- [x] docs: load a guide, expect `send "$pageview"` with `platform:
"docs"` (seen); added: "Copy as Markdown" sends `custom_properties:
{"pageType":"guide","platform":"docs"}`
- [x] kb: load a page, expect `send "$pageview"` with `platform: "kb"`;
run a search, expect the `/platform/telemetry/event` body to have
`custom_properties.platform: "kb"` (seen on both `kb_search_submitted`
and `kb_search_result_clicked`)
- [ ] learn and ui-library: load a page, expect `send "$pageview"` with
`platform: "learn"` and `"ui-library"` respectively. Not checkable on
previews: learn has no preview deployment, and the ui-library preview
host is not on the consent provider's allowlist, so telemetry never
starts there.
- [x] Added, negative check: on docs, kb and www, no captured posthog-js
event had `platform` unset or set to another app
- [x] Added, ingestion: in the staging PostHog project,
`copy_as_markdown_clicked` (docs) and `start_project_button_clicked`
(www) carry `platform` as a top-level event property
## Linear
- fixes GROWTH-1450
|
||
|
|
2fd66161ea |
docs(www): remove "no data-transfer tax" claim from compute FAQ (#53084)
<!-- claude-slack-attribution --> _Requested by **Kalleby Santos, Bruno Kilian** · [Slack thread](https://supabase.slack.com/archives/C0BB4MAJW58/p1791486981400579?thread_ts=1791486981.400579&cid=C0BB4MAJW58)_ ## Problem The "Can I attach a persistent disk?" FAQ answer on /compute says Postgres and Supabase Storage are reachable with "no data-transfer tax". That is not accurate: Compute reaches Storage through the Cloudflare/API gateway, so egress still applies. **Before:** "...use your Postgres database for structured data and Supabase Storage for files — both reachable with near-zero intra-region latency and no data-transfer tax. Mountable persistent disks are on the roadmap." **After:** "...use your Postgres database for structured data and Supabase Storage for files, both reachable with near-zero intra-region latency. Mountable persistent disks are on the roadmap." ## Solution Remove the "no data-transfer tax" claim from `apps/www/app/(products)/compute/_components/FAQSection.tsx` and swap the em dash for a comma in the clause being edited. No other copy changes. Kalleby Santos (@kallebysantos) is credited as co-author via a `Co-authored-by` trailer on the commit. ## Review instructions 1. Open `/compute` and expand "Can I attach a persistent disk?". 2. Confirm the answer no longer mentions data-transfer costs. --- _Generated by [Claude Code](https://claude.ai/code/session_01M8V2QPNwybc8GJg94K3TX9)_ Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Kalleby Santos <105971119+kallebysantos@users.noreply.github.com> |
||
|
|
5deb2de888 |
chore(www) - strengthen cross-links to /database + add 'free' to page description and content (#52731)
## Problem Not ranking quite as highly in traditional SEO for generic, unbranded queries like `free database`. Similar in vibes to #50667. ## Solution - Explicitly adds `free` to the positioning on the main database page - Cross links where applicable from various blogs. Predominantly older posts, as those aren't typically visited by end users. ## Preview links TBD |
||
|
|
315447c4f9 |
fix: server-render FAQ answers and library catalog (#52644)
Four pages served their main content only after JavaScript ran, so
crawlers that don't run it never saw that content. The FAQ answers on
/pricing, /compute and /partners were missing because the accordion
unmounts closed panels. The /library catalog was missing because
`LibraryOverview` read `?category=` with `useSearchParams`, which makes
Next client-render everything up to the nearest Suspense boundary on a
static route.
**Changed:**
- **FAQ answers render in the HTML, collapsed**: I added `FaqAnswer`,
which keeps each panel mounted (`forceMount`) and collapses it with a
grid-rows transition, and I replaced `AccordionContent` with it at the
three FAQ call sites. Open and close keep the same 150ms ease-out
motion. The panel turns `invisible` 150ms after closing, so closed
answers are not tabbable and not listed as regions, as before.
- **The /library catalog renders in the static HTML**: I moved the
`useSearchParams` read into a small `CategoryFromUrl` child that renders
nothing, under its own `<Suspense fallback={null}>`, and removed the
page-level `<Suspense>`. The child passes the category up to
`LibraryOverview` state in a layout effect, so category clicks, header
navigation to `/`, and back and forward still update the filter before
paint.
**Note:** the shared `ui` `AccordionContent` is unchanged for other
apps. The FAQ height transition sits on an inner element because Radix
sets `transition-duration: 0s` on the content node while it measures it.
On a hard load of a `/library?category=X` link (the kb FAQs link to
`?category=Authentication`), the catalog shows All until the client
applies X. Before this change the page was empty in that window.
Avoiding it means rendering the page per request.
## To test
I tested on the PR previews:
- [x] `curl -sL` /pricing with a Chrome user agent and strip `<script>`,
`<style>` and `<template>`: all 11 FAQ answers are present (prod has
none). Same for /compute (7) and /partners (5).
- [x] On /pricing, /compute and /partners, open and close a FAQ: it
slides open and closed as on prod (about 150ms each way), and the answer
stays visible while it collapses.
- [x] Open two FAQs on /pricing: both stay open.
- [x] With every FAQ closed, press Tab from a question: focus skips the
links inside closed answers. Once that FAQ is open, Tab focuses the
link.
- [x] With reduced motion enabled, open and close a FAQ: both happen
instantly.
- [x] `curl -sL` /library the same way: "Building blocks for your next
backend", all 19 block titles and the canonical link are present. The
only `<!--$!-->` is the empty `CategoryFromUrl` slot, a sibling before
the heading.
- [x] On /library, click a category: the list filters and the URL gains
`?category=`. Click "Browse all blocks" in the header: All is selected
again and every block shows.
- [x] Open `/library?category=Authentication` directly: the list ends up
filtered. Click a block, then go back: the filter is still applied.
- [x] No hydration, `useSearchParams` or Suspense warnings in the
console on any of these pages.
- [x] Compare preview with prod at 1440px and 390px wide on /pricing,
/compute, /partners and /library: FAQ row heights, spacing and
open-answer heights match prod to the pixel, nothing is clipped, and the
/library catalog and `?category=Authentication` view render the same as
prod.
## Linear
- part of GROWTH-1416
|
||
|
|
d2d0a9ec8e |
fix(www): server-render the /events list (#52637)
`/events` showed skeletons until a client-side request to the Luma events API finished, so the raw HTML had no upcoming events and every category count read zero. I moved the Luma fetch to the server next to the Notion and MDX loaders, so the HTML now includes the event list, and I set the page to revalidate every 5 minutes. **Changed:** - **Event list in the HTML**: I built `getLumaEvents` on the upstream fetch from `/api-v2/luma-events`, which I made shareable and gave a 10 s timeout, with the same public-only filter and mapping the client used. I removed the client fetch, the loading state and both skeletons. - **Luma failures**: on a missing API key, an upstream error or a timeout, `getLumaEvents` returns no Luma events and reports the error to Sentry, the same soft fallback the Notion loader uses, so neither the build nor a regeneration can fail on Luma. - **Dates without hydration mismatches**: I format each event's date and time in the event's own time zone on the server and the first client render (banner times carry the zone name, and the banner always shows the year). After hydration the page switches to the visitor's time zone, as before. **Note:** before JavaScript loads, visitors now see event-local times labeled with their zone where they used to see skeletons. If Luma is down during a regeneration, the page shows no Luma events until the next successful regeneration. ## To test Tested on the PR preview: - [x] Fetch `<preview-url>/api-v2/luma-events?after=<now>`, then fetch `<preview-url>/events` with a Chrome user agent, strip `<script>`, `<style>` and `<template>` elements and React's `<!-- -->` separators: expect every returned event name in the HTML, `All (N)` equal to the number of event cards (`h3.leading-snug`), and no `animate-pulse` skeletons (5/5 names, `All (5)` with 5 cards, 0 skeletons; a 6 PM Denver event groups under its own local date) - [x] Open `/events` in a browser outside UTC: expect no hydration errors in the console, banner times in local time without a zone label, and no request to `/api-v2/luma-events` (Asia/Singapore: none of either) - [x] Click a category filter, then All; search for a title word, then clear it; toggle On-demand: expect the list to narrow and restore as before, and the banner to hide on On-demand ## Linear - part of GROWTH-1416 |
||
|
|
34edc20abe |
chore(www) - add yandex verification meta tag (#52402)
## Problem Missing verification for Yandex. Adding as a meta tag very similar to #52335 ``` <meta name="yandex-verification" content="5e1de4f569de9cff"> ``` ## Preview links https://zone-www-dot-com-git-kody-devrel-777-yandex-ver-ab43ac-supabase.vercel.app/ <img width="1328" height="794" alt="image" src="https://github.com/user-attachments/assets/d4cce374-ea49-494e-8ec5-f1880037f43e" /> |
||
|
|
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) |
||
|
|
c6bd1a5394 |
chore(www) - add bing verification meta tag to homepage (#52335)
## Problem Missing `bing` verification for webmaster tools. ## Solution Can be added a couple ways, but this was the fastest ``` Copy and paste the <meta> tag into your site's home page. It should go in the <head> section, before the first <body> section. HTML Meta Tag <meta name="msvalidate.01" content="92FBA8A0D370D71480454DBEAB37D0AE" /> * To stay verified, don't remove the meta tag even after verification succeeds. ``` ## Preview links https://zone-www-dot-com-git-kody-devrel-740-bing-verification-supabase.vercel.app/ <img width="1128" height="734" alt="image" src="https://github.com/user-attachments/assets/d36ae51c-1355-46fe-b263-47b59909f542" /> |
||
|
|
b0aeee4b29 |
fix(www) - add blog alt link to rss feed (#52336)
## Problem Missing alt tag for the blog changelog feed, similar to part of #52292 ## Solution Adds it ## Preview links [blog homepage](https://zone-www-dot-com-git-kody-devrel-731-alternate-bef917-supabase.vercel.app/blog) <img width="1128" height="734" alt="image" src="https://github.com/user-attachments/assets/afc152d6-7041-4a27-9b08-3df9e8a85bcb" /> |
||
|
|
c5f9403d8a |
feat(www): add AWS Marketplace landing and pricing FAQ (#52198)
## Problem Customers with an AWS spend commitment (PPA or EDP) need a clear way to buy Supabase through AWS Marketplace. Today that path is easy to miss on marketing surfaces. ## Solution - Canonical `/aws-marketplace` landing with self-serve (Pro/Team via Buy with AWS) and private-offer (Enterprise form) paths - Buy with AWS CTA: our primary `Button`, co-branded procurement URL, `partner.js`, and `data-awsmp-bwa-*` attributes - Pricing FAQ item linking to the landing page and public listing - Older blog post banner pointing at the updated path | `/aws-marketplace` | `/pricing` | Blog Post | | --- | --- | --- | | <img width="1280" height="1323" alt="Supabase on AWS Marketplace" src="https://github.com/user-attachments/assets/19318bd0-6a07-49e2-8a1f-7c2a827f790a" /> | <img width="1280" height="1323" alt="Pricing Fees Supabase" src="https://github.com/user-attachments/assets/7d3278e7-0e5f-4206-8642-d8e8450a2c79" /> | <img width="1280" height="1323" alt="88266" src="https://github.com/user-attachments/assets/e0d1b4cc-886e-4858-944a-6792af202e1b" /> | ## Review instructions 1. Open the [www preview](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/aws-marketplace) for `/aws-marketplace` 2. Confirm hero **Buy with AWS** (primary green) opens the AWS procurement URL with product/seller IDs 3. Confirm **Request a private offer** goes to the Enterprise form 4. Open [`/pricing`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/pricing) → FAQ → “Can I purchase Supabase through AWS Marketplace?” 5. Open [`/blog/supabase-aws-marketplace`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/blog/supabase-aws-marketplace) and confirm the banner about the updated path |
||
|
|
831d6302c7 |
chore: use social sign-in on the marketing site, Dashboard, UI library, and KB (#52109)
## Problem [supabase/supabase#52102](https://github.com/supabase/supabase/pull/52102) renames *social login* to *social sign-in* in the docs, so every sign-in method follows the same pattern: social sign-in, phone sign-in, anonymous sign-in, and passwordless email sign-in. The marketing site, the Dashboard, the UI library docs, the knowledge base, and the Docker configuration still say "social login". Keeping one name per feature across every surface matters: readers and AI agents moving between the Dashboard, the docs, and the marketing site see the same term, and search finds one name. Part of [DOCS-1459](https://linear.app/supabase/issue/DOCS-1459). ## Solution "Social login" is "social sign-in" in visible text on: - **Marketing site:** the Auth product page, including an icon grid's `aria-label`, the home page's frameworks section, the social sign-in feature page's title, subtitle, and description, the Markdown versions of the Auth and home pages, and the Supabase vs Firebase comparison. - **Dashboard:** the command menu entry for Auth providers, "Auth: Providers (Social Sign-in, SSO)". - **UI library docs:** the link to the docs on six social auth block pages, and one sentence on the React Router page. - **Knowledge base:** the link text in the Auth0 migration guide. - **Docker configuration:** the comments in `docker-compose.yml` and `.env.example`. Intentionally unchanged: - **URLs, code names, and file names:** `/features/social-login`, links to `/docs/guides/auth/social-login/...`, `handleSocialLogin` in the UI library blocks, and image files such as `social-login.png`. A separate PR moves the URLs to `social-sign-in` with redirects. - **Dated and quoted content:** blog posts, an event page, a customer story, and a quoted user tweet. ## Review notes - **Dashboard search:** the command menu's `value` is also its search text, so typing "social login" no longer matches the Auth providers entry. "Social", "providers", and "SSO" still match. - **UI library block names:** the blocks are named `social-auth` (for example, `social-auth-nextjs`), and the name is part of their install commands. Renaming a block breaks those commands, so that's a decision for the UI library's owners. ## Preview links - [Auth product page](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/auth) - [Home page](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/) - [Social sign-in feature page](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/features/social-login) - [Supabase vs Firebase](https://zone-www-dot-com-git-alexisa-docs-1459-surfaces-supabase.vercel.app/alternatives/supabase-vs-firebase) - [UI library: Social auth (Next.js)](https://ui-library-git-alexisa-docs-1459-surfaces-supabase.vercel.app/ui/docs/nextjs/social-auth) - [Knowledge base: Migrate from Auth0](https://kb-git-alexisa-docs-1459-surfaces-supabase.vercel.app/kb/guides/migrate-from-auth0) |
||
|
|
497cbecfd3 |
feat: Generate sitemap.md file in kb, fix markdown slug reconciliation, update llms file (#52076)
## Problem We need a general entry level file for kb discovery for agents. ## Solution - Generate a sitemap.md file with all relevant links listed within the project - Set redirects so supabase.com/kb/sitemap.md and supabase.com/kb.md lead to that file - Add link to the file in the llms.txt file - Fix some slug reconciliation issues within troubleshooting suffixes - Move scripts to .ts to follow architectural conventions <!-- ## 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. Make sure troubleshooting markdown files work correctly, go to the preview site of kb in this PR, open a troubleshooting guide with a suffix, add .md at the end, it should return markdown version of the page 2. Go to the preview site of kb in this PR, add /sitemap.md, a markdown file with a list of all topics, guides and troubleshooting articles should appear (sadly www redirects cannot be tested on preview environments) ## 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) |
||
|
|
f15391efee |
fix(www, changelog) - add in canonical URLs for product, blogs, partners, pricing pages (#51859)
## Problem Missing canonical tags on many `www` pages (blogs, changelog entries, product pages, etc.). Part of general AEO / SEO hygiene. ## Solution Adds these in a similar pattern to `mdAlternates` (#48287) <img width="984" height="381" alt="image" src="https://github.com/user-attachments/assets/0a596f7f-b034-451f-9ea1-6804c5184388" /> ## Preview links Route type | Live | Preview -- | -- | -- Home (app router, page-level canonical) | https://supabase.com/ | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/ Blog index (app router) | https://supabase.com/blog | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/blog Blog post | https://supabase.com/blog/supabase-alpha-april-2020 | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/blog/supabase-alpha-april-2020 Blog tag | https://supabase.com/blog/tags/postgres | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/blog/tags/postgres Blog author | https://supabase.com/blog/authors/paul_copplestone | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/blog/authors/paul_copplestone Product page | https://supabase.com/edge-functions | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/edge-functions Pricing | https://supabase.com/pricing | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/pricing Features index (pages router, _app) | https://supabase.com/features | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/features Feature sub-page | https://supabase.com/features/postgres-database | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/features/postgres-database Page with its own NextSeo canonical (override case) | https://supabase.com/state-of-startups-2025 | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/state-of-startups-2025 Legal page, no page-level SEO (pages router default) | https://supabase.com/legal | https://zone-www-dot-com-git-kody-devrel-730-canonical-309a80-supabase.vercel.app/legal |
||
|
|
d2650ffa32 | fix(www): render partner catalog without js (#51950) | ||
|
|
d1a38675ea |
feat(www): add project ID field to compute waitlist (#51772)
## 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? - Feature: new optional Project ID field on the Compute private alpha waitlist form at /compute ## What is the current behavior? The waitlist form doesn't ask for a project, so each project ID has to be collected by follow-up before access can be granted. ## What is the new behavior? - Adds an optional "Project ID" field, with an info tooltip that shows which part of the project URL it is and links to Settings → General - Adds the note "Only projects created in us-west-2 can access Compute." - Also accepts a pasted project URL or dashboard URL and normalizes it to the 20-letter ref, on both the client and the API route - Sends the ref to HubSpot as the existing `supabase_project_ref` contact property - Adds unit tests for the ref parser ## Additional context `supabase_project_ref` has been added to the Compute Private Alpha Waitlist form in HubSpot and tested. (The v3 integration submit endpoint rejects fields that aren't on the form, so this was required before merging.) --------- Co-authored-by: Ana <ana1337x@users.noreply.github.com> Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com> |
||
|
|
f1082e28c7 |
chore: migrate Framer Motion imports to Motion (#51520)
## Problem Closes #31221. The applications and shared UI packages still import the former `framer-motion` package instead of Motion's React entry point. ## Solution Replace runtime imports, type imports, and three test mocks with `motion/react` across the consuming workspaces. Replace the seven direct dependency declarations with `motion: ^11.18.2`. Preserve the existing animation engine version and all other dependency resolutions, including the asynchronous `domMax` feature loader. Historical blog examples remain as published; `framer-motion` remains a transitive implementation dependency of Motion. ## Review instructions 1. Run `pnpm install --frozen-lockfile` and check the seven dependency replacements in the lockfile. 2. Open the WWW Auth page and Docs homepage at desktop and mobile widths, with normal and reduced motion preferences. 3. Open the mobile navigation, expand Product on WWW, and close the menu using Escape and the close button. 4. Check the existing animation components, shared form validation, and Studio tests for unchanged behavior. Validation: - Studio: 731 test files, 8,334 passing tests and one expected failure, with `--maxWorkers=4`. - Shared UI, UI patterns, WWW, and UI library: 615 passing tests. - `pnpm run typecheck --concurrency=1`: all 16 repository tasks pass. - All six application source lint scripts and lint ratchets pass; generated Docs example copies are excluded from local lint. - Repository Prettier source check, lockfile formatting, and case hazard check pass. - WWW: 10 existing end-to-end checks across nine pages. - Docs: 5 existing guide link and accessibility checks across Database and Auth. - WWW and Docs mobile navigation pass at desktop/mobile sizes with normal/reduced motion; SQL-to-REST translation tabs exercise the asynchronous feature loader without browser errors. - Frozen-lockfile installation passes; all existing package and snapshot resolutions are unchanged. - Learn and UI library command palettes open, filter results, and close with Escape without browser errors. - Independent code review finds no actionable defects. - `npm run build -- --filter=www --filter=docs --filter=studio --filter=learn --filter=library --concurrency=1 --continue=always`: all five affected applications build successfully (9 tasks including prerequisites); asset uploads disabled for local validation. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) (no docs topics changed) --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
7b48b298ee |
feat(apps): distinguish local development with blue blueprint favicons (#51420)
## Problem - Local apps are hard to distinguish from hosted apps in browser tabs. ## Solution - Add blue blueprint icons to local development in all 8 apps and Studio CLI. - Keep normal branding for production, hosted staging and self-hosted Studio. - Builds on #51419. | Before | After | | --- | --- | | <img width="1290" height="76" alt="CleanShot 2026-10-08 at 13 29 14@2x" src="https://github.com/user-attachments/assets/72bc50d7-37e0-47d0-8dfd-50e233a443bd" /> | <img width="1282" height="72" alt="CleanShot 2026-10-08 at 13 30 03@2x" src="https://github.com/user-attachments/assets/afb15a70-3938-4cff-9b41-dc6c25460b7c" /> | ## Review instructions - Start an app locally. Its browser tab should show the blue icon. - Check Studio CLI uses blue and hosted staging uses white. - Check production icons are unchanged, including Learn's black and white icon. - Run `node scripts/validate-favicons.mjs`. All 16 sets should pass. Asset and routing checks, formatting and Common/Studio type checks passed. Full builds have not been run. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
255a80e219 |
refactor(apps): standardise existing favicon assets and declarations (#51419)
## Problem - Favicon files and markup are duplicated across apps. ## Solution - Replace old files with one ICO, one Apple icon and two manifest icons per set. - Share icon markup and add generation notes and scripts. - Keep existing branding, including Learn's black and white icon. - Make the border radius match across all apps’ favicons. ## Review instructions - Check normal app icons and Studio staging in browser tabs. - Check icons load under `/docs` and `/kb`. - Run `node scripts/validate-favicons.mjs`. All 8 sets should pass. |
||
|
|
240e954390 | fix(www): fix partners links and 404 redirects (#51294) | ||
|
|
81da60392e |
feat(www): add multigres alpha form to /database (#51298)
The Multigres private alpha request form only lives at /go/multigres-early-access (#51053), and nothing on the product site links to it. I added the same form to /database, the way /compute embeds its waitlist form. The new section sits at the bottom of the page, directly above the closing "Start your project" CTA: the go page's hero copy, the alpha caveats, and a "Learn about Multigres" link to multigres.com on the left, the form on the right. Fields, disclaimer, and redirect are read from the go page definition. The form posts `{ slug: 'multigres-early-access', formId: 'form' }`, so the server resolves the existing CRM config and submissions land in the same database as the go page. **Note:** the section throws at build time if the go page or its form section is removed, so retiring the go page means removing this section in the same change. ## To test Tested on Vercel preview: - [ ] Open /database and scroll to the bottom: expect a "Private alpha / Multigres on Supabase" section directly above "Build in a weekend, scale to millions", with the email and organization slug form, the alpha caveats, and the Privacy Policy disclaimer - [ ] Click "Learn about Multigres": expect multigres.com to open in a new tab - [ ] Resize to a phone width: expect the text stacked above the form card with no horizontal scroll - [ ] Open /go/multigres-early-access: expect its page and form unchanged - [ ] After merge, submit a test request from supabase.com/database: expect a redirect to /go/multigres-early-access/thank-you and a new row in the Multigres requests database ## Linear - fixes GROWTH-1321 |
||
|
|
36364e7df3 |
fix(www): stop wrapping oklch semantic tokens in hsl() (#51161)
## Problem Semantic colour tokens (`--border-*`, `--foreground-*`, `--background-*`) now resolve to full `oklch(...)` values. Call sites that still wrapped them in `hsl(var(--…))` are invalid CSS and drop the colour (Partners ambient grid was the clearest case). Brand / destructive / warning channel tokens still correctly use `hsl(var(--…))` and were left alone. Presence avatar stack polish is in https://github.com/supabase/supabase/pull/51164. ## Solution - Use bare `var(--…)`, `currentColor`, or Tailwind utilities for semantic tokens. Opacity cases use `oklch(from var(--…) l c h / …)`. - Partners grid: fix, and then use `text-foreground/20` in light, `text-foreground/30` in dark for optical correction. | Before | After | | --- | --- | | <img width="1860" height="1106" alt="CleanShot 2026-10-02 at 16 29 08@2x" src="https://github.com/user-attachments/assets/4554b0c9-22cf-4b06-bbe3-798e8b15304e" /> | <img width="1852" height="1112" alt="CleanShot 2026-10-02 at 16 28 44@2x" src="https://github.com/user-attachments/assets/20ccbc80-5eaa-49e6-8f94-48b99dc01474" /> | | <img width="1024" height="759" alt="20701" src="https://github.com/user-attachments/assets/a4e578cf-5adb-4f7a-a53b-870a51f5f948" /> | <img width="1024" height="759" alt="59176" src="https://github.com/user-attachments/assets/dda3fc2d-d86b-45a5-adca-403223cc5f33" /> | ## Review instructions 1. [Live /partners](https://supabase.com/partners) · [Preview /partners](https://zone-www-dot-com-git-dnywh-fixhsl-oklch-semanti-9bc03a-supabase.vercel.app/partners). Ambient dashed grid under the hero (light and dark). 2. [Live /database](https://supabase.com/database) · [Preview /database](https://zone-www-dot-com-git-dnywh-fixhsl-oklch-semanti-9bc03a-supabase.vercel.app/database). Postgres elephant idle outline should be muted grey, not black. Hover still brand green. 3. [Live /state-of-startups](https://supabase.com/state-of-startups) · [Preview /state-of-startups](https://zone-www-dot-com-git-dnywh-fixhsl-oklch-semanti-9bc03a-supabase.vercel.app/state-of-startups). Chart **More AI-generated code, less likely to be monetizing yet**: horizontal gridlines at 0/25/50/75/100% should render. 4. Storage / Edge Functions changes are correctness-only (shadows, idle borders, a top fade). Near-invisible to the naked eye; skip unless debugging. |
||
|
|
a9078612f2 |
fix(www): stop cross-zone link prefetch (#51066)
About 95% of the 404s served on supabase.com are App Router RSC prefetches (`?_rsc=`) that www `<Link>`s fire at paths another zone serves: `/docs`, `/dashboard`, `/library`, and the footer's `humans.txt`, `lawyers.txt` and `security.txt`. Next.js can't prefetch or client-navigate across multi-zone boundaries, so each prefetch 404s even though the link itself works. I turned every www link into another zone into a plain `<a>` and added a lint rule so new ones stay that way. **Changed:** - **Cross-zone links are plain anchors**: links that always leave www (literal `/docs`, `/dashboard` and `.txt` hrefs, absolute `https://supabase.com/dashboard` URLs, the `getDashboardCtaHref` CTAs) render `<a>`. Renderers whose href comes from data (nav, footer, plan and add-on CTAs, product cards) branch on `isCrossZoneHref`, which reads the zone list from `lib/rewrites.js`. In-zone links stay `<Link>` and keep prefetching. - **New literal links can't regress**: `www/no-cross-zone-link` errors on a `next/link` `<Link>` whose literal or template href points at another zone. It evaluates `lib/rewrites.js` as production, so `/docs` counts in every environment. - **Click tracking survives the full navigation**: `sign_in_button_clicked`, `start_project_button_clicked` and `www_pricing_plan_cta_clicked` now send with `keepalive`, like `sign_in_submitted` already did, so an immediate page load can't cancel them. The mobile nav Sign in and Start your project buttons used `legacyBehavior`, which never called their `onClick`: PostHog has no `Mobile Nav` location for either event in the last 30 days. Those clicks report from this PR on. - **Typecheck no longer crashes**: the functions page's default export inferred a type through `RealtimeLogs`'s unexported `Props`, which makes the native TypeScript compiler panic during `tsc --noEmit`. I exported `Props`. **Note:** the lint rule only sees literal hrefs. A new renderer whose href comes from data needs its own `isCrossZoneHref` branch, and review is the only check on that. ## To test `/docs` is only rewritten on production and absolute `https://supabase.com/...` links are cross-origin on a preview, so the preview proves the relative non-docs cases (`/dashboard*`, `/library`, the footer .txt files). `/docs/...` prefetches still appear on the preview because it has no docs rewrite. Tested on Vercel preview: - [x] Open `/` with the network tab filtered to `_rsc` and scroll to the footer: no requests for `/dashboard*`, `/library`, `/design-system`, `/kb`, `/evals`, `/humans.txt`, `/lawyers.txt` or `/.well-known/security.txt`, while in-zone ones such as `/pricing`, `/features` and `/blog` still appear - [x] Same check on `/pricing`, `/auth`, `/database`, `/storage`, `/realtime`, `/edge-functions`, `/blog` and a blog post: no `_rsc` requests to `/dashboard*`, `/library` or the footer .txt files - [x] Open the Developers dropdown on desktop and the mobile menu at 390px: no new `_rsc` requests to `/dashboard*` or `/library` - [x] Click header Docs, footer Humans.txt, the hero Start your project button and the pricing Free plan button: each lands where it did before (`/docs`, `/humans.txt` text, `https://supabase.com/dashboard/sign-up`, `https://supabase.com/dashboard/new?plan=free`). Signed out, the Free plan button lands on the dashboard sign-in with `plan=free&returnTo=%2Fnew` - [x] Click the hero Start your project button: the `/platform/telemetry/event` POST with `start_project_button_clicked` completes with a 2xx after the page starts navigating. 201 with the navigation held; on the real navigation the event still reached staging PostHog - [x] At 390px, open the mobile menu and click Sign in: a `/platform/telemetry/event` POST with `sign_in_button_clicked` and `buttonLocation: "Mobile Nav"` fires. Start your project in the same menu also sends `start_project_button_clicked` with `buttonLocation: "Mobile Nav"` - [ ] Signed in, load `/`: no `/dashboard/projects?_rsc=` request (not run: the preview origin has no signed-in session) - [x] Open the desktop Product dropdown and the Product section of the 390px mobile menu: Compute shows its Private Alpha badge and the other products show none (checks the master merge into `MenuItem`) After deploy, `/` and `/pricing` on supabase.com show no `_rsc` requests to `/docs*`, `/dashboard*` or `/library`. After a full day, the share of supabase.com 404s carrying `_rsc=` should drop from about 95% to under 10%, and `sign_in_button_clicked` and `start_project_button_clicked` should start showing a `Mobile Nav` location in PostHog. ## Linear - fixes GROWTH-1294 |
||
|
|
ba82106697 |
chore(www + studio): remove expired Select 2026 promo banners (#51245)
## Problem Supabase Select 2026 has finished. The promo banners already hide via the scheduled expiry from #51006, but the campaign code, assets, and wiring are still in the tree. ## Solution Remove the Select 2026 sitewide promotion across www and Studio: - Delete shared `Select26*` banner code, font, and tests from `ui-patterns` - Delete Studio `BannerSelect2026*` and its Banner Stack registration - Unmount the www announcement banner and revert the State of Startups spacing that only existed for it - Drop the Select-only session-replay `data-band` allowlist entry and lint ratchet baseline Event go pages, blog posts, and other Select content are left alone. The `Announcement` shell stays for the next campaign. ## Review instructions 1. Open the www homepage on the deploy preview. Confirm there is no Select announcement bar above the nav. 2. Open `/state-of-startups` on the deploy preview. Confirm the hero still looks correct with no extra top gap from the removed banner. 3. Open a hosted Studio dashboard page on the deploy preview. Confirm the Banner Stack no longer shows a Select card. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
10c7379c97 |
fix(www): partners key warning and local PH flags noise (#51247)
## Problem Two leftover App Router issues on www, unrelated to other in-flight work: 1. `/partners` throws a React key warning because benefit items are JSX fragments and cannot be used as keys. 2. App Router providers enable PostHog feature-flag fetches when `IS_PLATFORM` is true. Local www does not run the platform API, so the console fills with `Failed to fetch PH flags: API is not available`. Pages `_app.tsx` already disables PH flags. ## Solution - Key partner benefit list items by index (same pattern as the FAQ list in the same file). - Align App Router `FeatureFlagProvider` with pages: ConfigCat on, PostHog flags off. ## Review instructions 1. Open preview `/partners` and confirm the benefits list renders with no React key warning in the console. 2. On a local www App Router page (e.g. `/partners`), confirm the PostHog `Failed to fetch PH flags` console error is gone. 3. Confirm ConfigCat-backed www behaviour is unchanged (pages router already used this flags config). ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
d5bcbc169c |
fix(www): opaque realtime presence avatars with clearer stack rings (#51164)
## Problem The Presence avatar stack on `/realtime` has had coloured rings since the product page shipped. On production they often do not show: the gap colour used `hsl(var(--background-surface-75))`, which is invalid after semantic tokens moved to `oklch`, so the browser drops the whole `box-shadow` and you get plain overlapping circles. Separate from that token bug (fixed in https://github.com/supabase/supabase/pull/51161), the stack still looked wrong once the rings came back: fills used translucent `surface-200` (`--muted`), initials clipped when discs overlapped too tightly, and the card edge clipped the outer ring. ## Solution - Restore rings with `var(--background-surface-75)` so the gap colour resolves again - Opaque `bg-surface-100` fills so stacked avatars do not show through each other - Draw the coloured ring first, then a card-coloured band outside it, so neighbours read as separate discs instead of one muddy blob - Tune size (`h-6.5`), overlap (`-space-x-[3px]`), and inset/padding so rings and initials fit inside the card - Smoother “You” hover: layout width and fade/scale decoupled, faster exit | Before | After | | --- | --- | | <img width="734" height="892" alt="CleanShot 2026-10-02 at 16 07 49@2x" src="https://github.com/user-attachments/assets/a0cd1e62-8d4c-4ee8-9bed-19c085cf198e" /> | <img width="736" height="896" alt="CleanShot 2026-10-02 at 16 07 02@2x" src="https://github.com/user-attachments/assets/4b15867b-a95f-4482-85ce-07c51d1c20a8" /> | ## Review instructions WWW preview: [zone-www](https://zone-www-dot-com-git-dnywh-fixrealtime-presence-0a88a4-supabase.vercel.app) 1. [Live /realtime](https://supabase.com/realtime) · [Preview /realtime](https://zone-www-dot-com-git-dnywh-fixrealtime-presence-0a88a4-supabase.vercel.app/realtime) 2. Presence card, top-right: on live, plain circles with no coloured rings; on preview, opaque discs with green/blue/red/orange rings and a light gap between them. 3. Hover the card: “You” joins the stack with the same ring treatment and a quick fade out when you leave. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Updated the presence avatar stack with smaller, overlapping avatars, colored rings, and adjusted spacing. * Added hover animations to the “You” avatar. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
4344fdea3d |
fix: ratchet lints on compute page (#51192)
## Problem ratchet lints were failing after merging the compute landing page on a previous PR. ## Solution This PR cleans up the ratchet lint run. ## Review instructions - Check that no ratchet lint fails on this PR |
||
|
|
4617b6f4cb |
feat: compute landing page (#50899)
Compute landing page. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a Compute product page introducing ephemeral sandboxes and always-on HTTP services, with information on workloads, security, deployment, and common questions. * Added a private-alpha waitlist form with submission confirmation and error feedback. * Added Compute links and a “Private Alpha” badge in product navigation and the footer. * Added an animated diagram illustrating Compute workloads and their lifecycle. * **Documentation** * Added a Compute overview covering runtimes, scaling, security, deployment, and availability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
99c6e306c7 |
fix(www): repair legacy reference redirects (#51059)
I repointed legacy reference redirects and first-party links to the sections the Docs app currently serves. Old client and common-filter URLs still targeted bare slugs, while SDK landing URLs targeted `/start`. I preserved v1 auth destinations and linked the retired Dart v0 migration guide to its original source. ## To test On the www preview: - [x] Request `/docs/client/order` with a crawler user agent. Expect a redirect to `/docs/reference/javascript/using-modifiers-order`. - [x] Request `/docs/common/filters/_sl` with a crawler user agent. Expect a redirect to `/docs/reference/javascript/using-filters-rangelt`. - [x] Request `/docs/reference/kotlin` with a crawler user agent. Expect a redirect to `/docs/reference/kotlin/introduction`. - [x] Open the Storage permissions section. Expect its bucket reference link to target `/docs/reference/javascript/file-buckets-createbucket`. ## Linear - fixes GROWTH-1293 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated links across blog posts, product pages, and feature listings to point to current JavaScript, Flutter, and Dart documentation. * Updated legacy documentation redirects to current reference pages, including filter, modifier, client, and authentication guides. * Changed reference-root redirects to lead to each language’s introduction page. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
177ef0cdd6 |
fix(www): repair broken docs links and redirect /blog/rss.xml (#51002)
## Problem Four www pages link to docs URLs that return 404: - `/storage`: the "Learn more" links for analytics and vector buckets (`storage/analytics-buckets`, `storage/vector-buckets`) - `/` (frameworks grid): the Vue quickstart (`quickstarts/vuejs`) - `/edge-functions`: the CI/CD link (`functions/cicd-workflow`; that page was merged into the deploy guide) - `/partners`: the Enterprise SSO link (`auth/sso`) Feed readers also request `/blog/rss.xml`, which renders the blog 404, while the feed lives at `/rss.xml`. Apart from prefetch requests, it is the most-requested 404 on www. ## Solution - Point each link at the live page: `storage/analytics/introduction`, `storage/vector/introduction`, `quickstarts/vue`, `functions/deploy#cicd-deployment`, `auth/enterprise-sso`. - Redirect `/docs/guides/functions/cicd-workflow` to the deploy guide. This also fixes the older blog post and changelog links to it. The redirect destination has no anchor because the `.md` redirect generator in `next.config.mjs` appends `.md` to the destination. - Redirect `/blog/rss.xml` to `/rss.xml`. ## To test On the www Vercel preview: - [x] On `/storage`, click "Learn more" under analytics buckets and vector buckets: expect the analytics and vector introduction pages. They navigate to `/docs/guides/storage/analytics/introduction` and `/docs/guides/storage/vector/introduction`. The www preview doesn't serve `/docs`, so I confirmed every new docs target returns 200 on production. - [x] On `/`, click Vue in the frameworks grid: expect the Vue quickstart. The Vue tab's "Read docs for Vue" link navigates to `/docs/guides/getting-started/quickstarts/vue`. - [x] On `/edge-functions`, click the CI/CD link: expect the deploy guide scrolled to CI/CD deployment. Opens "Deploy to Production" in a new tab with `#cicd-deployment` in view. - [x] On `/partners`, click the Enterprise SSO link: expect the enterprise SSO guide. Opens "Enterprise Single Sign-On" in a new tab. - [x] Request `/blog/rss.xml` and `/docs/guides/functions/cicd-workflow`: expect 308s to `/rss.xml` and `/docs/guides/functions/deploy`. Both return 308, and `/rss.xml` serves the feed as XML. - [x] `/docs/guides/functions/cicd-workflow.md` returns 308 to `/docs/guides/functions/deploy.md`. - [x] None of the four pages still links to an old path (`analytics-buckets`, `vector-buckets`, `quickstarts/vuejs`, `functions/cicd-workflow`, `auth/sso`). ## Linear - fixes GROWTH-1297 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated quickstart and integration links for Vue, Edge Functions CI/CD, analytics and vector storage buckets, and Enterprise SSO. * Added permanent redirects from the old RSS feed and Functions CI/CD guide URLs to their current locations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
2532fab239 |
feat(www): note that paid projects aren't paused for inactivity on pricing (#50986)
## Summary Adds "Projects on paid plans aren't paused for inactivity" to the pricing page's meta and Open Graph descriptions and to the generated `pricing.md` intro. The existing copy is unchanged. Ref: GROWTH-1191 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated pricing descriptions to clarify that projects on paid plans are not paused for inactivity. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
49da804baa |
feat(www): add database-only and agent guidance to homepage and pricing markdown (#50992)
## Problem The markdown versions of the homepage (`/index.md`) and pricing page (`/pricing.md`) don't say that a Supabase project can be used as a standalone Postgres database, what that costs, or how an agent should get set up. `llms.txt` also doesn't link to the product markdown pages. Ref: GROWTH-1191 ## Solution Markdown only. No changes to the rendered HTML pages. All changes are additive. - **`/pricing.md`** (`apps/www/lib/llms.ts`): new "Database-only projects" section covering Free and Pro costs for a single database project and that paid-plan projects are not paused. Plan prices, the Free database size, the Pro disk size, and the Free plan pausing note are read from `packages/shared-data/plans.ts`, so they stay in sync. - **`/index.md`**: short note for agents, a "Use it as just a Postgres database" section, agent setup commands (agent skills, CLI), a goal-to-docs table, and machine interfaces (MCP, OpenAPI, agent skills index, llms.txt, markdown negotiation). One bullet added to Key Differentiators. - **`/llms.txt`**: new "Product overviews" section linking the product markdown pages. ## Review instructions 1. Open `/index.md`, `/pricing.md`, and `/llms.txt` on the preview deployment. 2. Check the new sections read correctly and the figures in "Database-only projects" match the pricing page. 3. Every added link returns 200 as markdown, except `https://mcp.supabase.com/mcp`, which requires OAuth. ## 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) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Added product overview links for Database, Auth, Storage, Realtime, Edge Functions, Cron, Queues, and Vector, including a note about Database’s Postgres compatibility. * Expanded guidance on using Supabase as a standalone Postgres database, optional product costs, Free-plan pausing, and database-only pricing. * Added agent setup instructions, task-specific documentation links, machine-readable endpoints, and a Markdown pricing link. * Added database-only project details to generated pricing content, including plan features, compute credits, pausing, and connection guidance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
51a167d910 |
feat(www): partners landing page (#47874)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a redesigned Partners page with partnership options, benefits, application steps, FAQs, integration resources, and featured partners. - Added an on-page partner application form with questions tailored to the selected partnership type. - Added a confirmation message with next steps and a link to the OAuth integration guide. - **Bug Fixes** - Updated partner application links to open the form on the Partners page. - Added support for checkbox-group fields in forms. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Alan Daniel <stylesshjs@gmail.com> Co-authored-by: Alex Hall <alex.hall@supabase.io> Co-authored-by: Dion Zeneli <101271736+Dionysos288@users.noreply.github.com> |
||
|
|
1f3f050573 |
feat(www): clarify database-only positioning on the database page (#50667)
## Summary Clarifies on the database product page that a Supabase project can be used as a standalone Postgres database, and mirrors the change in the page's markdown version (`/database.md`). Ref: GROWTH-1191 ## Changes - **Hero and page metadata**: adds "Use it on its own, or with the rest of the Supabase platform." - **Features section**: intro reframed around the database. The "Just Postgres" card heading adds "standalone". - **`content/md/database.md`**: same sentence in the tagline. New short "Use it as a standalone database" section covering connecting, pooling, pricing, and Free plan pausing. Client libraries marked optional. Pooler naming updated to Supavisor. Links added for the connection guide and `pricing.md`. ## Notes - Pricing figures in the markdown mirror `packages/shared-data/plans.ts` and are static here. - The pausing statement matches `docs/guides/platform/free-project-pausing`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Clarified that Supabase projects include dedicated, standalone Postgres databases. - Explained that databases can be used independently or alongside the Supabase platform. - Added guidance on connections, pooling, pricing, pausing, and optional client libraries. - Identified Supavisor as the pooling service and added relevant connection and pricing links. - **Content** - Updated database page messaging to highlight built-in security, realtime subscriptions, auto-generated APIs, portability, and no vendor lock-in. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
2f1ad03640 |
fix(www): prevent GitHub stars from falling back to zero (#50704)
The www build saves failed GitHub star requests as zero, which the navigation displays as `0K`. This passes `GITHUB_TOKEN` through Turbo's build environment and preserves a valid previously generated count when a request fails. If there is no valid previous count, the navigation displays “GitHub” and the homepage contribution graphic omits the number. Cached fallback is available only when the previous generated content exists; rate limiting is a possible cause of the original failure, but has not been confirmed from deployment logs. ## To test - Run `pnpm --filter www exec vitest run scripts/lib/githubStars.test.ts` — all 16 tests pass, covering authenticated and anonymous requests, rate limiting, malformed responses, and missing or invalid cached content. - Build with a valid `GITHUB_TOKEN` and check that the navigation and homepage graphic show the star count. - Simulate a failed GitHub request with and without existing generated content. Confirm that a valid previous count is retained, or that no zero count appears when none is available. Verified locally: live GitHub fetch through the new loader, Turbo dry run with strict environment filtering and `GITHUB_TOKEN` allowed, Prettier, and ESLint (one existing default-export warning). Full build and browser checks have not been run. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - GitHub star counts are now displayed only when valid; otherwise, the interface shows a clear fallback label. - Star counts can fall back to cached data when GitHub is unavailable or returns invalid results. - Builds without GitHub data now complete gracefully instead of failing. - **Tests** - Added coverage for authenticated and unauthenticated requests, cached fallbacks, invalid responses, and clean builds. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
ec53175b8a |
refactor(ui): rename text-brand to text-primary (#50564)
## What kind of change does this PR introduce? Refactor. Follow-up to #49871. ## What is the current behavior? Branded (green) text still uses the `text-brand` classname while the colour comes from `--primary`. ## What is the new behavior? **Rename-only:** `text-brand` → `text-primary` across callsites and docs. Leftover `bg-brand` / `border-brand` alias to `brand-default`. No intentional colour changes in this PR. This better matches how we treat our green in other components and props, like `variant="primary"` for green buttons. ## To test On light mode: smoke-test that branded text still looks like #49871 (readable green, not the bright fill). - [Homepage](https://zone-www-dot-com-git-dnywh-depr-316-text-brand-de2380-supabase.vercel.app/): “Scale to millions” uses `text-primary` - [Docs homepage](https://docs-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/docs): branded links like “More on self-hosting” are still readable - [Typography docs](https://design-system-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/design-system/docs/typography): documents `text-primary` - [Colour usage](https://design-system-git-dnywh-depr-316-text-brand-to-primary-supabase.vercel.app/design-system/docs/color-usage): `text-primary` is visibly darker than `bg-brand-default` _on light mode_ - [Studio auth providers](https://studio-staging-git-dnywh-depr-316-text-brand-to-60fa6c-supabase.vercel.app/dashboard/project/_/auth/providers): enabled provider badge text readable; status dot stays bright green <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Updated branded text, link hover states, icons, badges, indicators, and highlighted content across the Design System, Docs, Studio, Learn, UI Library, and marketing experiences to use the primary theme color. * Updated syntax highlighting and table-of-contents styling for consistent primary-color presentation. * Refined brand color fallback behavior for bright fills and borders. * **Documentation** * Updated color-usage and typography guidance to recommend the primary text utility. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
a31ca2bad0 |
fix(ui): make brand text readable across themes (#49871)
## What kind of change does this PR introduce? Bug fix and design-system update. Resolves DEPR-316. Follow-up rename (`text-brand` → `text-primary`) is in a dedicated PR (https://github.com/supabase/supabase/pull/50564) stacked on this one. ## What is the current behavior? `text-brand` resolves to the canonical bright brand green in places that need readable text, which fails WCAG AA on light surfaces. A separate `text-brand-display` token adds another green for large type. ## What is the new behavior? - `text-brand` maps to accessible `--primary` (light mode darkened to meet ~4.5:1 AA) - `--hue` / `--primary-hue` aligned to 157.5 - `text-brand-display` removed; former display callsites use `text-brand` - Bright fills/borders stay on `brand-default` - Design-system colour and typography docs updated | Before | After | | --- | --- | | <img width="514" height="112" alt="CleanShot 2026-09-02 at 11 13 09@2x" src="https://github.com/user-attachments/assets/4e0138a9-a32d-4e4c-a426-90736706e1e7" /> | <img width="512" height="138" alt="CleanShot 2026-09-21 at 11 42 05@2x" src="https://github.com/user-attachments/assets/164cc5b1-a0c5-4e93-95f1-80016641a114" /> | | <img width="864" height="266" alt="CleanShot 2026-09-02 at 11 13 53@2x" src="https://github.com/user-attachments/assets/3c1ca53f-bf9e-431e-bc15-816b4a275b8e" /> | <img width="882" height="248" alt="CleanShot 2026-09-21 at 11 41 37@2x" src="https://github.com/user-attachments/assets/24828e7b-ed6b-44cb-b9dc-becc3398bdfc" /> | | <img width="782" height="692" alt="CleanShot 2026-09-02 at 11 16 30@2x" src="https://github.com/user-attachments/assets/fc871977-77bc-47fb-9e0e-9284e0ecd5cc" /> | <img width="730" height="690" alt="CleanShot 2026-09-21 at 11 42 52@2x" src="https://github.com/user-attachments/assets/bf479515-d5f9-471e-b82d-f097c0f4b56c" /> | | <img width="480" height="306" alt="CleanShot 2026-09-02 at 11 18 53@2x" src="https://github.com/user-attachments/assets/03f341f4-f02e-44f8-a2b2-8c31670d0427" /> | <img width="470" height="300" alt="CleanShot 2026-09-21 at 11 43 19@2x" src="https://github.com/user-attachments/assets/9df18217-d5e6-48b8-ba0b-579d2664b94b" /> | | <img width="960" height="300" alt="CleanShot 2026-09-02 at 11 32 04@2x" src="https://github.com/user-attachments/assets/6b1d9373-7a71-4247-81ff-26441604b09d" /> | <img width="980" height="306" alt="CleanShot 2026-09-21 at 11 44 13@2x" src="https://github.com/user-attachments/assets/41ad4784-02ec-4b29-b860-32af9fa79aa8" /> | | <img width="924" height="214" alt="CleanShot 2026-09-02 at 11 34 44@2x" src="https://github.com/user-attachments/assets/1de661fe-c7b6-499b-a94f-e4737436ec79" /> | <img width="752" height="162" alt="CleanShot 2026-09-21 at 11 44 56@2x" src="https://github.com/user-attachments/assets/1811890f-0660-4445-84e9-447720954fa1" /> | ## To test Test each callsite **in light mode** (dark mode is largely unchanged). ### WWW - [Homepage](https://zone-www-dot-com-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/): “Scale to millions” uses readable brand text (display token is gone) - [Careers](https://zone-www-dot-com-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/careers): small “Careers” eyebrow readable; green dividers stay bright `brand-default` - [Contact](https://zone-www-dot-com-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/contact-us): email / policy links use readable brand text - [Regions](https://zone-www-dot-com-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/regions): “Ask about early access to BYOC” readable ### Docs - [Docs homepage](https://docs-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/docs): “DOCS” wordmark and resource links readable - [Database overview](https://docs-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/docs/guides/database/overview): nav / footer brand links readable - [JavaScript reference](https://docs-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/docs/reference/javascript/introduction): active sidebar treatment readable ### Design system - [Typography](https://design-system-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/docs/typography): documents `text-brand` only (no display) - [Colour usage](https://design-system-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/docs/color-usage): `text-brand` vs `bg-brand-default` - [Design-system homepage](https://design-system-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/): brand text examples across themes ### Studio - [Auth providers](https://studio-staging-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/dashboard/project/_/auth/providers): enabled provider badge text readable; status dot stays bright - [Database policies](https://studio-staging-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/dashboard/project/_/database/policies?new=true): template hover text more legible - [Database connections](https://studio-staging-git-dnywh-depr-316-brand-text-tokens-supabase.vercel.app/dashboard/project/_/observability/connections): “Live” status readable; animated dot stays bright green --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
819df2ae4d |
feat(www): menu nav enhancements (#50282)
## What kind of change does this PR introduce? feature reworks the www header dropdowns ## What is the current behavior? menu dropdown navigation animation between items feels scattered ## What is the new behavior? - adds dropdown card resize with a transition and the content crossfades when switching - removes dead zone between or under nav items - sets card is centered on the screen + enhance tablet bp - adds slight ui refresh spacing, colors, sizes | state | preview | | -------|------| | before | <video src="https://github.com/user-attachments/assets/acd8e161-a697-4070-b751-4f4e9f1eab19" /> | | after | <video src="https://github.com/user-attachments/assets/fe403afd-0074-4cb5-9223-fd6cdd2f7d5a" /> | <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Navigation dropdowns now provide smoother directional transitions, keyboard-focus states, and reduced-motion support. * Product navigation is organized into clearer Products and Modules sections. * Navigation layouts adapt earlier across screen sizes with responsive two-column arrangements. * **Style** * Updated dropdown spacing, colors, borders, menu item styling, and customer imagery sizing. * Refined blog loading placeholders with slightly tighter spacing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
fb22534439 |
fix: share sentry crash policy and enable www reporting (#50232)
## Problem The website initializes Sentry only on the server and edge runtimes, leaving browser crashes unreported. Its crash-reporting setup also needs the same consent and third-party filtering policy that docs and Studio otherwise maintain separately. ## Fix Add www browser initialization and tagged crash capture for both Next.js routers, with accessible fallback focus. Move the shared consent/platform and third-party filtering into common/sentry, reuse it from all three apps, and remove the duplicated docs/www helpers and tests. Preserve each app's initialization and Studio's additional noise filtering, sampling, and sanitization. Include the source-map upload token in www's build cache inputs, and trigger the shared/www and Studio test workflows when the shared policy changes. ## How to test - Run `pnpm --filter www test ../../packages/common/sentry.test.ts lib/sentry-capture.test.tsx`: all 22 shared-policy and real-SDK capture tests passed locally. - Run `pnpm --filter studio exec vitest run lib/sentry-client-options.test.ts`: all 42 Studio options and policy-parity tests passed locally. - The www capture tests exercise the actual initializer and both router handlers with an in-memory transport, verify crash tags and fallback focus, and enforce consent. Removing initialization, capture calls, boundary tags, or consent gating was verified to fail these tests. - On a www preview with its DSN configured, accept telemetry consent and trigger temporary render errors in both routers. Verify they reach the www Sentry project with the boundary tag and readable stack traces. Formatting passes. Full local app typechecks encounter existing dependency/generated-file drift, with no diagnostics in changed files. Three unchanged TanStack mock call-count tests fail locally and reproduce against the pre-refactor implementation. Live Sentry ingestion and source-map uploads remain deployment checks. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Accessibility** - Error pages now automatically move focus to a clearly labeled error message, helping screen-reader and keyboard users understand when a page fails. - **Reliability** - Browser error reporting now captures application crashes more consistently across supported page types and navigation transitions. - Reporting respects consent and platform availability while filtering unrelated third-party failures. - **Testing** - Expanded automated coverage for error capture, reporting rules, consent handling, and accessible error-page behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
42f1401769 |
fix(ui-patterns): a11y accessible names for ExpandableVideo (#50226)
## What kind of change does this PR introduce? bug fix a11y `ExapndableVideo` ## What is the current behavior? `ExpandableVideo` blurred thumbnail has `alt="Video guide preview"` sitting behind an overlay that already reads "Watch video guide" making screen readers announcing the same thing twice ## What is the new behavior? - adds an optional `videoTitle` prop that names the video once and feeds both the button's `aria-label` and the player's `title`. ## Test 1. visit `/docs/guides/functions` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Enhancements** - Video previews in guides now display the relevant guide title. - Partner introduction videos now include a descriptive title. - Video controls and embedded players provide more specific accessibility labels when titles are available. - Preview images without meaningful alternative text are treated as decorative to reduce redundant screen-reader output. - **Bug Fixes** - Guide titles with Markdown formatting now appear as clean, readable text in video labels. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |