v2.4.0·Now supporting Next.js 15 App Router

Your codebase, but faster.
Migrate to Next.js
without stopping the ship.

A technical playbook for senior engineers carrying 200k-line React codebases into the Next.js ecosystem — one module at a time, no feature freeze required. fuck you

migrate — terminal
→ npx migrate-nextjs audit .
✓ Found 47 routes to migrate
✓ 3 routes ready for immediate migration
$start migrating▋
No vendor lock-in
GitHub OAuth
Free audit
migrate.dev/diff
React CRA
📁src/
📄App.js
📁pages/
📄index.js
📄about.js
📄webpack.config.js
Before — Create React App
// src/App.js
import { BrowserRouter, Route } from 'react-router-dom';
import HomePage from './pages/HomePage';
export default function App() {
return (
- <BrowserRouter>
- <Route path='/' component={HomePage} />
- </BrowserRouter>
);
}
// pages/HomePage.js
- export async function getServerSideProps() {
- const data = await fetch('/api/data');
- return { props: { data } };
- }
● 3 issuesTypeScriptUTF-8
Migratev2.4.0
Build time
2.1s↓ 94%
Lighthouse
98↑ 41pts
⟶Create React App⟶React Router v6⟶Webpack 5⟶Redux Toolkit⟶React Query⟶Axios⟶Styled Components⟶CSS Modules⟶Jest + RTL⟶Vite⟶Babel⟶TypeScript⟶Create React App⟶React Router v6⟶Webpack 5⟶Redux Toolkit⟶React Query⟶Axios⟶Styled Components⟶CSS Modules⟶Jest + RTL⟶Vite⟶Babel⟶TypeScript
Migration Phases

Five phases. SHUT YOUR BIG ASS.

Each phase ships independently. You can migrate 3 routes, deploy, and continue feature work. The codebase improves incrementally — no feature freeze, no rewrite risk.

01
Phase 01
Audit

Parse your full dependency tree. Map every route, data fetch, and side effect. Get a visual dependency graph and migration complexity score for each module.

57Performance
FCP
4.2s
LCP
8.1s
02
Phase 02
Route

Convert file-based routes one at a time. Migrate React Router config to Next.js conventions. Keep the old routes live while new ones are tested.

app/ directory — hover to expand
▾app/
✓page.tsx
✓layout.tsx
▸dashboard/
▸profile/
▸api/
03
Phase 03
Fetch

Replace useEffect data fetching with async Server Components. Convert getServerSideProps patterns. Implement ISR and on-demand revalidation.

// ❌ useEffect + useState
useEffect(() => {
  fetch('/api/users')
    .then(r => r.json())
    .then(setUsers);
}, []);
04
Phase 04
Render

Decide per-route: static, dynamic, or streaming. Add Suspense boundaries. Instrument Lighthouse and Core Web Vitals. Watch the score climb.

⚡
Static
Build-time HTML
🔄
Dynamic
Per-request
▶
Streaming
Progressive
05
Phase 05
Deploy

Push to Vercel or your own infrastructure. Edge functions, ISR, and global CDN configured automatically. Zero-downtime cutover from old SPA to new Next.js app.

What Actually Changes

See the transformation. Line by line.

No hand-waving. Here's exactly what your code looks like before and after each migration step.

React Router → File-Based Routing
Routing
− Beforesrc/App.tsx
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { lazy, Suspense } from 'react';
- const Home = lazy(() => import('./pages/Home'));
- const About = lazy(() => import('./pages/About'));
export default function App() {
- return <BrowserRouter>
- <Routes>
- <Route path='/' element={<Home />} />
- <Route path='/about' element={<About />} />
- </Routes>
- </BrowserRouter>;
}
+ Afterapp/page.tsx
// app/page.tsx — automatic route at /
+ export default function Home() {
+ return <main>Home page</main>;
+ }
// app/about/page.tsx — automatic route at /about
+ export default function About() {
+ return <main>About page</main>;
+ }
// No router config. No lazy(). No BrowserRouter.
// The file IS the route.
47 routes converted
~2hwith Migrate CLI
Engineers Who Shipped It

Real codebases. Real numbers.

Not synthetic benchmarks. These are production migrations from engineers who couldn't afford a rewrite.

3,400+
Codebases audited
94%
Build time reduction (avg)
47pts
Lighthouse gain (avg)
8 wks
Average migration time
200k-line CRA migration
✦
"We had 312 routes in a 4-year-old CRA. Migrate gave us a dependency map that showed exactly which 18 routes had zero inter-dependencies — those were our first sprint. Three weeks later, Lighthouse jumped from 41 to 89 with zero feature freeze."
Lighthouse improvement+48pts
Marcus Chen, Staff Frontend Engineer at Lattice
Marcus Chen
Staff Frontend Engineer · Lattice
Legacy SPA rescue
✦
"My client inherited a 5-year-old SPA from a previous agency. The webpack config alone was 800 lines. Migrate's audit identified 23 routes that could be statically generated immediately. Build time went from 4.2 minutes to 11 seconds."
Build time4.2m → 11s
Priya Nair, Independent Contractor at Freelance
Priya Nair
Independent Contractor · Freelance
Zero feature freeze
✦
"The tech lead's nightmare scenario: board approved the rewrite but product said 'no feature freeze.' Migrate's incremental approach let us ship 3-4 migrated routes per sprint while the rest of the team kept building on CRA. Finished in 11 weeks."
Migration completed11 weeks
David Okonkwo, Principal Engineer & Tech Lead at Rippling
David Okonkwo
Principal Engineer & Tech Lead · Rippling
Pricing

Start free. Upgrade when you're convinced.

The audit is always free. See exactly what you're getting into before spending a dollar.

MonthlyAnnualSave 38%
Free
$0forever

Full audit, visual dependency map, and a concrete plan for your first 3 routes.

  • Full codebase audit (unlimited)
  • Visual dependency map
  • Migration complexity score per route
  • Step-by-step plan for first 3 routes
  • CLI tool: npx migrate-nextjs
  • GitHub OAuth — connect any repo
$Connect GitHub & Start Free

No credit card. GitHub OAuth only.

Full Playbook
Most Popular
$49/mo per team
Billed $588/yr · Save $360

Everything you need to complete the full migration — all 5 phases, custom recipes, and expert support.

  • Everything in Free
  • Full migration playbook (all 5 phases)
  • Custom webpack → next.config recipes
  • Automated route conversion (beta)
  • CI/CD integration templates
  • Private Discord channel (#migration-help)
  • Priority support from core team
  • Team seats (up to 10 engineers)
Unlock Full Migration Playbook

14-day money-back guarantee

Questions? Read the migration FAQ or join the Discord to ask the community.

Start Migrating Free