Skip to content

Link the site to its own deployment's bench outside production - #224

Merged
joseph-isaacs merged 1 commit into
mainfrom
ji/awesome-hypatia-yfqizp
Nov 13, 2026
Merged

joseph-isaacs merged 1 commit into
mainfrom
ji/awesome-hypatia-yfqizp

Conversation

@joseph-isaacs

@joseph-isaacs joseph-isaacs commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What changes

vortex.dev: the site's links to bench named https://bench.vortex.dev on every deployment, so on a Vercel preview they left the preview for production bench, though the preview serves its own bench at /bench.

benchHref() (src/lib/bench-link.ts) now picks the link from VERCEL_ENV: https://bench.vortex.dev on production, the deployment's own /bench everywhere else (previews, local builds). Nothing redirects: each build writes the right link. It is used by the header's Benchmarks link (src/lib/nav.ts), the homepage results table's source link and the FAQ's bench links (src/lib/faq.ts). next.config.mjs embeds VERCEL_ENV at build time, so the client-side header agrees with the server render.

The results-table parity test swaps the vendored design-system renderer's hardcoded production href for benchHref(), the one deliberate difference. The smoke specs accept either form of the link, so they pass on production and elsewhere.

Not changed: on a preview, bench's links back to the site (Blog, the wordmark) still name https://vortex.dev.

How it was checked

  • bun run test: 228 pass, including the new tests/unit/bench-link.test.ts.

  • bun run check:ci, tsc --noEmit and bun run knip pass.

  • bun run build without VERCEL_ENV: the built homepage and FAQ link to /bench and /bench/methodology.

  • VERCEL_ENV=production bun run build: they link to https://bench.vortex.dev, https://bench.vortex.dev/ and https://bench.vortex.dev/methodology.

  • I did not run the Playwright smoke specs locally.

  • Every commit is signed off (git commit -s), for the DCO check.

  • bun run check:ci passes.

  • Each new image or other asset has an annotation in REUSE.toml. (None added.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01UeniB9oN8dyJ9ch4n7Tw62

@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
vortex.dev Ready Ready Preview Nov 13, 2026 2:58pm UTC

Request Review

@joseph-isaacs
joseph-isaacs enabled auto-merge (squash) November 13, 2026 14:57
The site's links to bench named https://bench.vortex.dev everywhere, so on a
preview they left the deployment for production bench. benchHref() names
bench.vortex.dev on production and the deployment's /bench elsewhere, from
VERCEL_ENV, which next.config.mjs now embeds so the client-side header agrees
with the server render.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeniB9oN8dyJ9ch4n7Tw62
Signed-off-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔦 Lighthouse audit

URL Perf A11y Best practices SEO
/ 🟢 100 🟢 100 🟢 100 🟢 100
/bench 🟢 100 🟢 100 🟢 100 🟢 100
/bench/chart/ct.eyJrIjoiQ29tcHJlc3Npb25UaW1lIiwiZGF0YXNldCI6ImFyYWRlIiwiZGF0YXNldF92YXJpYW50IjpudWxsfQ 🟢 100 🟢 100 🟢 100 🟢 100
/blog 🟢 100 🟢 100 🟢 100 🟢 100
/blog/btrblocks-compressor 🟢 100 🟢 100 🟢 100 🟢 100

Run 43447795441 · 2026-11-13 15:00 UTC

@joseph-isaacs
joseph-isaacs merged commit 26ddd51 into main Nov 13, 2026
20 checks passed
@joseph-isaacs
joseph-isaacs deleted the ji/awesome-hypatia-yfqizp branch November 13, 2026 15:03

This branch was successfully deployed

1 active deployment
Preview — 31414a17 Deployed Nov 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.

2 participants