Railway migrated its entire production frontend from Next.js to Vite + TanStack Router, completing the switch in just two PRs with zero downtime. The motivation was slow builds (10+ minutes, 6 of which were Next.js), heavy reliance on client-side patterns that didn't fit Next.js's server-first model, and hacky layout
Table of contents
Table of ContentsNext.js served us well. Then it didn't.Why TanStack Start + ViteTwo PRs, zero downtimeWhat we gave upRailway's frontend runs on RailwayWhy now1 Comment
Sort: