B2B data
A legacy PHP site rebuilt as ~500k programmatic pages
Shipped for A technographic-data company
~500k
01
The problem
A technographic-data company's marketing site ran on an aging PHP framework and a separate blog, and its long-tail search pages were hard to change.
02
The constraint
The rebuild could not lose what the old site earned: every legacy URL had to answer, the blog and the leads had to move over, and the new site could not be indexed before a deliberate cutover.
THE MACHINE
03
The system
Next.js 16 with on-demand ISR, React 19, Tailwind v4, Postgres 16 and Drizzle: ~500k pages rendered from 4,132 catalog rows (3,940 technologies, 128 geographies, 64 categories), 1,007,038 legacy URLs answered, 70 blog posts migrated, 1,470 leads preserved, and three least-privilege database roles asserted on every deploy. 126 unit tests and 2 browser suites.
System diagram: 7 nodes and 7 directed flows.
SOURCE
- legacy PHP site + blog
HUMAN
- team review · cutover
ACTION
- migration · 70 posts, 1,470 leads
- ~500k on-demand pages
- 1,007,038 legacy URLs answered
- live site
STORE
- catalog · 4,132 rows
FLOWS
- legacy PHP site + blog to migration · 70 posts, 1,470 leads
- migration · 70 posts, 1,470 leads to catalog · 4,132 rows
- catalog · 4,132 rows to ~500k on-demand pages
- legacy PHP site + blog to 1,007,038 legacy URLs answered
- ~500k on-demand pages to team review · cutover
- 1,007,038 legacy URLs answered to team review · cutover
- team review · cutover to live site, cutover
THE GATE · WHERE A PERSON SIGNS OFF
04
The human in the loop
Indexing is opt-in per request and the cutover is a deliberate step a person takes after team review, so a staging build can never be indexed by accident.
MEASURED, NOT CLAIMED
05
The outcome
The rebuild is staged for team review with the local Lighthouse gate at 100 for accessibility, best practices and SEO; the live cutover is a separate, deliberate step.