Automatically migrate React applications to Next.js 13+ App Router - Legacy version with full authentication
Install the CLI
Preview your migration
Run the migration
React Router β Next.js App Router
useNavigate()
β useRouter()
from next/navigation
<Link to="/path">
β <Link href="/path">
from next/link
useLocation()
β usePathname()
and useSearchParams()
Project Structure
Component Enhancements
Task | Command | Authentication | Credits |
---|---|---|---|
Preview migration | next-lovable ./app --dry-run | β Yes | β No |
Full migration | next-lovable ./app ./next-app | β Yes | β Yes |
--dry-run, -d
- Preview changes without making them--yes, -y
- Skip confirmation prompts--install, -i
- Install dependencies after migrationNode.js 16+
React Project
nextlovable.com Account
Active Credits
Task | Command | Credits Required | Authentication |
---|---|---|---|
Preview project migration | next-lovable migrate ./my-app --dry-run | β | β Yes |
Full project migration | next-lovable migrate ./my-app ./next-app | β Yes | β Yes |
migrate
, convert
)Version 0.6 and earlier: Uses legacy command formatconvert
commandRun --dry-run
before any actual migration