← All framework & vibe-builder guides

Lovable SEO & GEO: common traps and how to fix them

Fix empty SPA HTML, duplicated index.html meta tags, and invisible AI search on Lovable apps. Built on Vite + React + React Router + Tailwind + Supabase. Lovable defaults to client-side rendering, which hides page copy from AI search crawlers unless you prerender and keep head tags clean.

5 checks
3 rated error
Vibe-coding / AI builder
Client-rendered by default

Run all of these against your own site, free and without an account:

npx @rankcli/cli audit -u https://your-site.dev
Vibe-Coding & AI Assistant Guardrails

Drop these Lovable SEO & GEO rules into your AI coding assistant

Paste into Lovable Project Knowledge / CLAUDE.md so Cursor, Claude Code, Lovable, Bolt, or v0 never ships empty HTML, duplicate meta tags, or blocked AI crawlers.

Free · MIT · No Signup
Lovable Project Knowledge / CLAUDE.md
# SEO & GEO Guardrails (Lovable / Vite + React)
- Keep index.html free of per-page <meta name="description">, og:*, twitter:*, canonical, and JSON-LD tags; manage them per route via react-helmet-async so inner pages never duplicate homepage metadata.
- Every public marketing route must render exactly one <h1>, a unique 50-60 char <title>, a 140-160 char meta description, and a self-referencing <link rel="canonical">.
- Maintain public/robots.txt with explicit Allow: / rules for OAI-SearchBot, Claude-SearchBot, and PerplexityBot, plus public/sitemap.xml and public/llms.txt.
- Never invent ratings, street addresses, phone numbers, or placeholder og:image URLs.
- After any route, head, or copy change, run `npx @rankcli/cli audit -u https://your-site.dev` and fix all errors before publishing.
Connect RankCLI MCP (zero signup)
{
  "mcpServers": {
    "rankcli": {
      "url": "https://mcp.rankcli.dev/mcp/free"
    }
  }
}
Install Lovable Agent Skill
npx skills add integrallis/rankcli --skill lovable-seo-geo

Claude Code plugin (all 12 skills + MCP):

/plugin marketplace add integrallis/rankcli
/plugin install rankcli@rankcli

Works with Claude Code, Cursor, Codex, Windsurf, Cline, and Gemini CLI via skills.sh/integrallis/rankcli.

Where Lovable makes SEO harder

  • •Client-side SPA renders an empty <div id="root"></div> for GPTBot, Claude-SearchBot, PerplexityBot, and first-pass Googlebot
  • •Default index.html ships static description, og:title, and og:image tags that collide with react-helmet-async on inner routes
  • •Unknown URLs return HTTP 200 with the SPA shell (soft 404s) unless prerendered with a real 404.html
  • •No llms.txt or Organization/SoftwareApplication JSON-LD schema out of the box

What Lovable gives you for free

  • •Fast Vite + React + Tailwind scaffolding with clean public/ asset serving
  • •Native two-way GitHub sync lets RankCLI open automated SEO & GEO pull requests directly on your repo
  • •Easy to drop static public/robots.txt, public/sitemap.xml, and public/llms.txt files

The checks

error
CSR_EMPTY_HTML

Client-only SPA shell sends empty HTML to AI crawlers

Lovable builds a client-rendered Vite SPA. Crawlers that do not execute JavaScript (OAI-SearchBot, Claude-SearchBot, PerplexityBot, social link scrapers) see only <div id="root"></div> and miss your headings, copy, and structured data.

Prerender your public marketing routes at build time (e.g. with a Playwright prerender script or vite-plugin-ssr / Vike) so every marketing URL serves real HTML, while keeping /dashboard and /auth on the SPA shell.

Verify what AI crawlers actually receive:

curl -s https://your-lovable-app.com | grep -i '<h1'
npx @rankcli/cli audit -u https://your-lovable-app.com
error
SOCIAL_TAG_DUPLICATED

Static index.html meta tags collide with react-helmet-async

Lovable projects ship hardcoded Open Graph, Twitter, and description tags in index.html. Because react-helmet-async appends new tags rather than removing static ones, inner pages end up with duplicate og:title, og:image, and description tags — and scrapers pick the first (homepage) one.

Remove static meta[name="description"], og:*, twitter:*, and link[rel="canonical"] tags from index.html, and render them strictly inside a shared <SEO /> component using react-helmet-async.

// src/components/SEO.tsx
import { Helmet } from 'react-helmet-async';

export function SEO({ title, description, path }: { title: string; description: string; path: string }) {
  const url = `https://yourdomain.com${path}`;
  return (
    <Helmet>
      <title>{title}</title>
      <meta name="description" content={description} />
      <link rel="canonical" href={url} />
      <meta property="og:title" content={title} />
      <meta property="og:description" content={description} />
      <meta property="og:url" content={url} />
    </Helmet>
  );
}
error
AI_CRAWLER_BLOCKED

AI search crawlers missing explicit Allow rules or blocked at the edge

If OAI-SearchBot, Claude-SearchBot, or PerplexityBot get a 403 or are blocked by CDN bot protection, ChatGPT, Claude, and Perplexity cannot cite your app in live buyer answers.

Add explicit AI search crawler rules to public/robots.txt and verify live edge responses with RankCLI:

User-agent: *
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

Sitemap: https://yourdomain.com/sitemap.xml
warning
MISSING_LLMS_TXT

Missing /llms.txt AI discovery manifest

AI answer engines and developer coding agents look for /llms.txt to understand your product's category, pricing, canonical links, and documentation in one clean Markdown fetch.

Add public/llms.txt to your Lovable repository (or let RankCLI's free GEO Fix PR generate it automatically):

# Your Product Name

> One-sentence factual description of what your app does and who it is for.

## Key Pages
- [Homepage](https://yourdomain.com/)
- [Pricing](https://yourdomain.com/pricing)
- [Documentation](https://yourdomain.com/docs)
warning
MISSING_SITEMAP

No XML sitemap listing public routes

Lovable does not automatically generate a sitemap.xml when you add landing pages or blog posts, slowing down discovery by Google and Bing.

Generate public/sitemap.xml during npm run build from your route manifest and point public/robots.txt to https://yourdomain.com/sitemap.xml.

Check or auto-fix your Lovable site

280+ SEO & AI-search checks including every one above — plus a copy-paste AI fix prompt or 1 free GitHub Auto-Fix PR.