Repository navigation
feat(landing): prerender each page with its own metadata - #975
Merged
Merged
Conversation
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]>
Ishaan Gangwani (ishaan1124)
requested a review
from Aayam Bansal (aayambansal)
as a code owner
October 13, 2026 02:32
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: Cursor <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mjsrenders/,/download,/ace,/benchmark,/privacyand writes each page's own title, description and canonical (taken from its existinguseMetacall), plus404.html,sitemap.xmlandllms.txt(links to the docs' own llms files)https://www.openscience.sh, the host the apex redirects to; the displayed install URL is unchangedog:image(newog.jpg),summary_large_image, robots directives, PNG and apple-touch icons, WebSite/Organization JSON-LD alongside the existing SoftwareApplicationvercel.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 unchangedVerified 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