# Tray.ai

> Migrating hundreds of thousands of pages, re-platforming and extending for the leading composable AI integration platform

**Published:** 2025-01-15 | **Updated:** 2026-07-23 | **Client:** Tray.ai | **Technologies:** Contentful, Next.js, Vercel | **Services:** Development, Migration, Consultancy
---

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 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.

## We consolidated five repos into a single Turborepo monorepo on Next.js 13, introduced hybrid SSG + SSR routing for 25 complex page types.

We 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.

## [Contentful](/services/contentful) underwent a full declutter. We scrapped bloated models, built a fresh page-builder with live preview.

We 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.

## 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**.

> Roboto Studio migrated our project to Vercel and reduced build times from a full day to just 2 minutes for faster rollouts and more agile updates.
> — Co-founder & CEO, Tray.ai