mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
bot/decrease-eslint-ratchet-baselines
7
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
b04118b0e6 |
[FE-4885] feat(www,docs): add InstantDB migration page to sitemap, docs (#53074)
Makes the InstantDB migration page discoverable. It's served through a rewrite, so it has no page file for the sitemap to find, and it serves as its own docs, so there's no separate guide to link to. **Added:** - `https://supabase.com/migrate/instantdb` in the www sitemap, alongside the other proxied apps - InstantDB card in the "Migrate to Supabase" listing on `/docs/guides/resources` The card has no icon because the repo has no InstantDB logo. Adding one later would also put it in the docs home migration grid. ## Tested locally Sitemap and docs listing tests pass, and ESLint and Prettier are clean on the touched files. The generator outputs the URL once, as valid XML. `tsc` in `apps/docs` only failed on the missing `__generated__/graphql` module since codegen wasn't run. ## To test - `/docs/guides/resources` on the docs preview: card shows in "Migrate to Supabase" and links to the migration page - `/sitemap_www.xml` on the www preview includes `/migrate/instantdb` --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
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" /> |
||
|
|
a23ab5ef9e |
fix(ui-library) - add in core SEO features (#52567)
## Problem The UI was missing several common SEO affordances, including: - canonical URLs - JSON+LD structured data (`TechArticle`, `BreadcrumbList`) - a sitemap Also the [examples pages](https://supabase.com/library/example/password-based-auth/auth/sign-up) should be tagged with `noindex` b/c they're demo webpages. ## Solution Adds these + adds the newly created sitemap to the apps/www listing. ## Preview links ### Sitemap https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/sitemap.xml <img width="1338" height="669" alt="image" src="https://github.com/user-attachments/assets/75bdbfa0-1294-4ed2-a045-fc76d2c8f133" /> ### Canonical URLs Also fixed a bug in the og:url property, where it didn't set the `/library` and instead rendered `undefined`. **Previous** https://supabase.com/library/docs/nextjs/password-based-auth <img width="1338" height="702" alt="image" src="https://github.com/user-attachments/assets/90561e30-f5b0-4a91-b19d-340b542c996d" /> **New** https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/docs/nextjs/password-based-auth <img width="1338" height="702" alt="image" src="https://github.com/user-attachments/assets/2bdf34b2-2cc2-4b50-b57b-807835ba5d01" /> ### JSON-LD - [preview](https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/docs/nextjs/password-based-auth) - [validation](https://validator.schema.org/#url=https%3A%2F%2Fui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app%2Flibrary%2Fdocs%2Fnextjs%2Fpassword-based-auth) <img width="1338" height="702" alt="image" src="https://github.com/user-attachments/assets/25627028-c37a-4940-ad6d-0d85d31f3ef9" /> ### Examples Now have a `noindex` value on them. https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/example/password-based-auth/auth/sign-up <img width="1338" height="702" alt="image" src="https://github.com/user-attachments/assets/16f30d8c-8471-43e0-a55c-e6dc30e326e0" /> |
||
|
|
fd8f75e578 |
fix(www): restore /features/* pages in sitemap after Next 16.4 adapter build (#52508)
<!-- claude-slack-attribution --> _Requested by **Pam Chia, Kody Jackson** · [Slack thread](https://supabase.slack.com/archives/C07P3AU3J2D/p1793284217443139)_ Since the Next 16.4.3 bump in #52438, https://supabase.com/sitemap_www.xml has no `/features/<slug>` URLs. `generate-sitemap.mjs` found them by globbing `.next/server/pages/features/*.html`, and adapter builds (as on Vercel) now write that HTML under `.next/server/route-cache/` instead, so the glob comes back empty. Local builds without an adapter still use the old path, which is why the sitemap looked fine locally. **Changed:** - **Feature pages are back in `sitemap_www.xml`**: the script reads the `/features/[slug]` routes from `.next/prerender-manifest.json`, which lists them in both build modes. If a Vercel build finds none, the sitemap step throws and fails the build instead of shipping a sitemap without them. - **Dead partner globs removed**: the three `.next/server/pages/partners/**` globs have matched nothing since partners moved to the App Router, so they and the `.next/server/pages` path handling are gone. **Note:** partner catalog detail pages (`/partners/catalog/<slug>`) are still in no sitemap. I removed the runtime partner sitemap an earlier commit added, because `/partners/catalog` has linked every listed partner in its server HTML since #51950, that sitemap carried no `lastmod`, and a marketplace query error would have produced an empty sitemap. I'll decide from crawler data whether those pages need a sitemap. ## To test Tested on the PR preview: - [x] Open `/sitemap_www.xml`, expect one `https://supabase.com/features/<slug>` entry per slug in `apps/www/data/features.tsx` (the live site currently has none). Every slug is present once, and every listed feature URL returns 200. - [x] Open `/sitemap.xml`, expect the index to list only the www, docs and kb sitemaps - [x] Open `/partners/catalog/sitemap.xml`, expect a 404 ## Linear - part of GROWTH-1401 --- _Generated by [Claude Code](https://claude.ai/code/session_01EXs9Z8YKWKFjEKKZBCe9ab)_ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com> |
||
|
|
5e8e551e2c |
fix(www): include app routes in sitemap (#50277)
I added static App Router pages to the www sitemap, including the homepage, pricing, and product pages. The generator previously scanned only Pages Router and content files; it now strips route groups, excludes dynamic segments, and emits these URLs without lastmod. **Note:** The pre-existing Pages Router `/opt-out/[ref]` entry remains outside this change. ## To test Tested on the [www preview](https://zone-www-dot-com-git-pamela-growth-1214-app-rou-1d4879-supabase.vercel.app/sitemap_www.xml): - [x] Open `/sitemap_www.xml`: expect the homepage, `/pricing`, and product routes once each, without route-group names or lastmod on those entries. - [x] Compare the sitemap's changelog URLs with `/changelog-rss.xml`: expect every RSS item link to remain included, including text-slug entries. - [x] Open `/sitemap.xml`: expect the existing www and docs sitemap links. ## Linear - fixes GROWTH-1214 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Sitemap generation now includes static pages built with the Next.js App Router. - Route groups are correctly omitted from generated URLs. - Dynamic App Router routes are excluded from the sitemap. - **Bug Fixes** - Improved sitemap coverage and URL accuracy for applications using both App Router and Pages Router pages. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
f012dfa850 |
fix(www): sitemap lists all changelog slugs (#50275)
The www sitemap generator reads changelog URLs from the build-generated RSS feed but only accepted links whose slug starts with a number, the shape `computeChangelogEntrySlug` produces solely for entries carrying `legacy_gh_discussion`. Every changelog entry authored since that migration has a plain text slug and was silently missing from `sitemap_www.xml`. I widened the link match to any non-empty slug; the RSS builder is the only producer of that file and emits exactly one link per item, so no other filter is needed. I added a text-slug RSS item to the fixture-driven sitemap test and asserted that the changelog URL list equals the RSS item list, so a future filter that drops entries fails the suite. **Note:** text-slug entries now pass through the same fail-the-build pubDate check that numeric-prefixed entries already did after #50198. A changelog entry with no `publish_date` and no date-prefixed filename would produce an unparseable pubDate and stop the www build. The alternative, shipping the URL without lastmod, is a one-line change. I kept the gate because every current changelog entry carries a date-prefixed filename, the changelog repo documents that convention, and the build error names the entry URL. ## To test Tested on Vercel preview: - [x] Count `<item>` blocks in `<preview>/changelog-rss.xml`, then count `/changelog/` locs in `<preview>/sitemap_www.xml`, expect the two counts to match - [x] Search the preview sitemap for `/changelog/pipelines`, expect one `<loc>` entry with a `<lastmod>` date - [x] Search the preview sitemap for a numeric-prefixed entry such as `/changelog/47796-developer-update-july-2026`, expect it still present ## Linear - fixes GROWTH-1212 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Changelog pages with text-based slugs are now correctly recognized in the sitemap. - Sitemap entries for these changelog pages now use their RSS publication dates. - RSS links are matched more reliably, ensuring all valid changelog URLs are included. - Invalid publication dates are rejected instead of producing incorrect sitemap metadata. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
e315fbcb53 |
feat(www): emit sitemap lastmod from content dates (#50198)
I added content dates to `sitemap_www.xml` and `dateModified` to blog
JSON-LD so crawlers can compare freshness with page metadata. Both use
`updated` when present, otherwise the publication date.
**Changed:**
- **Consistent dates:** I use the same frontmatter parser for the blog
page and sitemap. It preserves authored dates across quoting and
timezones and rejects JavaScript frontmatter.
- **Invalid dates stop the build:** I reject impossible calendar days,
out-of-range times and offsets, malformed dates, and `updated` before
publication. Content changes run the generator in CI.
- **Authoring:** I documented optional `updated` for substantive
revisions. Events, static pages, and `/evals` omit `<lastmod>`.
**Note:** Changelog dates come from RSS. Existing sitemap omissions for
nonnumeric changelog slugs (GROWTH-1212) and app-router pages
(GROWTH-1214) remain separate.
## To test
On the preview:
- [x] Open `/sitemap_www.xml`: blog, alternatives, customer stories, and
included changelog entries should carry `YYYY-MM-DD` lastmod values.
Verified on the
|