mirror of
https://github.com/supabase/supabase.git
synced 2026-12-03 23:18:57 +00:00
create-pull-request/patch
5843
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
28c2c2dd53 |
feat(www): add Launch Week 16 banner (#54511)
Add a dismissible bar above the www nav that promotes Launch Week 16 (December 7-11) and links to /launch-week. Hide the bar on /launch-week pages. Hide it on /state-of-startups too because the fixed nav on that page would cover it. ## Banner polish Adds shared animated dot artwork, a link CTA, and responsive spacing and alignment. Reduced-motion preferences keep the dots static. Studio uses this artwork in the dependent #54512. | After | | --- | | <img width="500" height="584" alt="31035" src="https://github.com/user-attachments/assets/7ebad641-158e-47ea-a8be-3097ecc5c0ae" /> | | <img width="500" height="584" alt="18287" src="https://github.com/user-attachments/assets/02c87481-1dbe-4576-afc0-bdc9f22fc893" /> | | <img width="995" height="584" alt="89244" src="https://github.com/user-attachments/assets/aad4b608-71f1-484f-bbf4-54c725800f52" /> | | <img width="995" height="584" alt="99848" src="https://github.com/user-attachments/assets/a8b50942-1ecd-4c63-91b3-a6b4847d8830" /> | ## Review instructions 1. Open the www homepage on the preview in light and dark mode. Check the centred desktop message, link hover, and close button. 2. At a phone width, check the left-aligned copy and artwork on the right. Open the mobile menu and close it; the banner should return. 3. Dismiss the banner and reload. It should stay dismissed. Validation: scoped ESLint, formatting, and ui-patterns typecheck pass. --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
4da4e91a9b |
chore(www): make the launch week 16 rewrite readable (#54476)
Same paths as #54475, with the past launch weeks as named lists instead of one regex. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
99e7de69a2 |
fix(www): forward lw16 editor steps under /launch-week/ticket/create to the card app (#54475)
## Problem - a refresh or a link to a lw16 card editor step shows the www 404 page, for example [/launch-week/ticket/create/select-material](https://supabase.com/launch-week/ticket/create/select-material) - the lw16 card app opens its editor steps under `/launch-week/ticket/create/*` - the rewrite from #54315 keeps `/launch-week/ticket` and its subpaths on www, but www has a page only at the exact path ## Solution - forwards the subpaths of `/launch-week/ticket` to the lw16 card app while the exact path stays on the lw15 ticket page - adds an editor step path to the security header tests ## Preview links | Site | Live | Preview | | ---- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | WWW | [/launch-week/ticket/create/select-material](https://supabase.com/launch-week/ticket/create/select-material) | [/launch-week/ticket/create/select-material](https://zone-www-dot-com-git-antlio-fix-lw16-ticket-rewrite-supabase.vercel.app/launch-week/ticket/create/select-material) | | WWW | [/launch-week/ticket](https://supabase.com/launch-week/ticket) | [/launch-week/ticket](https://zone-www-dot-com-git-antlio-fix-lw16-ticket-rewrite-supabase.vercel.app/launch-week/ticket) | ## Review instructions 1. run `pnpm --filter www exec vitest run lib/security-headers.test.ts` and make sure that all tests pass 2. open the preview [/launch-week/ticket/create/select-material](https://zone-www-dot-com-git-antlio-fix-lw16-ticket-rewrite-supabase.vercel.app/launch-week/ticket/create/select-material) and make sure that the lw16 card app loads, not the www 404 page 3. open the preview [/launch-week/ticket](https://zone-www-dot-com-git-antlio-fix-lw16-ticket-rewrite-supabase.vercel.app/launch-week/ticket) and make sure that the lw15 ticket page still loads ## 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) |
||
|
|
8028b576ed |
chore: update cli config schemas (#54428)
Updates the published JSON Schemas from the supabase/cli release workflow. Generated by `scripts/publish-schemas.ts` in supabase/cli from `apps/cli/schemas`. Regenerate them in supabase/cli rather than editing this folder. Published versions below the current one are frozen and never rewritten. Auto-merge is enabled: the PR squash-merges once a reviewer approves it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
30a1b38da0 |
feat(studio): rename temporary access to database token access (#54282)
## Problem The database access preview still uses “Temporary access” across its settings and member rules. ## Solution Use “Database token access” for the feature and “Member access” for member rules. Update the preview, settings, dialogs, feedback, member status messages and docs together. Move the guide to `/guides/platform/token-access`, permanently redirect the old URL, and preserve existing section anchors. ## Review instructions 1. Open [the Studio preview](https://studio-staging-git-dnywh-database-token-access-naming-supabase.vercel.app), then Feature previews and find **Database token access**. Enable the preview for a supported project, then open [Database Settings](https://studio-staging-git-dnywh-database-token-access-naming-supabase.vercel.app/project/_/database/settings). 2. Check the **Database token access** heading, **Allow token access** switch and **Member access** table. Open **Add rule** and an existing rule to check the sheet titles. Open a rule’s delete confirmation and cancel it. 3. With an assigned role, check the access status above the member table. As a member without management permission, check the access notice uses the same feature name. 4. Open the [database token access guide in the docs preview](https://docs-git-dnywh-database-token-access-naming-supabase.vercel.app/docs/guides/platform/token-access). Check the guide and navigation use the new name, the dashboard instructions match Studio, and the existing section links from the member guide still work. Open `/docs/guides/platform/temporary-access` and its `.md` variant to check they permanently redirect to the new URLs. | Before | After | | --- | --- | | <img width="726" height="367" alt="CleanShot 2026-11-30 at 16 06 00" src="https://github.com/user-attachments/assets/be351f0c-d578-4289-8785-5c4e69a254a7" /> | <img width="729" height="374" alt="CleanShot 2026-11-30 at 16 05 38" src="https://github.com/user-attachments/assets/f02b470d-ef1a-4b6c-bdbb-20fe10b847c6" /> | |
||
|
|
b610d677c5 |
feat(www): lw16 launch week rewrite (#54315)
## Problem - supabase.com/launch-week shows the lw15 page, and the lw16 card app runs as a separate vercel app - a forward rule for all of `/launch-week/*` also covers the www pages of past launch weeks, and www does not add its security headers to forwarded paths ## Solution - moves the lw15 page to `/launch-week/15` - adds rewrites that forward `/launch-week` and its other paths to the lw16 card app at `launch-week-16.vercel.app/launch-week/` - changes the root rule to target `/launch-week/` directly because www removes the trailing slash and the app adds it, a loop otherwise - keeps `/launch-week/7`, `/8`, `/15`, `/ticket` and `/tickets/*` on www with the www security headers - adds the launch week paths to the security header tests - adds `/launch-week` to the paths that the redirect checks leave to other apps ## Preview links | Site | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | WWW | [/launch-week](https://supabase.com/launch-week) | [/launch-week](https://zone-www-dot-com-git-antlio-lw16-launch-week-rewrite-supabase.vercel.app/launch-week) | Claim your card | | WWW | [/launch-week/15](https://supabase.com/launch-week/15) | [/launch-week/15](https://zone-www-dot-com-git-antlio-lw16-launch-week-rewrite-supabase.vercel.app/launch-week/15) | Launch Week 15 | ## Review instructions 1. run `pnpm --filter www exec vitest run lib/security-headers.test.ts` and make sure that all tests pass 2. open the preview [/launch-week](https://zone-www-dot-com-git-antlio-lw16-launch-week-rewrite-supabase.vercel.app/launch-week) and make sure that the lw16 card page loads with no redirect loop 3. open the preview [/launch-week/](https://zone-www-dot-com-git-antlio-lw16-launch-week-rewrite-supabase.vercel.app/launch-week/) and make sure that www redirects it to `/launch-week` once ## 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) |
||
|
|
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`. |
||
|
|
5be070974d | Add Data Processing Addendum v2 (effective December 1, 2026) (#54301) | ||
|
|
1eef82327a |
Add TZP Group case study (#54347)
## Problem The TZP Group case study is ready to publish. Tracked in [MARKET-2535](https://linear.app/supabase/issue/MARKET-2535/case-study-tzp-group). ## Solution - Adds `apps/www/_customers/tzp-group.mdx` and the TZP Group logos (`on-light` and `on-dark` PNGs). - Moves "Key results" to the end of the TZP Group case study. - Moves "Key results" to the end of the Assignar case study too, so the two match. This changes a page that is already live. ## Preview links | Site | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | WWW | /customers/tzp-group | Vercel bot comment | One platform to rule them all | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
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) |
||
|
|
a934f2b8f5 |
feat(www): show paused notice on SupaSquad page instead of apply CTA (#53976)
Replaces the "Apply to Join SupaSquad" button on /open-source/contributing/supasquad with an "Applications are currently paused" callout linking to Discord, upcoming events, and GitHub. - `CtaSection` gains an optional `notice` prop; buttons are now optional. - To reopen applications, remove `notice` and restore `primaryCta` in `data/open-source/contributing/supasquad.tsx`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
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 |
||
|
|
a2e41ea71b |
feat(www): add .NET client library to features page (#51919)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? - Adds a `Client Library - .NET` entry to `apps/www/data/features.tsx`, next to the JavaScript, Flutter, Swift, and Python entries - Adds a `CsharpIcon` to `apps/www/components/svg-icons.tsx`, reusing the C# icon from the docs navigation ## What is the current behavior? The features page has no entry for the .NET SDK, and `/features/client-library-dotnet` returns 404. ## What is the new behavior? - `/features/client-library-dotnet` describes the officially supported .NET SDK: key benefits, when to use it, and how to get started - The entry is marked General Availability and available on self-hosted, and links to the C# reference docs ## Additional context N/A Co-authored-by: Ana <ana1337x@users.noreply.github.com> |
||
|
|
5760d8981a | chore(www): bump MCP server card to 0.21.0 (#54227) | ||
|
|
b6270f4a31 | fix(www): redirect /buildersday to /builderday (#54200) | ||
|
|
01c6966c9b |
chore(telemetry): add skill rules and rename three events (#54188)
The telemetry skill had no rules for mistakes I keep flagging in telemetry PR reviews, two of its sections repeated the rest of the file, and its approved verb list held verbs that no event uses or that another verb already covers. I added the rules, collapsed the repetition, cut four verbs, and renamed the three events whose verb is outside the list. **Changed:** - **New tracking rules**: I added rules for dismiss and abandonment events (a property must be able to differ at the call site), values captured at submit time, `track()` on conditionally rendered elements, debounced sends, events sent just before leaving the page, experiment exposure, and org-level events. I also added a rule for actions that change nothing: a bulk or menu action that changed nothing sends no result event, and a count property reports only the items that changed. The verify step now checks that case too. - **Shorter skill**: I changed "Review Rules" and "Implementing New Tracking" to link to the section that states each rule. I removed the verification checklist because each item duplicated a rule stated above it. - **Approved verbs**: I removed `intended` and `converted` (no event uses them) and `sent` and `moved` (one event each, both covered by another verb), and defined `created` against `added`. The skill now says the list is the authority. It used to say the list was derived from `telemetry-constants.ts`, which still holds older events with other verbs. I also stated when each verb fires: `clicked` and `submitted` in the handler, the rest once the result has happened. I updated the verb list in `.coderabbit.yaml` to match. - **Event renames**: `www_subprocessor_updates_subscribed` is now `www_subprocessor_updates_form_completed` (still sent after the successful response, so it keeps counting completed subscriptions), `realtime_inspector_broadcast_sent` is now `realtime_inspector_broadcast_submitted`, and `home_section_rows_moved` is now `home_section_rows_updated`. Nothing else in this repo references the old names. **Note:** after each app deploys, the renamed event is a new series, so a chart that spans the change needs both names. ## To test Tested on the PR preview: - [ ] On www, open `/legal/customer-resources/subprocessor-list`, submit the updates form with a test email, expect one `telemetry/event` request whose `action` is `www_subprocessor_updates_form_completed`, and no event after a failed submit. - [x] In Studio, open a project's Realtime Inspector, join a channel, send a broadcast message, expect one `telemetry/event` request whose `action` is `realtime_inspector_broadcast_submitted`. Observed: one request with that action and a 201 response, and no event after canceling the modal. - [x] In Studio, on the project home page, drag a section to a new position, expect one `telemetry/event` request whose `action` is `home_section_rows_updated` with `section_moved`, `old_position` and `new_position`. Observed: one request per drag, with `section_moved: "usage"`, `old_position: 1`, `new_position: 2`. I checked the staging analytics project: both new Studio event names showed up with matching counts, and neither old name did. ## Linear - fixes GROWTH-1584 |
||
|
|
9a25d270f4 |
docs(legal): Privacy Policy v6 (telemetry cookies, California opt-out, subprocessors) (#54090)
<!-- claude-slack-attribution --> _Requested by **Drew McLellan**, **Ali Waseem** · [Slack thread](https://supabase.slack.com/archives/C0161K73J1J/p1795452919979329?thread_ts=1795452919.979329&cid=C0161K73J1J)_ ## Problem **Before:** The latest Privacy Policy is Version 5 (effective November 2, 2026). Its cookie table has no entries for the extra PostHog telemetry (session replay), Usercentrics, ConfigCat, Stape, Vercel or LinkedIn, and it lists Fly.io and Tableau as recipients. ## Solution **After:** Adds Privacy Policy Version 6 as `apps/www/data/legal/privacy/v6.mdx` (a copy of v5 plus the changes below) and registers it first in the `versions` list in `apps/www/pages/privacy.tsx`, effective **November 25, 2026** (confirmed by Legal). v1 to v5 stay available in the version switcher. This publishes Legal's updated policy (Sofia Calado, "Supabase Privacy Policy version Nov 25, 2026.docx") so the policy text covers the extra PostHog telemetry the team needs to collect. **How:** Changes applied from the docx (tracked changes plus two untracked edits; the chapter 3 opt-out edit was withdrawn by Legal), wording kept as written by Legal: 1. Intro: removed the duplicated `"personal information",`. 2. California bullet: the "You can manage your preferences" sentence is replaced by a new paragraph on "sale"/"sharing" with advertising partners, the opt-out route (Privacy Settings or privacy@supabase.com) and Global Privacy Control. 3. User Content: "AI-powered support tools" becomes "AI-powered services". 4. EEA recipients tables: removed Fly.io (5 tables) and Tableau (3 tables) from the service provider lists; "we may share..." in the law enforcement row now starts with a capital W. 5. Cookie table (chapter 8): new rows Usercentrics, Vercel (untracked in the docx, Legal comment: "This is also a new line."), ConfigCat, Supabase (replaces `_sb_first_referrer`), Stape, PostHog session replay (30 days) and LinkedIn; YouTube moved from Strictly necessary to Functional; Cloudflare cookie names added (`_cf_bm`, `__cflb`); Stripe purpose reworded to "To detect and prevent..." on all three rows; Google Analytics 4 and Google Ads purposes and cookie names updated; "Google ads" replaces "one of our ads". 6. Text after the table: adds "We use Functional cookies to help the Site work more smoothly and consistently." and drops "and, where applicable, to deliver personalized ads" (an untracked edit in the docx). Skipped as docx export artifacts: the "Supabase Pte. Ltd. | Source" header line, "Contents" list wording, "(at the end of this document)" instead of the anchor link, heading capitalization/trailing period, whitespace-only tracked edits ("available here"), curly quotes. Typo fixed: the docx drops the space in "prevent fraudulent" and in `"personal information" or`. Chapter 3 (Modifying Account Information) is unchanged from v5 per Legal: the consent sentence about sharing data with third-party partners for AI-powered services stays as it was, so the redline's opt-out wording is not applied. Confirmed by Legal: the effective date. The Usercentrics, ConfigCat, Stape and LinkedIn cells are linked to the vendor policies Legal supplied; the Supabase row's "This Privacy Policy applies" intentionally has no extra link (it refers to this policy). Cloudflare cookie name corrected to `__cflb` (the docx had a stray space; confirmed by Legal). The third Stripe row (2 years) was also reworded to "To detect and prevent fraudulent payments and transactions." to match the other two (confirmed by Legal). Nothing is left unconfirmed. ## Review instructions 1. Diff `apps/www/data/legal/privacy/v6.mdx` against `v5.mdx` (ignore table column padding from the formatter) and check it matches the list above. 2. Check `apps/www/pages/privacy.tsx` lists Version 6 first with November 25, 2026. 3. Open the Vercel preview of `/privacy` and confirm v6 renders (California bullet, cookie table) and the switcher still shows v5 to v1. I could not open previews from the agent session. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] N/A: no docs topic written or edited (legal page content only) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VBvtQX8X7t7w71qMkTvoXp --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
ecd959157a |
feat(www): serve Builder Day at supabase.com/builderday (#54113)
## Problem
We're building the site for Supabase Builder Day: 14 cities, one day, 10
December. It's its own Next.js app on Vercel (on the Supabase team) and
right now it only lives at `builderday.vercel.app`.
We want it at **supabase.com/builderday** so the links on the Luma pages
and in our emails point at a Supabase address, and so builders can sign
in with the Supabase account they already have instead of making a new
one.
## Solution
- `zoneRewrites('/builderday', ...)` in `apps/www/lib/rewrites.js`, the
same way `/library` and `/design-system` are served, so RSC prefetches
go through too.
- The app runs with `basePath: '/builderday'`, so its `/_next` assets
and `/api` routes stay under the prefix and don't collide with www's.
- `/builder-day` redirects to `/builderday`.
- A test next to the InstantDB one in `next.config.test.ts`.
**Depends on:** supabase/Builderday#5, which adds the base path on our
side. Until that's merged, `/builderday` returns 404.
## Review instructions
1. `cd apps/www && pnpm vitest run next.config.test.ts`
2. Once supabase/Builderday#5 is live, open `/builderday` on the www
preview: the Builder Day page loads, with no 404s for `/_next` or `/api`
in the network tab.
3. `/builder-day` redirects to `/builderday`.
4. `/dashboard`, `/docs` and `/library` still work.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
|
||
|
|
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> |
||
|
|
1f6ee9e8b9 |
chore(www): replace markdown-toc with the local TOC helper to drop vulnerable toml (#53879)
## Problem `markdown-toc@1.2.0` (its latest release) depends on `gray-matter@2.1.1`, which pins `toml@^2.3.2`. That leaves `toml@2.3.6` in the lockfile, and `pnpm audit` flags it with several high-severity advisories (fixed in `>=5.0.1`). Neither parent has a release that moves off toml 2.x, so a lockfile-only bump or a temporary override can't remove it. ## Solution The customer story (`/customers/[slug]`) and alternatives (`/alternatives/[slug]`) pages built a `toc` prop at build time, but neither page nor `LayoutComparison` ever read it. This PR removes that prop, the `markdown-toc` dependency, and `apps/www/lib/toc.ts`, which had no other callers. With `markdown-toc` gone from `apps/www/package.json`, `gray-matter@2.1.1` and `toml` leave the dependency tree. www keeps using `gray-matter@4.0.3` directly. The lockfile change only removes entries. ## Review instructions 1. Run `pnpm why toml --recursive` and check it finds no `toml`. 2. Run `pnpm tsx scripts/fix-audit-vulnerability.ts --json` and check `toml` is not in `vulnerabilities`. 3. Open a customer story on the preview, for example `/customers/asap-work`, and an alternatives page, for example `/alternatives/supabase-vs-auth0`. Each page builds and renders as it does on production. Checks run: `pnpm install --frozen-lockfile`, `pnpm run typecheck` in `apps/www` (next typegen + tsc), eslint on both changed pages (no errors), and `oxfmt --check` on the changed files. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) [FE-5192](https://linear.app/supabase/issue/FE-5192/bump-a-single-vulnerable-dependency) ## Feedback for Tedd To ask Tedd for a change to this PR, reply in Tedd's session on [FE-5192](https://linear.app/supabase/issue/FE-5192/bump-a-single-vulnerable-dependency). Tedd doesn't read comments on this PR. --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
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) |
||
|
|
50bab5657f |
chore: bump pnpm to 12.21.0 (#53676)
Splits the pnpm bump out of #53589 so the Node 26 bump can land on its own. Updates `packageManager`, `engines.pnpm`, the studio Dockerfile, the www turbo-build fixture, and the lockfile header. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
d6c9751f16 |
legal: add Supplemental Terms version 2 (November 24, 2026) (#53944)
<!-- claude-slack-attribution --> _Requested by **Nicole Kramer** · [Slack thread](https://supabase.slack.com/archives/C0161K73J1J/p1795524649703999)_ **Before:** The hidden Supplemental Terms page (`/legal/customer-resources/supplemental-terms`) lists only Version 1 (October 27, 2026). **After:** The page lists Version 2 (November 24, 2026) first, with Version 1 still available in the version list. The page remains unlinked from navigation and `noindex`/`nofollow`. Adds version 2 of the Supplemental Terms (Germany: Professional Secrecy) from the supplied Word file. **How:** The docx was converted with `pandoc -f docx -t gfm --wrap=none` and written to `v2.mdx` following the v1 conventions (Heading 1 becomes `##`, Heading 2 becomes `###`, no title heading, no `_Last Modified:_` line, the Google Form link kept as `[url](url)`). Text is verbatim from the source. `supplemental-terms.tsx` imports `V2` and adds it as the first entry in `versions`; the v1 entry is unchanged. ## Review instructions 1. Open the preview at `/legal/customer-resources/supplemental-terms` and confirm Version 2 is the default and Version 1 is selectable. 2. Compare `v2.mdx` against the source docx for text accuracy. --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
fc228529bc |
chore: bump to Node 26 (#53589)
Aligns with our backend and updates to the latest LTS version of Node. Vercel already supports Node 26, so we can switch the Vercel configuration as well, but that shouldn't need immediate coordination as part of the deployment. To prevent errors on Vercel builds, we are using `>=24` in the `package.json`, so this can be deployed on 24.x and 26.x. Once all Vercel deployments are switched to 26.x, we can pin this to 26. The pnpm bump lives in a separate PR. --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
81becce538 |
chore: update cli config schemas (#53844)
Updates the published JSON Schemas from the supabase/cli release workflow. Generated by `scripts/publish-schemas.ts` in supabase/cli from `apps/cli/schemas`. Regenerate them in supabase/cli rather than editing this folder. Published versions below the current one are frozen and never rewritten. Auto-merge is enabled: the PR squash-merges once a reviewer approves it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
1a37362821 |
chore(billing): plan selection styling (#53841)
## Problem - plan cards on the studio upgrade screen do not match recent plan cards updates to the pricing page - add-on illustrations on the pricing page sometimes show the light image in dark mode - spend cap bars on the pricing page flash when a user toggles the spend cap ## Solution - changes the upgrade screen plan cards to the pricing page design + shows enterprise as a fourth column - moves the lifted card style to the current plan of the organization + gives it a neutral "current plan" badge - moves the compare plans and pricing faq links below the plan cards + removes the stagger animation on the cards - changes the pricing page illustrations to pick the light or dark image with css because the server render does not know the theme - changes the spend cap animation to resize the bars instead of remounting them |
||
|
|
3e751f8b08 |
chore(www): bump MCP server card to 0.19.0 (#53914)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1795124021188299)_ **Before:** The MCP server card at `/.well-known/mcp/server-card.json` names version `0.18.0`. **After:** The card names version `0.19.0`, the latest `@supabase/mcp-server-supabase` release (published 2026-11-20). One-line change to the card's `version` field; nothing else in the card changes. ## To test - [ ] Open `/.well-known/mcp/server-card.json` on this PR's www preview and expect `"version": "0.19.0"`. ## Linear - fixes GROWTH-1564 --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
fcbdda8107 |
chore: migrate formatter from Prettier to oxfmt (#53835)
Migrate code formatting across the monorepo from Prettier to `oxfmt`
(`0.79.0`, pinned) for much faster formatting checks locally and in CI
while keeping code churn minimal (78 files total, 0.7% of the repo).
Studio's `@ianvs/prettier-plugin-sort-imports` ordering
(`<BUILTIN_MODULES>`, `<THIRD_PARTY_MODULES>`, blank line, then `@/` and
relative imports) is preserved via `oxfmt`'s native `sortImports`
override for `apps/studio/**/*.{js,jsx,ts,tsx}`.
### Performance (before vs after, uncached)
| Benchmark | Prettier (`3.8.x`) | oxfmt (`0.79.0`) | Speedup |
| --- | ---: | ---: | ---: |
| CI formatting step (`blacksmith-4vcpu-ubuntu-2404`, full repo) | `73s`
| **`7s`** | **~10×** |
| Local `apps/studio` JS/TS (`5,157` files) | `17.74s` | **`0.36s`** |
**~49×** |
| Local full monorepo (`11,131` files) | — | **`2.39s`** | — |
**Added:**
- `.oxfmtrc.jsonc` at repo root with Prettier-matching options,
`sortPackageJson: false`, the Studio `sortImports` override, and ignore
patterns migrated from `.prettierignore`
- `oxfmt` (`0.79.0` exact pin) in `pnpm-workspace.yaml` catalog and
workspace `devDependencies` / `dependencies`
- Shared `.agents/scripts/format_and_lint.sh` hook script and
`.agents/hooks.json` (used by both Claude Code and Antigravity)
**Changed:**
- Replaced `test:prettier` with `format:check` and switched `format` in
root `package.json` to `oxfmt`
- Updated `packages/api-types` (`codegen`,
`verify-production-types.mjs`), `apps/design-system` (`build:registry`),
`apps/docs` (`CodeSample.ts`, `generate-sitemap.ts`, `next.config.mjs`,
`spec/Makefile`), `apps/www` (`generate-sitemap.mjs`), and
`packages/build-icons` (`generateIconFiles.mjs`) from Prettier to
`oxfmt`
- Updated `.github/workflows/prettier.yml` (keeping the `format` job ID
intact), `.github/workflows/autofix_linters.yml`,
`.claude/settings.json`, `AGENTS.md`, `CONTRIBUTING.md`, and
`.github/copilot-instructions.md`
- Applied one-time `oxfmt` formatting pass in a separate commit (78
files: 30 `i18n/README.*.md` trailing spaces, 19 Studio files, 17 other
TS/TSX/generated types, 8 MD/MDX, 3 `package.json`, 2 example CSS files)
**Removed:**
- `prettier`, `@ianvs/prettier-plugin-sort-imports`, and
`prettier-plugin-sql-cst` from `devDependencies` (note: `.sql` files
were not part of the CI formatting glob; `eslint-config-prettier` is
kept for ESLint)
- `prettier.config.mjs`, `.prettierignore`, and
`.claude/scripts/format_and_lint.sh`
## To test
- Run `pnpm run format:check` and confirm it passes cleanly across all
matched files
- Run `pnpm --filter api-types test`, `pnpm --filter docs exec vitest
run features/directives/CodeSample.test.ts`, and `pnpm --filter www exec
vitest run generate-sitemap.test.ts`
- Edit an `apps/studio` file with out-of-order imports and run `pnpm run
format` to confirm builtin/third-party vs `@/`/relative grouping matches
prior behavior
- Check that the `Check Code Formatting` CI workflow passes on this PR
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
|
||
|
|
2d65bd395a |
fix(www): date the knowledge base launch post November 23 (#53904)
## Problem The Knowledge Base launch post is dated 25 November 2026. It should be 23 November 2026. DOCS-1721. ## Solution The post date, filename, and image directory now use 23 November 2026. The public URL stays `/blog/introducing-supabase-knowledge-base`. ## Review instructions 1. Compare [production](https://supabase.com/blog/introducing-supabase-knowledge-base) (25 November 2026) with the [preview](https://zone-www-dot-com-git-nikrichers-docs-1721-kb-blog-date-supabase.vercel.app/blog/introducing-supabase-knowledge-base) (23 November 2026). 2. Confirm the post still loads at `/blog/introducing-supabase-knowledge-base`. ## 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) Co-authored-by: Nik Richers <nik@validmind.ai> |
||
|
|
d6f02493f3 |
fix(www): fix typos and duplicated words in blog posts (#53863)
## Problem Four blog posts contain duplicated words or typos (table in linked issue). The Flutter multiplayer tutorial references `udpate()` in prose while its own code samples define `update()`. Fixes #53861 ## Solution One-word text corrections in the six MDX files. No code, frontmatter, or link changes. <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. Open each changed file's diff and confirm only the listed word changed. 2. Optionally open the Vercel preview of `/blog/flutter-real-time-multiplayer-game` and search for "update()". ## 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) --------- Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
9f896fec79 |
Add blog post: Introducing Supabase Knowledge Base (#53763)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Adds a new `apps/www` blog post, "Introducing Supabase Knowledge Base," for the [supabase.com/kb](https://supabase.com/kb) launch. The post explains why applied answers (migrations, troubleshooting, FAQs, tutorials, and community guides) now have their own home next to the docs, how coding agents can read /kb, and how the community can contribute. Resolves DOCS-1721. ## What is the current behavior? No blog post exists for /kb yet. Anthony Lio, Jeremias Menichelli, Kody Jackson, and Aleksi Immonen don't have author entries in `apps/www/lib/authors.json`. ## What is the new behavior? - New post at `apps/www/_blog/2026-11-23-introducing-supabase-knowledge-base.mdx` - New author entries for `anthony_lio`, `jeremias_menichelli`, `kody_jackson`, and `aleksi_immonen` in `apps/www/lib/authors.json` - New assets under `apps/www/public/images/blog/2026-11-23-introducing-supabase-knowledge-base/`: the `og.png`/`thumb.png` hero images (a capture of the /kb landing page, 2400x1260) and `kb-blog-hero.mp4`, a short demo of the landing page and a search - "Start here" section uses a two-column layout on desktop (links on the left, demo video on the right) that stacks on mobile Check the preview: [Introducing Supabase Knowledge Base](https://zone-www-dot-com-git-nikrichers-docs-1721-write-045ba3-supabase.vercel.app/blog/introducing-supabase-knowledge-base) ## Remaining work before merge - [ ] Confirm the publish date with Marketing (MARKET-2253), then rename the post file and image folder if it changes - [ ] Marketing +1 review per the Blog Post Process (post in `#team-marketing`) ## Additional context - Content is adapted from an internal Notion draft (Product for Docs). - The post doesn't link the Rundowns topic, which is hidden from /kb navigation on purpose (#51139). ### Test plan - [ ] `pnpm run dev:www` and confirm `/blog/introducing-supabase-knowledge-base` renders: title, description, all six author bylines/positions, date, hero image, video, the two-column "Start here" section, og:image meta tag - [ ] Confirm `/blog` index card shows the new post with the thumb image - [ ] Confirm `/blog/authors/anthony_lio`, `/blog/authors/jeremias_menichelli`, `/blog/authors/kody_jackson`, and `/blog/authors/aleksi_immonen` render 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jeremias Menichelli <jmenichelli@gmail.com> |
||
|
|
4439db9aa6 |
fix: broken links from the Web 404 Review, week of 2026-11-09 (#53436)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1794794072393559?thread_ts=1794794072.393559&cid=C076KTY11DF)_ ## Problem **Before:** Two URLs returned 404. `/partners/startups` had no page or redirect, even though the startups program lives at `/solutions/startups` (and `/startups` already redirects there). In the Python reference, two "redirect URLs and wildcards" links were written without a leading slash, so the browser resolved them relative to the reference page and sent readers to `/docs/reference/python/docs/guides/auth/redirect-urls`, which doesn't exist. **After:** `/partners/startups` permanently redirects to `/solutions/startups`. Both Python reference links point to `/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls`, matching the other links to that page in the same spec. ## Solution One commit per fix, so either can be dropped by reverting its commit: - `/partners/startups` (www): added a permanent redirect to `/solutions/startups` in `apps/www/lib/redirects.js`, next to the existing `/startups` redirect. Redirects run before the `app/partners/[slug]` route, so that route doesn't intercept it. - `/docs/reference/python/docs/guides/auth/redirect-urls` (docs): made the two relative links in `apps/docs/spec/supabase_py_v2.yml` absolute, in the `sign_in_with_oauth()` and `reset_password_for_email()` entries. ## Review instructions 1. Open each path below on the matching Vercel preview. 2. Confirm it lands where described and tick the box. ## To test - [ ] Open `/partners/startups` on the www preview: it redirects to `/solutions/startups`. - [ ] Open `/docs/reference/python/auth-signinwithoauth` and `/docs/reference/python/auth-resetpasswordforemail` on the docs preview: the "redirect URLs and wildcards" links go to `/docs/guides/auth/redirect-urls#use-wildcards-in-redirect-urls`. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) ## Linear - fixes GROWTH-1502 --- _Generated by [Claude Code](https://claude.ai/code/session_011aGhSBbkSPecZj1bHzV9jJ)_ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
dcd494e101 |
chore(www) - allow indexing of 2 solutions pages (#53644)
## Problem Several pages seem to have indadvertant `noindex, no-follow` robots declarations via meta tags. ## Solution Removes these. ## Preview <img width="1024" height="670" alt="image" src="https://github.com/user-attachments/assets/e0d6e42d-673b-40d4-b9b9-99b0307a1f62" /> https://zone-www-dot-com-git-kody-devrel-877-index-solu-b2f540-supabase.vercel.app/solutions/hackathon --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
ebdbe95c1b |
chore(docs,www) - remove dupe h1s (#53645)
## Problem Dupe h1's in blog and docs ## Solution Removes them. ## Preview links TBD |
||
|
|
623d08c7ff |
changing pgmq repo address to current repo (#38921)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? docs update ## What is the current behavior? referenced old pgmq repo from tembo ## What is the new behavior? now points to [pgmq](https://github.com/pgmq/pgmq) --------- Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
9495de919f |
Update Kris Talajic title to Growth Lead (#53821)
## Problem Kris Talajic's title in `authors.json` is "Growth Lead, East". His correct title is "Growth Lead". It shows up on the Spago dinner go page and on blog bylines. ## Solution Changes `position` to "Growth Lead" for `kris_talajic` in `apps/www/lib/authors.json`. ## Review instructions 1. Open the Vercel preview at `/go/aws-reinvent/spago-dinner`. 2. Confirm the host card reads "Growth Lead, Supabase". ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
6b39c131af |
Update Kris Talajic title to Growth Lead, East (#53817)
Updates Kris Talajic's `position` in `apps/www/lib/authors.json` from "Sales Lead, East" to "Growth Lead, East". This surfaces on the AWS re:Invent Spago dinner page (`/go/aws-reinvent/spago-dinner`) hosts section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Wendie Cheung <wendie@Wendies-MacBook-Pro.local> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
d921af7a13 |
Rename Circuit to Annsa on the State of Startups page (#53246)
Replace Circuit with Annsa and update its link to https://annsa.ai in the State of Startups 2026 participant list. Keep the list in alphabetical order. I'm the founder. We took part in the survey as Circuit and have since renamed the company to Annsa. The old address, https://withcircuit.com, already redirects to https://annsa.ai. ## 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? Content correction. ## What is the current behavior? The participant list displays Circuit and links to https://withcircuit.com. ## What is the new behavior? The participant list displays Annsa and links to https://annsa.ai. ## Additional context Same kind of change as #50583. It is a one-line data change in `apps/www/data/surveys/state-of-startups-participants.ts`. Prettier passes on the file with the repo's settings and the file type-checks. The Vercel check for zone-www-dot-com needs a team member to authorize the preview. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
4ead4b092e | chore(www): bump MCP server card to 0.18.0 (#53690) | ||
|
|
8f73c10ce1 |
feat(studio): sample browser-translation DOM errors in Sentry (#53600)
## Problem Browser translation (e.g. Chrome Translate) and some extensions rewrite DOM text nodes, which makes React throw `insertBefore` / `removeChild` errors. We drop all of these via `ignoreErrors`, so we have no signal on how often they still happen after the dynamic-text ESLint rule (#52949). Linear: [FE-5008](https://linear.app/supabase/issue/FE-5008/sample-sentry-events-for-browser-translation-crashes-instead-of), from the investigation in [FE-5013](https://linear.app/supabase/issue/FE-5013/investigate-how-we-currently-hide-browser-translation-insertremove). ## Solution Stop ignoring these errors in Studio and send a 5% sample, tagged so they are easy to find in Sentry. - Move the insert/remove node messages from `BROWSER_NOISE_IGNORE_ERRORS` into a new `BROWSER_TRANSLATION_DOM_ERRORS` list in `packages/common/sentry.ts`. `docs` and `www` add it to `ignoreErrors`, so their behavior is unchanged. - In Studio's `beforeSend`, tag matching events with `browser_translation`, `page_translated` and `sample_rate`. The existing `shouldDropForSampleRate` applies the rate. - `page_translated` is best effort: it checks for the `translated-ltr` / `translated-rtl` class on `<html>` and Google Translate `<font>` wrappers. Firefox and Edge are less reliable, so `false` is not proof. - `filterSentryEvent` skips its 1% non-crash sampling for tagged events. Without this the rates would multiply and 5% would really be 0.05%. - The generic `parentNode` / `removeChild` null reads stay ignored. They have many unrelated causes, so tagging them as translation would mislead. Not in this PR: - The `text content does not match` and hydration ignores. They are related symptoms and should be a follow-up. - The user-facing fallback in `InsertBeforeRemoveChildErrorHandler`. ## Review instructions 1. Check that `docs` and `www` still ignore the five DOM messages, via `BROWSER_TRANSLATION_DOM_ERRORS` in their `instrumentation-client.ts`. 2. Run `pnpm exec vitest run lib/sentry-client-options.test.ts` from `apps/studio`, and `pnpm exec vitest run sentry.test.ts` from `packages/common`. 3. After merge, filter Sentry for `browser_translation:true` on the production Studio project and compare `page_translated` true against false. ## Before merging Sentry also has server-side inbound filters on the production Studio project. Someone with project access should confirm the `error-message` filter doesn't match these messages. If it does, the sampled events will be dropped on arrival. ## 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 (not applicable) |
||
|
|
c3c049ea53 |
chore: remove public TIA PDF and point to Trust Center (#53687)
<!-- claude-slack-attribution --> _Requested by **Ivan Vasilov** · [Slack thread](https://supabase.slack.com/archives/C0161K73J1J/p1795121287621619)_ ## Problem **Before:** The Studio org Documents page linked directly to `https://supabase.com/downloads/docs/Supabase+TIA+250314.pdf`, and that PDF was served publicly from `apps/www/public/downloads/docs/`. Legal/Security wants people to get the latest TIA from the Trust Center instead, and the old PDF taken off the public site. **After:** The Studio TIA section links to https://trust.supabase.io, and the PDF is deleted from `apps/www`. The old PDF URL permanently redirects to the Trust Center, so existing links don't 404. This removes the public TIA PDF and repoints the dashboard to the Trust Center. ## Solution - Deleted only `apps/www/public/downloads/docs/Supabase+TIA+250314.pdf` (the other docs in that folder are untouched). - `TIA.tsx` in Studio: the button now links to `https://trust.supabase.io` (the same form already used in the legal FAQ), reads "View TIA in Trust Center", uses the external-link icon, and drops the `download` attribute. Description copy mentions the Trust Center. The existing `document_view_button_clicked` telemetry is unchanged. - `apps/www/lib/redirects.js`: added a permanent redirect for `/downloads/docs/Supabase\\+TIA\\+250314.pdf` to `https://trust.supabase.io`, following the existing DPA PDF redirect. This is easy to drop if you'd rather have a hard 404. No other references to the PDF exist in the repo (checked www, studio, docs, packages). The legal FAQ already links to the Trust Center. ## Important caveats - Deleting the file does **not** remove the blob from git history. `supabase/supabase` is public, so the PDF stays fetchable through the repo's history. If it must be truly gone, that needs a separate decision (history rewrite and/or contacting GitHub support). - A CDN/Vercel cache may serve the PDF briefly after deploy (and the redirect takes effect once deployed). ## Review instructions 1. In the Studio preview, open an org's Documents page and check the TIA section: the button opens https://trust.supabase.io in a new tab. 2. On the www preview, request `/downloads/docs/Supabase+TIA+250314.pdf` and confirm it redirects to the Trust Center. ## Testing Typecheck, lint and tests were not run: `pnpm install` is partially blocked in my environment (npm.jsr.io is egress-blocked) and prettier couldn't load its plugins. I only confirmed `redirects.js` loads in Node and the entry parses. I couldn't reach supabase.com, so the live URLs are unverified. --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
f9fd4a2a9f |
feat(www,docs,kb): show Do Not Sell or Share footer link to US visitors (#53490)
## Problem US visitors need a "Do Not Sell or Share My Personal Information" footer link, and no site reads the visitor's country ([GROWTH-1369](https://linear.app/supabase/issue/GROWTH-1369)). ## Solution - The www proxy copies the `x-vercel-ip-country` header into a `_sb_country` cookie, which the footers read client-side. Docs and kb route through www, so that covers all three. - US visitors and unknown countries see the opt-out label. Everyone else keeps "Privacy Settings". Both open the same modal. - The link sits on each footer's copyright line, and the label stays hidden until the cookie is read. - Out of scope: GPC ([GROWTH-1373](https://linear.app/supabase/issue/GROWTH-1373)) and modal copy ([GROWTH-1370](https://linear.app/supabase/issue/GROWTH-1370)). - Tests cover US, non-US, unknown countries, and the cookie write. Screenshots used a hand-set cookie. **www** | | Before | US | DE | |---|---|---|---| | 375px | <img src="https://github.com/user-attachments/assets/1bd8bcb8-6692-4fe9-90a0-5343b0364053" width="200"> | <img src="https://github.com/user-attachments/assets/0514a0bd-ad1c-4773-b889-de941f5466b5" width="200"> | <img src="https://github.com/user-attachments/assets/328ca1b4-9698-492e-8045-a15d884108f2" width="200"> | | 1440px | <img src="https://github.com/user-attachments/assets/3cb3e7d7-62ab-4d34-841c-23d50d7d1cd5" width="300"> | <img src="https://github.com/user-attachments/assets/caf75b29-7286-404a-b1ea-7dfa5022912c" width="300"> | <img src="https://github.com/user-attachments/assets/2c067209-39cd-4ad8-9987-4f8763d70660" width="300"> | **docs** | | Before | US | DE | |---|---|---|---| | 375px | <img src="https://github.com/user-attachments/assets/37248b4a-436b-4d2d-b2d3-3966117abf9e" width="200"> | <img src="https://github.com/user-attachments/assets/0b109a0d-7618-46f8-ade0-8ba17e390b56" width="200"> | <img src="https://github.com/user-attachments/assets/0047b2b8-7047-40df-8d9c-09f51e538fa4" width="200"> | | 1440px | <img src="https://github.com/user-attachments/assets/0a7d6a65-e964-43dc-911e-0ea033cb1e91" width="300"> | <img src="https://github.com/user-attachments/assets/27922348-661c-4246-b3fc-44ac054bd084" width="300"> | <img src="https://github.com/user-attachments/assets/30afb171-1023-43ff-b77e-89f341128377" width="300"> | **kb** | | Before | US | DE | |---|---|---|---| | 375px | <img src="https://github.com/user-attachments/assets/cd4fb8d1-8827-4b1a-8d13-c2a5d4f97378" width="200"> | <img src="https://github.com/user-attachments/assets/2706ae24-3df8-4149-9a51-75abb0456734" width="200"> | <img src="https://github.com/user-attachments/assets/7afb8731-b487-4e48-ae83-a3a6bde36bee" width="200"> | | 1440px | <img src="https://github.com/user-attachments/assets/3b2bdc17-fee7-4ec0-bd24-d35a0367a6ca" width="300"> | <img src="https://github.com/user-attachments/assets/479b03e6-6890-4714-bbbb-ab122f46e786" width="300"> | <img src="https://github.com/user-attachments/assets/252f4e0f-5bcc-4b43-aeda-784df9f000ca" width="300"> | ## Review instructions 1. From a US IP, click the footer link on the www preview. The modal opens. 2. From a non-US IP, see "Privacy Settings". ## 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) --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
b1d59e0ee8 |
feat(www): pricing (#53320)
## Problem - pricing page shows checks in the bright brand green - pro button sits lower than the other plan buttons, and each price sits lower than its plan name - compute slider has no step marks, so a reader cannot see the sizes before a drag ## Solution - changes the plan cards so names, prices and buttons line up, and the pro card has the only green button - replaces the bright green check circles with tinted checks and drawn minus icons, so both icons pass contrast - adds step marks and a hover preview to the compute slider, so the badge and price show a size before the click - adds a tab above the micro row in the compute table, so readers see which size the plan credits cover - fixes the spend cap chart, which showed the bars of both states on toggle because css transitions changed the motion values | before | after | | --------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | <img width="2880" height="23304" alt="pricing-before" src="https://github.com/user-attachments/assets/c42c7487-e0fb-4914-a210-844fe67015bd" /> | <img width="2880" height="22958" alt="pricing" src="https://github.com/user-attachments/assets/e2066006-f610-4c53-a5a7-94525966fefc" /> | ## Preview links | Site | Live | Preview | | ---- | ------------------------------------------------------------------------------------ | --- | | WWW | [/pricing](https://supabase.com/pricing) | [/pricing](https://zone-www-dot-com-git-antlio-feat-www-pricing-supabase.vercel.app/pricing) | ## Review instructions 1. visit [/pricing](https://zone-www-dot-com-git-antlio-feat-www-pricing-supabase.vercel.app/pricing) |
||
|
|
90a7bb08c0 |
chore(www): add infrastructure section to Koodos case study (#53683)
## Problem The Koodos case study doesn't yet cover the infrastructure behind Shelf. ## Solution Add a short "Under the hood" subsection at the end of "Choosing Supabase", before "The approach". It explains where Koodos's Postgres database runs, what it holds, and why the team doesn't have to host, patch, or maintain the servers. ## Preview links | Site | Live | Search for | | ---- | -------------------------------------------------------------- | -------------- | | WWW | [/customers/koodos](https://supabase.com/customers/koodos) | Under the hood | ## Review instructions 1. Open the preview of `/customers/koodos`. 2. Confirm the "Under the hood" section appears at the end of "Choosing Supabase" and before "The approach". ## 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) |
||
|
|
b518418b0c |
chore(www): add infrastructure section to Chatbase case study (#53682)
## Problem The Chatbase case study doesn't yet cover the infrastructure behind Chatbase's primary instance. ## Solution Add a short "Under the hood" subsection at the end of "Engineering for the next phase of growth", before "Results". It explains where the primary instance runs, what it carries, and how the storage configuration change fits with the planned read replica for reporting. ## Preview links | Site | Live | Search for | | ---- | ---------------------------------------------------------------- | -------------- | | WWW | [/customers/chatbase](https://supabase.com/customers/chatbase) | Under the hood | ## Review instructions 1. Open the preview of `/customers/chatbase`. 2. Confirm the "Under the hood" section appears at the end of "Engineering for the next phase of growth" and before "Results". ## 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) |
||
|
|
598e7ec1f7 |
chore(www): add infrastructure section to eXp Realty case study (#53681)
## Problem The eXp Realty case study doesn't yet cover the infrastructure behind eXp's Supabase projects. ## Solution Add a short "Under the hood" subsection at the end of "Democratizing development", before "The new calculus of build versus buy". It explains where each eXp Supabase project runs and why that lets non-engineers spin up a backend while core engineering only reviews the schema and RLS policies. ## Preview links | Site | Live | Search for | | ---- | -------------------------------------------------------------------- | -------------- | | WWW | [/customers/exprealty](https://supabase.com/customers/exprealty) | Under the hood | ## Review instructions 1. Open the preview of `/customers/exprealty`. 2. Confirm the "Under the hood" section appears at the end of "Democratizing development" and before "The new calculus of build versus buy". ## 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) |
||
|
|
7637c6d5ee |
docs(www): update SLA agreement reference and hide from Legal Hub (#53618)
<!-- claude-slack-attribution --> _Requested by **Nicole Kramer** · [Slack thread](https://supabase.slack.com/archives/C0161K73J1J/p1795012270095809)_ **Before:** The SLA page (`/sla`) opened by incorporating "the Subscription Agreement between Supabase, Inc. and Customer" for "Enterprise Customers", and it was listed under Customer Legal Resources on the Legal Hub and indexable by search engines. **After:** The SLA page incorporates the Enterprise SaaS Subscription Agreement (linked at https://supabase.com/enterprise-terms, or such other agreement entered into between Supabase and Customer) and applies to "Customers subscribed to an Enterprise Plan". The page is no longer listed on the Legal Hub and is `noindex, nofollow`, so it is reachable only by direct URL, like `/enterprise-terms`. Updates the SLA preamble wording as provided by Legal and hides `/sla` from the Legal Hub and search engines. ## Solution - `apps/www/data/legal/sla/v1.mdx`: replaced the opening paragraph with Legal's wording. The text is unchanged except that the quoted term uses straight quotes (`the "Agreement"`) to match the rest of the file. The URL is a bare URL, which remark-gfm autolinks, the same way `enterprise-terms` MDX does. The SLA is a single `v1.mdx` with no version selector or effective date, so it is edited in place and no versioning is introduced. - `apps/www/pages/legal/index.tsx`: removed the SLA entry from the Customer Legal Resources links, the same way `/enterprise-terms` is absent from the hub. - `apps/www/pages/sla.tsx`: added `noindex: true` and `nofollow: true` to the `NextSeo` meta, plus a short comment matching the one in `supplemental-terms.tsx`. - `apps/www/next.config.mjs`: added an `X-Robots-Tag: noindex, nofollow` header rule for `/sla`, next to the existing `/enterprise-terms` rule. Other pages that link to `/sla` (the Support Policy and a few docs guides) are intentionally unchanged, since direct links keep working. `generate-sitemap.mjs` has no exclusion for `/enterprise-terms`, so none was added for `/sla` either. ## Review instructions 1. Open `/legal` on the preview and confirm Service Level Agreement is no longer listed under Customer Legal Resources. 2. Open `/sla` on the preview and confirm the first paragraph matches the new wording and that "https://supabase.com/enterprise-terms" is a working link. 3. Check the `/sla` response has `X-Robots-Tag: noindex, nofollow` and the page has a `noindex, nofollow` robots meta tag. ## Checklist Check all before review: - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --- _Generated by [Claude Code](https://claude.ai/code/session_01VBvtQVPkbcDz2ojrwur2SF)_ Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> |
||
|
|
9437334289 | feat(pipelines): Update docs and UI (#53665) | ||
|
|
08388eecd6 |
feat: update headers on www (#43442)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## Problem www sends no `Content-Security-Policy`, `X-Frame-Options`, `X-Content-Type-Options`, or `Referrer-Policy` headers on its pages. Only HSTS is set. The first version of this PR added these headers on `/(.*)`. That turned out to be unsafe, because www is the zone router: `lib/rewrites.js` proxies Studio (`/dashboard`), docs, the UI library, the design system, the knowledge base, and other apps, and the header rules in `next.config.mjs` also apply to those proxied responses. A CSP there would add a second enforced policy on top of each app's own headers, and `X-Frame-Options: DENY` would break the UI library previews, which iframe `/library/example/*`. ## Solution The headers are built in `apps/www/lib/security-headers.js` and spread into `headers()` in `next.config.mjs`. **Scope** - The rules apply only to paths that www serves itself. The proxied path prefixes come from `lib/rewrites.js`, so a new zone rewrite is excluded automatically. - On those paths: `X-Frame-Options: SAMEORIGIN`, `X-Content-Type-Options: nosniff`, `Referrer-Policy: strict-origin-when-cross-origin`, and an enforced CSP. **CSP (script-focused)** - `script-src` allows `'self'`, `'unsafe-inline'`, and an explicit list of the third-party script hosts that www pages load: GTM through Stape, PostHog, Usercentrics, tweet embeds, HubSpot, hCaptcha, Default.com, Buy with AWS, and a path-scoped jsDelivr entry for unicornstudio. Each entry has a comment that names its user. - `'unsafe-inline'` stays, because the Next.js inline scripts need a nonce otherwise, and a nonce needs dynamic rendering. - `object-src 'none'`, `base-uri 'self'`, `form-action 'self'`, `frame-ancestors 'self'`. - Removed from the earlier version: `unpkg.com` (only used inside a blog code block, and anyone can publish scripts there), `*.vercel.app` (any Vercel app), `frontend-assets.supabase.com` (www serves its assets from the same origin), and the duplicate `script-src-elem`. **`'unsafe-eval'`** - Off by default. - Allowed only on the pages that evaluate MDX on the client with `next-mdx-remote-client`: `/changelog`, `/customers/[slug]`, `/events/[slug]`, `/alternatives/[slug]`, and `/partners/catalog/[slug]`. Removing it there would break those pages. - Allowed in development, because Next.js needs it there. **Preview and staging** - Detection matches Studio's CSP: `NEXT_PUBLIC_VERCEL_ENV === 'preview'` or `NEXT_PUBLIC_ENVIRONMENT` of `local` or `staging`. It no longer depends on `NEXT_PUBLIC_IS_PLATFORM`. - On preview and staging, the Vercel toolbar and the staging PostHog host are added. - The PostHog origin also comes from `NEXT_PUBLIC_POSTHOG_HOST`, the same value the client uses. **Tests** `lib/security-headers.test.ts` covers the policy for each environment, the proxied prefixes from the real rewrites, and the header sources. The sources are compiled with the same path-to-regexp build and options that Next.js uses. ## Review instructions 1. Open the preview and accept cookie consent so GTM and PostHog load. 2. Open DevTools → Console and filter on `Content-Security-Policy`. 3. Visit these pages and confirm there are no violations: - home - a blog post with a tweet embed (`/blog/launch-week-5-community-day`) - `/changelog` - a `/customers/...` page - `/state-of-startups` - `/contact/sales` - `/aws-marketplace` - a `/go` page with a HubSpot form 4. Run `curl -sI <preview>/` and check the four headers. Run `curl -sI <preview>/changelog` and check that the CSP includes `'unsafe-eval'`. 5. Run `curl -sI <preview>/dashboard` and `curl -sI <preview>/library` and check that they have no www CSP or `X-Frame-Options`. 6. Confirm `/dashboard` and `/library` still load. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
6842fbd119 |
chore(www): add infrastructure section to Loot Donkey case study (#53627)
## Problem The Loot Donkey case study doesn't yet cover the infrastructure behind the game. ## Solution Add a short "Under the hood" subsection after the "lose any sleep" quote and before "Getting ready for Early Access". It explains where the Fool King database, Auth and Steam verification Edge Function run, and why that keeps the weekly maintenance load close to zero. ## Preview links | Site | Live | Search for | | ---- | -------------------------------------------------------------------- | ------------------ | | WWW | [/customers/loot-donkey](https://supabase.com/customers/loot-donkey) | Under the hood | ## Review instructions 1. Open the preview of `/customers/loot-donkey`. 2. Confirm the "Under the hood" section appears after the "lose any sleep" quote and before "Getting ready for Early Access". ## 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) |