Tray.ai
99.86% faster builds and 1.5 million pages migrated in six weeks—how we rebuilt Tray.ai's site on Vercel.
Overview
How we turned release day into release hour for Tray.ai
We slashed Tray.ai's build times by 99.86 %—shrinking a full workday to just two minutes. In just six weeks, we migrated half a million pages onto Vercel through a progressive strategy and rapid iteration. Now, a lightning-fast browsing experience for more than a million monthly visitors.
Legacy pain
Breaking free from legacy constraints
Legacy Next.js 9, fragile AWS Serverless functions, and 250 MB packages choked every deploy. Previewing changes meant full prod builds; form logic lived in a separate repo; failed deploys were weekly rituals. Marketing releases stagnated, engineers dreaded merge-days, and SEO rankings slid as pages crawled to load.
Rebuilding the architecture
Modern stack, unified workflow
We consolidated five repos into a single Turborepo monorepo on Next.js 13, introduced hybrid SSG + SSR routing for 25 complex page types, re-platformed forms to Vercel Functions with reCAPTCHA, migrated from styled-components to Tailwind CSS through a progressive strategy, and added next/link
pre-fetching and next/image
optimisation.
The move trimmed bundle size, simplified developer workflows, and hardened security behind Vercel's firewall.
Content velocity unlocked
Empowering marketing independence
Contentful underwent a full declutter. We scrapped bloated models, built a fresh page-builder with live preview, and gated resources behind smart forms. Marketing can now ship pages in minutes—without pinging engineering. Real-time preview across any route lets writers catch copy issues before they publish.
Measurable wins
Performance that speaks volumes
Deployments that once took 24 hours now finish in 120 seconds. Page-load times dropped by an order of magnitude; Vercel Speed Insights scores sit in the high 90s. During two DDoS waves, the new static-first strategy served traffic with 0 % downtime.
"Moving to Vercel reduced build times from a full day to just 2 minutes for faster rollouts and more agile updates."
Co-founder & CEO, Tray.ai
Get in touch
Book a meeting with us to discuss how we can help or fill out a form to get in touch