Seamlessly convert your Lovable (Vite) applications to Next.js with modern App Router architecture
- π Zero-Risk Migration - Your original Lovable files remain untouched
- ποΈ Modern Architecture - Converts to Next.js 15 App Router with React 19
- π¨ Tailwind 4 Support - Full compatibility with the latest Tailwind CSS
- π Clean Output - Generates a standalone
nextjsfolder ready for deployment - β‘ Fast Setup - One command to migrate your entire application
This tool bridges the gap between Lovable's rapid prototyping environment and Next.js production deployments. Instead of manual migration, lovable-nextjs automatically transforms your Lovable application structure to work seamlessly with Next.js App Router architecture.
- Analyzes your Lovable project structure
- Transforms components and routes to Next.js patterns
- Generates a production-ready Next.js application
- Preserves your original codebase for continued Lovable development
Before you begin, ensure your development environment meets these requirements:
| Requirement | Version | Installation Guide |
|---|---|---|
| Node.js | β₯ 22.0.0 |
Download Node.js |
| React | 19.x |
Ask Lovable to upgrade your project |
| Tailwind CSS | 4.x |
Ask Lovable to upgrade your project |
π‘ Pro Tip: Ask Lovable AI to handle the React 19 and Tailwind 4 upgrades for you - it knows exactly how to update dependencies safely!
- β macOS - Full support
- β Linux - Full support
β οΈ Windows - Not currently supported (shell script dependency)
Cross-platform Script support is planned based on community interest.
Copy the migration tool to your Lovable project:
# Navigate to your Lovable project root
cd your-lovable-project
# Copy the noxtable folder to your project
# (Download and extract from this repository)
# Add to .gitignore to keep your repo clean
echo "noxtable/" >> .gitignorecd noxtable
npm installnpm run setupAn update will only replace lovable components (nextjs/src/client) and create new NextJS pages.
All NextJS configuration, layout, providers, package.json and config files will remain unchanged.
npm run updatecd ../nextjs
npm run devπ That's it! Your Lovable app is now running on Next.js at http://localhost:3000
If you are actively developing and you want your components edited in Lovable to automatically be converted, you can let the below command run in a separate terminal or window.
npm run watchYour generated Next.js application is deployment-ready:
- Connect your repository to Vercel
- Set the Root Directory to
nextjs - Deploy with zero configuration
cd nextjs
npm run build # Creates optimized production build
npm start # Starts production serverAfter migration, your project will have this structure:
your-lovable-project/
βββ src/ # Your original Lovable files (unchanged)
βββ noxtable/ # Migration tool (add to .gitignore)
βββ nextjs/ # Generated Next.js application
βββ src/app/ # App Router pages and layouts
βββ client/ # Transformed lovable components
βββ public/ # Static assets
βββ package.json # Merged Lovable and Next.js dependencies
We welcome contributions! Here are some ways to get involved:
- π Submit an issue here by creating an issue
- π‘ Request features - upvoted issues get priority
- π Improve documentation
- π§ Submit pull requests
- Cross-platform scripts compatibility
- Next.js Page Router support
- Lovable Cloud API Conversion
This project is licensed under the MIT License - see the LICENSE file for details.
Made with β€οΈ for the Lovable community
Report Bug β’ Request Feature β’ Documentation