| Hey HN! If you’ve ever started a new Lovable project—just a React SPA under the hood—and later realized you need SSR, SEO, or file-based routing, you know the pain of manually reshaping every route and import. I felt that pain too, so I put together a tiny CLI that: Takes your existing Lovable SPA code (components, hooks, routes) as-is Autogenerates Next.js pages from your React Router or Vite routes Copies static assets into /public and fixes up CSS/JS imports Why this matters to Lovable users You started with a SPA because it was easy—but now you want Next.js perks (SSR, SSG, API routes). Hand-rewriting every page is tedious and error-prone. One CLI command gives you a fully bootstrapped Next.js app—no guesswork. You’ll need a (free) account at https://nextlovable.com to use the CLI. Sign up there, then log in once to cache your credentials. npm install -g next-lovable next-lovable ./you-lovable-react-app That’s it. You’ll see a new /pages folder, your imports updated, assets in place, and you’re running Next.js without rewriting a line. |