<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1793584471038389?thread_ts=1793584471.038389&cid=C076KTY11DF)_ ## Problem The weekly Web 404 Review found broken URLs that are emitted by links in this repo, or that a redirect can send to a live page. I fixed the ones I confirmed in the code. Each fix is its own commit, so any one of them can be dropped by reverting that commit. ## Solution | Path that 404s | App | Change | | --- | --- | --- | | `/blog/sitemap.xml` | www | Add a permanent redirect to `/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the existing `/blog/rss.xml` redirect. Old supabase.io links still point at this legacy per-section sitemap. | | `/partners/sitemap.xml` | www | Add a permanent redirect to `/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the other `/partners/*` redirects. Same legacy supabase.io source. | | `/design-system/og.jpg` | design-system | `apps/design-system/config/site.ts`: `ogImage` pointed at a file that was never added to the app. Point it at `https://supabase.com/docs/img/supabase-og-image.png`, the shared OG image that docs, learn, and kb already use. That image is 1200x600, so `og:image:height` in `apps/design-system/app/(app)/docs/[[...slug]]/page.tsx` changes from 630 to 600 to match. | | `/docs/reference/auth/config` | docs | `apps/docs/spec/supabase_kt_v1.yml`, `supabase_kt_v2.yml`, `supabase_kt_v3.yml`, `supabase_swift_v1.yml`, `supabase_swift_v2.yml`: the refresh token rotation and `REFRESH_TOKEN_REUSE_INTERVAL` links now go to `/docs/guides/local-development/cli/config#auth.enable_refresh_token_rotation` and `#auth.refresh_token_reuse_interval`, matching the Dart v2 spec. Also add a permanent redirect from `/docs/reference/auth/config` to `/docs/guides/local-development/cli/config` in `apps/docs/lib/redirects/static-redirects.json`, so external links to the old URL stop 404ing. | | `/app/settings/api-keys` | docs | `elevenlabs-generate-speech-stream.mdx` and `elevenlabs-transcribe-speech.mdx`: the ElevenLabs API key link was a relative path that resolved on supabase.com. It now uses `https://elevenlabs.io/app/developers/api-keys`, the current ElevenLabs path (`/app/settings/api-keys` 308s there). The code-sample comments on both pages use the same URL. | I left out the other lines in the review. They need feature work, live outside this repo, or come from stale clients with no matching link in the code. ## To test - [x] www preview: open `/blog/sitemap.xml`. It should 308 redirect to `/sitemap_www.xml` and render the sitemap. - [x] www preview: open `/partners/sitemap.xml`. It should 308 redirect to `/sitemap_www.xml` and render the sitemap. - [x] design-system preview: view source on any `/design-system/docs/...` page. The `og:image` and `twitter:image` meta tags should be `https://supabase.com/docs/img/supabase-og-image.png`, and that URL should load an image. `og:image:height` should be `600`. - [x] docs preview: open `/docs/reference/kotlin/auth-setsession` and `/docs/reference/swift/auth-setsession`. The "Refresh token rotation" and `REFRESH_TOKEN_REUSE_INTERVAL` links should open the matching sections of `/docs/guides/local-development/cli/config`. - [x] docs preview: open `/docs/reference/auth/config`. It should 308 redirect to `/docs/guides/local-development/cli/config`. - [x] docs preview: open `/docs/reference/auth`. It should still 308 redirect to `/docs/reference/self-hosting-auth/start`, so the new `/docs/reference/auth/config` entry doesn't collide with it. - [x] docs preview: open `/docs/guides/functions/examples/elevenlabs-generate-speech-stream` and `/docs/guides/functions/examples/elevenlabs-transcribe-speech`. The "API key" link under Requirements should go to `https://elevenlabs.io/app/developers/api-keys`. ## Checklist - [ ] 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-1409 --- _Generated by [Claude Code](https://claude.ai/code/session_011aGhSAkL6hxEkWQxXbNazM)_ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
Supabase Design System
Design resources for building consistent user experiences at Supabase.
Getting started
From the repo root:
# Copy local env vars (sets NEXT_PUBLIC_BASE_PATH for asset URLs)
cp apps/design-system/.env.local.example apps/design-system/.env.local
# Move into the design-system app
cd apps/design-system
# Install dependencies
pnpm i
# Build the registry and Velite content, then start the dev servers
pnpm dev
Or from apps/design-system:
# Copy local env vars (sets NEXT_PUBLIC_BASE_PATH for asset URLs)
cp .env.local.example .env.local
# Install dependencies
pnpm i
# Build the registry and Velite content, then start the dev servers
pnpm dev
The dev command builds the registry and Velite content, then runs the Next.js dev server and Velite watcher in parallel.
Open http://localhost:3003/design-system in your browser to see the result.
Doc pages load compiled MDX from .velite/codes/*.json per document. Metadata lives in the smaller allDocs.json index (~367KB instead of ~27MB), so content edits only reload the changed doc's code.
Alternative commands
You can also run the development server and content watcher separately. Build the registry and content first, because dev:next and dev:content do not:
pnpm build:registry
pnpm build:content
# Run only the Next.js development server
pnpm dev:next
# Run only the Velite content watcher (in a separate terminal shell)
pnpm dev:content
From the repo root, pnpm dev:design-system runs the same dev script. If you split the watchers from the root, build first:
pnpm --filter=design-system build:registry
pnpm --filter=design-system build:content
pnpm --filter=design-system dev:next
pnpm --filter=design-system dev:content
Watching for MDX changes
The dev command watches MDX files and hot-reloads them. If you are running pnpm dev:next on its own, also run pnpm dev:content in another terminal.
Adding components
The design system references components rather than housing them. That distinction matters: everything below is about documenting components, not implementing them. Add or edit the components themselves in one of these two places:
packages/ui: basic UI componentspackages/ui-patterns: components built from libraries or frompackages/ui
After you add or remove documented components, update these source files:
config/docs.ts: list of components in the sidebarcontent/docs: the component documentationregistry/examples.ts: example componentsregistry/fragments.ts: fragment componentsregistry/charts.ts: chart componentsregistry/copy-writing.ts: copywriting examplesregistry/default/example/*: the example component implementationsregistry/default/block/*: chart block implementations, when you add a chart
Do not edit __registry__. pnpm dev, pnpm typecheck, and pnpm build generate it from the files above, and it is gitignored. If you add registry entries while the app is already running, regenerate it:
cd apps/design-system
pnpm build:registry