mirror of
https://github.com/supabase/supabase.git
synced 2026-12-05 16:09:06 +00:00
create-pull-request/patch
13
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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) |
||
|
|
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)
|
||
|
|
7ad4dd071b |
chore(ui-library) - explicitly allow bots (#53183)
Follow up to #52567, as crawlers are still getting blocked on x-robots-tag headers |
||
|
|
5191874237 |
fix(www): docs prefetch (#52700)
## Problem - link prefetch on `supabase.com/docs` returns 404 - a prefetch of `/docs/guides/auth/architecture` returns 404 through www and 200 on the docs deployment - the www rewrite forwards the request as `<page>.segments/_tree.segment.rsc` and keeps the prefetch header, so docs adds the suffix again - likely happened after next 16 migrations ## Solution - adds www rewrites that forward a docs prefetch as the page path, so docs adds the `.segments` suffix one time - fixes client navigation to the docs home, because docs serves its root as `index.rsc` and www asked for `docs.rsc` - adds a test that fails when a docs prefetch path reaches the generic `/docs/:path*` rule first | build | click before the prefetch ends | click after the prefetch ends | | --- | --- | --- | | before (`supabase.com`) | 106 to 146 ms | 102 to 137 ms, the prefetch returns 404 so the click sends a request | | after (preview with this fix) | 124 to 169 ms | **14 to 46 ms**, the click sends no request | | check | before | after | | --- | --- | --- | | segment prefetch of a guide page | 404 | 200 | | segment prefetch of the docs home | 404 | 200 | | client navigation to the docs home (`RSC: 1`) | 404 | 200 | | probe checks that pass | 4 of 8 | 8 of 8 | each run used a fresh browser profile and started on `/docs/guides/auth/passwords`. each click went to the same 4 sidebar links, which start out of view. the time stops when the new `h1` shows. the after numbers come from a test preview of www with this fix, which forwards to the same docs deployment <!-- ## 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 the `/docs` rewrites run only in production builds, so steps 4 to 7 use `supabase.com` 1. run `pnpm --filter www exec vitest run next.config.test.ts` and make sure that all tests pass 2. run `git checkout origin/master -- apps/www/lib/rewrites.js`, run the test again and make sure that the new test fails 3. run `git checkout HEAD -- apps/www/lib/rewrites.js` to restore the fix 4. before the deploy, run the command below and make sure that it prints `404` ```sh curl -s -o /dev/null -w '%{http_code}\n' -H 'RSC: 1' -H 'Next-Router-Prefetch: 1' -H 'Next-Router-Segment-Prefetch: /_tree' https://supabase.com/docs/guides/auth/architecture ``` 5. after the deploy, run the same command and make sure that it prints `200` 6. after the deploy, run `curl -s -o /dev/null -w '%{http_code}\n' -H 'RSC: 1' https://supabase.com/docs` and make sure that it prints `200` 7. open [/docs/guides/auth](https://supabase.com/docs/guides/auth), click a sidebar link and make sure that the page opens without a full reload ## 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) |
||
|
|
83ccea9d87 |
feat(dash) - allow indexing of sign-up and sign-in pages (#52650)
## Problem Large search volume hitting the following terms that don't have a good user click path: - `supabase login` (~200K clicks per 3 months), `Supabase dashboard` (~30K clicks per 3 months). There's no user click path here :( <img width="1905" height="3560" alt="image" src="https://github.com/user-attachments/assets/7aafc9e5-dd20-459b-b2bb-4044ec4158f5" /> - `sign up for Supabase` (~2,800 clicks last 3 months). Also no user click path here :( <img width="1905" height="3966" alt="image" src="https://github.com/user-attachments/assets/d7ed4f45-acaf-4b48-a63a-c62abf2221fb" /> ## Solution 3 things: - Allows indexing of `sign up` and `sign in` pages - Adds some metadata to help with navigation. - Adds 2 dash pages to the www sitemap ## Preview links - [www sitemap](https://zone-www-dot-28buthwge-supabase.vercel.app/sitemap_www.xml) <img width="869" height="182" alt="image" src="https://github.com/user-attachments/assets/3ba31a99-2cfa-4db4-80f4-cd5f41603f9c" /> - [sign up page](https://studio-staging-m4ylh7sp9-supabase.vercel.app/dashboard/sign-up) <img width="1531" height="828" alt="image" src="https://github.com/user-attachments/assets/73e6dad3-9653-4db7-a035-c8b9827cf3f9" /> - [sign in page](https://studio-staging-m4ylh7sp9-supabase.vercel.app/dashboard/sign-in) <img width="1531" height="828" alt="image" src="https://github.com/user-attachments/assets/c4d56a22-c0ab-49b5-a6ed-8b835aa4d52e" /> |
||
|
|
f55ee1dc5a |
chore(www): serve the CLI config schemas under /schemas (#52509)
## Problem The Supabase CLI's config, project-config and `supabase.lock` JSON schemas declare `$id`s under `https://supabase.com/schemas/<name>/v<N>.json`, and editors such as Even Better TOML fetch them from the `$schema` URL. Nothing is served at that path yet, so those URLs 404. ## Solution - Adds `apps/www/public/schemas` with v1 of the three schemas. They're generated in supabase/cli, and from now on its stable releases open a PR here when one changes (supabase/cli#7397) - `/schemas/:path*` responses send `access-control-allow-origin: *` and `cache-control: public, max-age=3600`, so browser-based editors and validators can fetch them and a new release shows up within the hour. Covered in `next.config.test.ts` - `/apps/www/public/schemas/ @supabase/cli` in CODEOWNERS, so the CLI team reviews those release PRs - The folder is in `.prettierignore`. The CLI publishes these files byte for byte, so reformatting them here would show up as a change on every release ## Review instructions 1. Open `/schemas/config/v1.json` on the www preview 2. Check it returns the schema as JSON, with `access-control-allow-origin: *` and the cache header (`curl -sI <preview>/schemas/config/v1.json`) Closes CLI-2865 |
||
|
|
31d21ae69f |
chore(kb) - update visibility across properties (#51804)
## Problem KB needs more visibility when we're ready to launch it. ## Solution - Adds in sitemap reference to `/sitemap.xml` - Removes `robots` meta tags from current layout in KB project - Adds reference to KB in www footer - Removes `sample-guide.mdx` page, which shouldn't exist in the live, launched site - Adds `/kb` to existing `/docs` and `/blog` pattern for x-robots-tag ## Preview links [KB](https://kb-git-kody-docs-1450-update-kb-visibility-supabase.vercel.app/kb/guides/migrate-from-amazon-rds) <img width="1101" height="700" alt="image" src="https://github.com/user-attachments/assets/8bb5dd63-ccf9-4817-bf28-162201ca1336" /> [www sitemap](https://zone-www-dot-com-git-kody-docs-1450-update-kb-v-694f6a-supabase.vercel.app/sitemap.xml) <img width="699" height="292" alt="image" src="https://github.com/user-attachments/assets/4adfc401-d1d9-4de0-b325-0c21fd4da7fa" /> [www footer](https://zone-www-dot-com-git-kody-docs-1450-update-kb-v-694f6a-supabase.vercel.app/) <img width="1101" height="700" alt="image" src="https://github.com/user-attachments/assets/472f4923-d7fa-4a6a-9d4d-5cfbd88afa7f" /> |
||
|
|
b8426f1510 |
[FE-4414] feat(www): serve InstantDB migration app at /migrate/instantdb (#51289)
Proxies `supabase.com/migrate/instantdb` to the InstantDB migration app's Vercel deployment, so the tool lives on a Supabase-owned URL instead of `instantdb-to-supabase.vercel.app`. **Added:** - Rewrites for `/migrate/instantdb` and `/migrate/instantdb/:path*` in `apps/www/lib/rewrites.js` - A `next.config.test.ts` assertion covering both rules Unlike `/evals`, the destination keeps the `/migrate/instantdb` prefix. The migration app is a Next.js app that'll run with `basePath: '/migrate/instantdb'`, so it only answers under that prefix (its `/_next` assets and `/api` routes included, which would otherwise collide with www's). **Depends on:** the migration app shipping with `basePath: '/migrate/instantdb'`. Until then this route 404s. The app's `/migrate/instantdb` path currently returns 404 because it serves from the root. ## To test - `cd apps/www && pnpm vitest run next.config.test.ts` passes - Once the app is deployed with the basePath, on the www preview: `/migrate/instantdb` loads the migration app, with no 404s for `/_next` assets or `/api` calls in the network tab - Existing rewrites (`/dashboard`, `/evals`, `/kb`) still work Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
164de2c347 |
feat(www): markdown 404 for markdown-negotiated paths (#49596)
Nonexistent paths return a real 404 everywhere, but always with an HTML body, even when the client asked for markdown via `Accept: text/markdown` or a `.md` suffix. Middleware can't fix this: it gates on a static slug allowlist and can't know a path will 404. I added two `fallback` rewrites (`.md` suffix; Accept header containing `text/markdown` or `text/*`) that run only after every route has failed to match and route the request to a small `md-404` handler returning a short markdown 404 pointing at /docs, /sitemap.xml, and /llms.txt. Real pages are structurally unaffected. **Note:** `lib/rewrites.js` is untouched (the plain rewrites array became the `afterFiles` phase), so #49587 merges independently. I updated next.config.test.ts's rewrites assertion for the phased shape; it now also pins the two fallback rules. ## To test I verified on the Vercel preview: - [x] `curl -s -D - -H "Accept: text/markdown" <preview>/definitely-not-a-page` (404, `Content-Type: text/markdown`, body with the three pointers) - [x] Same URL with a browser Accept header (existing HTML 404, unchanged) - [x] `curl -s -D - <preview>/definitely-not-a-page.md` (markdown 404) - [x] `curl -s -D - -H "Accept: text/markdown" <preview>/auth` (200 markdown, unchanged) and `<preview>/support` (200 HTML, unchanged) - [x] `/homepage.md` still 308s to `/index.md` (redirects phase wins); `Accept: text/*` gets the markdown 404, matching real-page negotiation Known boundary: `/changelog/<unknown>` keeps the HTML 404 body (pages-router `fallback: 'blocking'` routes take priority over fallback rewrites per Next docs); the status is still 404, verified on the preview. ## Linear - fixes GROWTH-1142 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added Markdown-formatted 404 responses for unmatched documentation and `.md` page requests. - Included helpful documentation links in not-found responses. - Requests that explicitly accept Markdown now receive a consistent Markdown response. - Added appropriate response headers for security, caching, and content variation. - **Bug Fixes** - Improved routing for unmatched Markdown paths, ensuring they are handled by the appropriate not-found response instead of returning an unexpected format. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
21a27eeb4f |
feat(www): canonicalize homepage markdown at /index.md (#49384)
The www root markdown lived at an accidental URL: `/.md` served the
homepage markdown only because middleware strips the `.md` suffix and
the empty slug fell through to the homepage allowlist entry, while the
canonical-looking `/index.md` 404'd. The served markdown also opened
with stale legacy positioning copy that no longer matches the site. I
renamed the homepage content slug to `index` end-to-end so `/index.md`
is the one canonical markdown URL.
**Changed:**
- **`/index.md` serves the homepage markdown (200 `text/markdown`)**:
`content/md/homepage.md` renamed to `index.md`; the middleware bare-root
slug mapping, the generator's sort special-case, and the homepage
alternate tag follow, so the tag now advertises `/index.md`.
- **Legacy aliases 308 to the canonical URL**: `/.md`, `/homepage.md`,
and bare `/index` redirect via `lib/redirects.js`; `/llms/homepage.txt`
retargeted straight to `/index.md` to avoid a redirect chain. New
`next.config.test.ts` assertions pin all four.
- **Positioning refreshed**: the markdown now opens with "Supabase is
the Postgres development platform" (matching the site title), replacing
the outdated tagline.
- **Generator safety**: the redirect-exclusion filter in
`generateMdContent.mjs` now exempts the `index` slug (its HTML page is
`/`, not `/index`, so a `/index` redirect never refers to it), and the
build fails if `content/md/index.md` ever goes missing while middleware
still maps `/` to the `index` slug.
- **CI actually runs the new assertions**: I widened the `www-tests.yml`
paths filter to include `apps/www/lib/**/*.js`,
`apps/www/content/md/**`, and `apps/www/scripts/**/*.mjs`. It previously
only matched `.ts*` and the next.config files, so a PR touching only
`lib/redirects.js`, the markdown content, or the generator would skip
the tests that pin these redirects.
**Note:** the existing homepage alternate tag still exists, re-pointed
to the canonical URL. Whether the homepage should advertise a markdown
sibling at all is a separate decision; leaving it aimed at a 308 would
break tag consumers. Positioning wording is editorial, happy to tweak.
## To test
Tested on Vercel preview:
- [x] `curl -si <preview>/index.md`: expect 200 `content-type:
text/markdown`, body opens with the Postgres development platform
positioning and no longer contains the old tagline
- [x] `curl -sI <preview>/.md`: expect 308 with `location: /index.md`
- [x] `curl -sI <preview>/homepage.md` and `curl -sI
<preview>/llms/homepage.txt`: expect 308 with `location: /index.md`
- [x] `curl -sI <preview>/index`: expect 308 with `location: /`
- [x] `curl -s -H "Accept: text/markdown" -o /dev/null -w "%{http_code}
%{content_type}" <preview>/`: expect `200 text/markdown` (bare-URL
negotiation unchanged)
- [x] `curl -s <preview>/ | grep -o 'type="text/markdown"
href="[^"]*"'`: expect href ending `/index.md`
## Linear
- fixes GROWTH-1117
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Added support for `/index.md` as the canonical Markdown representation
of the homepage.
- Added permanent redirects for legacy homepage Markdown and text URLs.
- Added `/index` to `/` redirect handling.
- **Bug Fixes**
- Updated homepage metadata, alternate links, Markdown negotiation, and
content generation to consistently use the new canonical path.
- Improved homepage content description.
- **Tests**
- Expanded coverage for homepage Markdown routes, redirects, and URL
matching.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
2e7a8a3362 |
chore(www): rename customer logo folders to on-dark and on-light (#48962)
## What kind of change does this PR introduce?
Chore: rename customer logo folders and document the theme contract. No
intended visual change, aside from Phoenix Energy whose two marks were
in the wrong folders.
## What is the current behavior?
Customer logos live at:
- `/images/customers/logos/{slug}.png` (`logo`, light mode)
- `/images/customers/logos/light/{slug}.png` (`logo_inverse`, dark mode)
`light/` actually means “use me on a dark background”.
## What is the new behavior?
Same assets, clearer paths:
- `/images/customers/logos/on-light/{slug}.png` → dark/black mark →
`logo` → light mode
- `/images/customers/logos/on-dark/{slug}.png` → light/white mark →
`logo_inverse` → dark mode
Icon chips stay at `/images/customers/logos/{slug}-icon.svg`. Old
`/images/customers/logos/light/*` URLs redirect to `on-dark`. www README
now has the contract.
# To test
Use the [www
preview](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app).
Toggle light/dark from the site header on each page. Logos should stay
readable (no white-on-white or black-on-black).
1. [Customers
grid](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/customers)
— main `logo` / `logo_inverse` surface. Spot-check Juniver, Phoenix
Energy, and one other card.
2. [Phoenix Energy
story](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/customers/phoenix-energy)
— story header uses `logo` only (on-light, plus a dark-mode brightness
filter). We swapped this pair.
3.
[Homepage](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/)
— “How industry leaders…” section. Icon chips only (`*-icon.svg`); the
wordmark `logo` field is unused here.
4. [Solutions /
Agents](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/solutions/agents)
— Chatbase quote near the top shows both theme variants. Same pattern on
[/healthcare](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/solutions/healthcare),
[/finserv](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/solutions/finserv),
and
[/b2b-saas](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/solutions/b2b-saas).
5. [Contact
sales](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/contact/sales)
— Good Tape / Xendit / Chatbase wordmarks (`on-light`). Same logos on
the demo form at
[/solutions/enterprise](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/solutions/enterprise).
6.
[Enterprise](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/solutions/enterprise)
— Mozilla / Epsilon3 / Pebblely icons in the use-cases section
(`on-dark`).
7.
[Vector](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/modules/vector)
— customer quotes. This is the only page that builds `on-light` /
`on-dark` paths at runtime from the customer slug.
8. [Mobbin
event](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/events/migrating-from-firebase-mobbin)
— company logo uses event `logo` / `logo_light` (dark vs light).
Optional second:
[/events/scale-to-millions-goodtape-auth](https://zone-www-dot-com-git-dnywh-chorecustomer-logo-o-0d7bc1-supabase.vercel.app/events/scale-to-millions-goodtape-auth).
Quick extra: hover **Product** in the site nav. The customer story
thumbnail uses `imgUrl` (`on-light`).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Documentation
- Clarified customer logo requirements, including separate light and
dark asset locations, monochrome formats, and dark PNG assets for image
generation.
## Updates
- Standardized customer logos across stories, events, sales pages,
solution pages, testimonials, and generated images.
- Improved logo rendering across light and dark themes with dedicated
variants.
- Added permanent redirects for legacy logo URLs while preserving
filename suffixes.
## Tests
- Added coverage verifying legacy logo redirects resolve correctly,
including supported exceptions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
|
||
|
|
cb35e1f98e |
chore(library): update routes, redirects, and naming (#48668)
Our UI Library registry is expanding to include blocks that go beyond UI and in some cases focus purely on back-end. This PR is a precursor to adding more back-end related blocks. This PR includes the `ui-library -> library` rename plus redirects and small UI copy updates. Since this is a rename we'll need to update Vercel configuration. ## Vercel rollout Keep the Library project Root Directory as `apps/ui-library` 1. In the **Library** Vercel project, set: `NEXT_PUBLIC_BASE_PATH=/library` Apply it to Preview and Production, then redeploy the Library project. 2. In the **www** Vercel project, add: `NEXT_PUBLIC_LIBRARY_URL=<current value of NEXT_PUBLIC_UI_LIBRARY_URL>` Apply it to Preview and Production. Keep `NEXT_PUBLIC_UI_LIBRARY_URL` during the migration, then redeploy the www project. 3. Deploy in this order: 1. Library project 2. www project 4. Validate: - `/library` - `/library/docs/nextjs/password-based-auth` - `/ui` redirects to `/library` - `/ui/docs/nextjs/password-based-auth` redirects to `/library/docs/nextjs/password-based-auth` - `/ui/docs/ai-editors-rules/*` still uses its existing Docs redirects No Vercel dashboard redirect rules are needed. Environment-variable changes require a new deployment. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Supabase UI Library has been renamed to **Supabase Library** across navigation, pages, documentation, and resource links. * The Library is now available at `/library`, with updated descriptions covering components, blocks, and developer tools. * **Bug Fixes** * Added permanent redirects from legacy `/ui` URLs to corresponding `/library` paths. * Updated links throughout the site and documentation to prevent broken navigation and references. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
a41d7138a5 |
feat: add vitest configuration and tests for X-Robots-Tag headers (#42873)
This pull request introduces a testing setup for the Next.js app using Vitest. The main changes include the addition of a test configuration, test scripts, and a sample test for the Next.js config. It also adds relevant dependencies to support Vitest and path resolution, and updates the lock file accordingly. Testing infrastructure: * Added a sample test file `next.config.test.ts` using Vitest to verify that specific headers are present in the Next.js configuration. * Created a Vitest configuration file `vitest.config.ts` with TypeScript path resolution support via the `vite-tsconfig-paths` plugin. Scripts and dependencies: * Added `test` and `test:watch` scripts to `package.json` for running and watching tests, and included `vitest` and `vite-tsconfig-paths` as dev dependencies. |