lovable-to-nextjs

Installation
SKILL.md

Lovable/Vite to Next.js Converter

Convert Lovable (Vite + React) projects into production-ready Next.js static sites with excellent SEO, a file-based CMS pattern using data/, and GitHub Pages deployment.

Package manager: yarn classic (v1) only

Use yarn classic (v1.22.x) exclusively. Never use npm. All commands, scripts, and CI pipelines must use yarn.

  • yarn install (not npm install)
  • yarn add (not npm install package)
  • yarn build (not npm run build)
  • yarn create next-app (not npx create-next-app) for scaffolding
  • npx shadcn@latest is the only exception — shadcn CLI has no yarn create equivalent
  • CI: yarn install --frozen-lockfile

Important: yarn classic does NOT have yarn dlx. Use yarn create <name> for create-* packages, and npx only when there is no yarn alternative (like shadcn CLI).

Why this approach matters

Installs
2
GitHub Stars
1
First Seen
Jun 25, 2026