Skip to content

feat(landing): prerender each page with its own metadata - #975

Merged
Ishaan Gangwani (ishaan1124) merged 2 commits into
mainfrom
seo/landing
Oct 13, 2026
Merged

Ishaan Gangwani (ishaan1124) merged 2 commits into
mainfrom
seo/landing

Conversation

@ishaan1124

Copy link
Copy Markdown
Member

What

The landing was a client-rendered SPA behind a catch-all rewrite, so crawlers that don't run JavaScript (link previews, AI search crawlers, Bing's first pass) saw an empty page, and every unknown URL returned the homepage with a 200.

This renders each route to static HTML at build time and hydrates it:

  • scripts/prerender.mjs renders /, /download, /ace, /benchmark, /privacy and writes each page's own title, description and canonical (taken from its existing useMeta call), plus 404.html, sitemap.xml and llms.txt (links to the docs' own llms files)
  • canonical URLs use https://www.openscience.sh, the host the apex redirects to; the displayed install URL is unchanged
  • og:image (new og.jpg), summary_large_image, robots directives, PNG and apple-touch icons, WebSite/Organization JSON-LD alongside the existing SoftwareApplication
  • vercel.json: cleanUrls, no catch-all (unknown paths now 404 while still showing the landing), 308s for /benchmarks, /blog/launch, /legal/privacy* and trailing slashes; docs rewrites unchanged
  • hydration-safe tweaks: Download detects the platform after hydration, the footer year suppresses the new-year mismatch, Workspace uses an isomorphic layout effect, the docs-copy plugin skips the SSR build

Verified locally

All five pages and an unknown path hydrate with no React errors; per-page titles, canonicals and h1s are in the static HTML (benchmark page: ~4.9k words visible without JS).

Made with Cursor

Each route is rendered to static HTML at build time with the title,
description and canonical URL it declares through useMeta, then hydrated.
Crawlers and link previews now see the full page without running JS.

- canonical URLs name www.openscience.sh, where the apex redirects
- og:image and a large Twitter card; WebSite and Organization JSON-LD
- sitemap.xml and llms.txt generated from the routes; robots.txt points to the sitemap
- unknown paths return 404 (still showing the landing page) instead of a 200
- old aliases (/benchmarks, /blog/launch, /legal/privacy*) are 308s
- Download detects the platform after hydration so markup matches

Co-authored-by: Cursor <[email protected]>
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openscience Ready Ready Preview Oct 13, 2026 2:34am UTC

Request Review

@ishaan1124
Ishaan Gangwani (ishaan1124) merged commit bff78aa into main Oct 13, 2026
8 checks passed
@ishaan1124
Ishaan Gangwani (ishaan1124) deleted the seo/landing branch October 13, 2026 02:37

This branch was successfully deployed

1 active deployment
Preview — 8f05e865 Deployed Oct 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant