## Problem
supabase-swift v3 is in alpha (`3.0.0-alpha.2`). The docs have no
reference for it. v3 renames many public APIs, so the v2 reference does
not help people who try the alpha.
## Solution
Add a v3 reference at `/reference/swift/v3`. v2 stays the default at
`/reference/swift`.
- **Prerelease flag.** A version in `REFERENCES` can now set
`prerelease: 'alpha'` (or another stage). Swift versions are `['v2',
'v3', 'v1']`. `versions[0]` is still the latest stable version, so the
existing URL and "latest" logic does not change. Other SDKs can use the
same flag.
- **Alpha notice.** A prerelease page shows "This version is in alpha"
with a link to the stable version. It does not show the "Version out of
date" warning.
- **Version menu.** Prerelease versions show in a separate "Prereleases"
group with a stage badge.
- **Spec.** `spec/supabase_swift_v3.yml` ports the v2 spec to the v3
API. The examples were checked against the v3 source at the
`v3.0.0-alpha.2` tag. It adds the new v3 APIs: MFA recovery codes,
`AuthAdminClient`, admin custom providers, `functions.stream`, and the
Realtime streams API.
- **Pages.** New introduction, installing (Xcode 26, Swift 6.2), and
upgrade guide pages under `docs/ref/swift/v3/`.
- **Navigation.** Nav entries for v3. v3 is excluded from the
"TypeScript support" section.
Not in this PR:
- Search indexing for v3. Search still covers v2 only.
- In the v2 spec, 7 filter ids use camelCase (for example `containedBy`
and `textSearch`). They match no section, so they do not render in the
v2 docs today. The v3 spec uses the matching kebab-case ids. The v2 fix
can be a separate PR.
## Review instructions
1. Open `/docs/reference/swift/v3` on the preview. See the alpha notice
and the v3 sections.
2. Open the version menu. See "Stable releases" (v2.0 with a "Latest"
badge, v1.0) and "Prereleases" (v3.0 with an "Alpha" badge).
3. Open `/docs/reference/swift`. See that it still shows v2 with no
notice.
4. Read the upgrade guide at `/docs/reference/swift/v3/upgrade-guide`.
Typecheck, Prettier, and ESLint pass locally. I did not run the docs
unit tests. The Swift examples were not compiled.
<img width="318" height="236" alt="Screenshot 2026-11-25 at 10 36 01"
src="https://github.com/user-attachments/assets/0f0caf18-7a4a-4835-8f6a-b76df9c66fa9"
/>
<img width="685" height="417" alt="Screenshot 2026-11-25 at 10 36 10"
src="https://github.com/user-attachments/assets/1c55bc44-1fc1-4390-8d8c-48bc55822bd3"
/>
## 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)
This PR migrates the whole monorepo to use Tailwind v4:
- Removed `@tailwindcss/container-queries` plugin since it's included by
default in v4,
- Bump all instances of Tailwind to v4. Made minimal changes to the
shared config to remove non-supported features (`alpha` mentions),
- Migrate all apps to be compatible with v4 configs,
- Fix the `typography.css` import in 3 apps,
- Add missing rules which were included by default in v3,
- Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot
of classes
- Rename all misnamed classes according to
https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all
apps.
---------
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
Migrates client SDK References to App Router. (Management and CLI API references aren't migrated yet, nor are self-hosting config references.)
Some notes:
Big changes to the way crawler pages are built and individual section URLs (e.g., javascript/select) are served. All of these used to be SSG-generated pages, but the number of heavy pages was just too much to handle -- slow as molasses and my laptop sounded like it was taking off, and CI sometimes refuses to build it all at all.
Tried various tricks with caching and pre-generating data but no dice.
So I changed to only building one copy of each SDK+version page, then serving the sub-URLs through a response rewrite. That's for the actual user-visible pages.
For the bot pages, each sub-URL needs to be its own page, but prebuilding it doesn't work, and rendering on demand from React components is too slow (looking for super-fast response here for SEO). Instead I changed to using an API route that serves very minimal, hand-crafted HTML. It looks ugly, but it's purely for the search bots.
You can test what bots see by running curl --user-agent "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" <URL_OF_PAGE>
Also added some smoke tests to run against prod for the crawler routes, since we don't keep an eye on those regularly, and Vercel config changes could surprise-break them. Tested the meta images on Open Graph and all seems to work fine.
With this approach, full production builds are really fast: ~5 minutes
Starts using the new type spec handling, which is better at finding params automatically, so I could remove some of the manually written ones from the spec files.
* migrate some www components to tokens
* consolidate InteractiveShimmerCard to Panel component
* update tokens in blog
* update tokens in careers page
* update tokens in customers section
* update tokens in open-source section
* update tokens in Realtime page
* update tokens in Storage and Vector
* update tokens in SplitCodeBlockCarousel
* update tokens in PGCharts
* remove unused css files
* update tokens in Card
* update tokens in Pricing page
* clean up priving page imports
* remove hardcoded theme vars
* migrate first half of defaultTheme.ts to tokens
* migrate second half of defaultTheme.ts to tokens
* improve inputs
* add foreground to text-light and text-lighter
* add foreground to text-light and text-lighter
* migrate docs components with styling tokens
* migrate docs components with styling tokens
* fix broken Repos component
* fix broken classes in blog
* update tokens on Button and other components
* update tokens on IconPanel
* update studio main layout base styling tokens
* update tokens across studio, docs and www
* update tokens across studio, docs and www
* update ui/Panel to styling tokens
* update ExampleProject and TableEditorMenu tokens
* www vector page tokens
* update studio UI tokens
* update other studio UI tokens
* update more studio UI tokens
* change tokens here, change tokens there
* finish updating colors with tokens variables
* add gui sandbox for theme experimentation
* use common package for www, docs and studio and fix Command K tokens
* provide light mode default tokens options
* fix conflict leftover
* update loading line
* fix className typo
* fix prettier
* update themeSandbox preset default values
* fix text-background0
* prettier
* update warningBanner with warning color
* switch all border-border with border-default
* improve border-secondary and foreground-muted in light mode
* force ring color on toggle
* fix button bg color and border-muted light token
* fix input bg color
* fix dark button hover
* fix homepage product card
* fix code-hike table header colors
* button dark border
* remove tabIndex leftover from homepage main ctas
---------
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>