How we migrated lovable.dev away from Next.js and turned it into another Lovable app
Blog post from Lovable
Lovable migrated its high-traffic lovable.dev website, which has more than 42 million monthly visitors, roughly 400 routes, and over 910,000 lines of code, from Next.js on Vercel to its own Cloudflare workerd-based hosting platform using TanStack Start. The move was motivated by product dogfooding, the need to test single-application scaling at tens of millions of visitors, and the opportunity to apply operational lessons to customer apps and Lovable’s builder agent. Rather than attempt a high-risk replacement, the team ran both frameworks in parallel behind a proxy, migrated routes in user-journey groups, used feature flags and deterministic testing controls, reduced disruptive hard navigations with browser view transitions, and gradually shifted nearly all code into a framework-agnostic shared layer supported by adapters. A single developer, assisted heavily by AI agents for planning, code migration, compatibility reviews, testing, and performance work, completed the six-month effort while the application continued to expand. Staged rollouts revealed performance and memory risks, including an 11-minute out-of-memory incident caused by oversized server bundles and isolate churn, leading to targeted reductions in JSON parsing, API payloads, and server-side client code. Lovable reports substantially faster median server response times and build times, improved local development performance and memory use with TanStack Start, while noting that large applications may require significant custom bundling configuration. The unified stack also enables Lovable employees to edit and preview changes to lovable.dev through Lovable itself, and the company plans to broaden support for importing and editing software built with other frameworks, including Next.js.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| AI Coding Assistant | 1 | 1,513 | 470 | 139 | -19% |
| Developer Experience | 1 | 462 | 233 | 85 | -22% |
| Observability | 1 | 3,175 | 737 | 186 | -24% |
| Real-time | 1 | 4,432 | 1,050 | 222 | -31% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.