We Moved Off Next.js
2 days ago
- #Vite
- #React Router
- #Next.js
- Documenso initially chose Next.js for its SSR, easy routing, and vibrant community.
- Early adoption of Next.js's App Router and Server Actions led to debugging and build issues.
- Switched to tRPC for simplicity but faced worsening developer experience with slow HMR times.
- Attempted Turbopack to resolve issues but encountered errors, making it unusable.
- Decided to migrate to React Router for its straightforward and transparent routing.
- Leveraged Vite for bundling, resulting in faster development and better productivity.
- Client-side data fetching improved loading states and perceived performance.
- Next.js is still suitable for docs and content-driven sites but not for full-scale applications.
- Documenso is now excited about its future with React Router and Vite.