From Next.js to Pure React: ComfyDeploy's Speed Boost
2025-01-01
The ComfyDeploy team migrated their dashboard from Next.js to pure React, reducing build time from 3 minutes to 18 seconds and hot reload time to under 200ms. This was driven by issues with Next.js's slow build times, difficult API testing, and high API costs from Vercel as their project grew. Switching to React with TanStack Router and Rspack drastically improved development efficiency and forced them to optimize their API design and code structure. While they lost some Next.js features, they found the trade-offs worthwhile, resulting in faster builds, a more enjoyable developer experience, and a more optimized architecture.
Development