Cursor and Windsurf

Why AI search can't see your Cursor and Windsurf app

A Vite app scaffolded in an editor has the same empty-shell default as any other.

What is happening

An app scaffolded with Vite in Cursor or Windsurf starts as a client-rendered single-page app. Nothing is wrong with it; the default simply sends an empty document to anything that does not run JavaScript.

GPTBot, ClaudeBot, PerplexityBot and CCBot fetch your HTML and read what is in it. They do not run your bundle. So the page they see is the page before your app exists.

What Cursor and Windsurf actually deploys

These are editors, not platforms, so nothing here is decided for you. The scaffold you accepted chose the rendering model, and the host you picked afterwards chose how URLs, status codes and headers behave. That is more work than a platform asks for and considerably more room to get it right, because every one of those decisions is yours to change.

How to check it yourself, in ten seconds

curl -s https://your-app.example.com/ | grep -c "<h1"

A result of 0 means a crawler finds no heading on your page. That is what we measure, across thirty checks.

The fix for Cursor and Windsurf

Either add a prerender step to the Vite build for your public routes, or move the marketing pages to a framework that renders them on the server.

What to change in Cursor and Windsurf

  1. Read your own built output first

    Run the production build and open the file it writes. Everything that matters is decided there: if dist/index.html holds nothing but a root element, that is precisely what every crawler will be given, whatever the development server shows you.

  2. Brief the agent on the output, not the page

    An assistant asked to improve SEO will add meta tags to a component and consider it done. Asked that every public route must exist as readable HTML in the build output, it will reach for a prerender step or a framework change, which is the thing that actually fixes it.

  3. Let the host decide missing pages

    A static host with no fallback returns a real 404 for an unknown path, which is correct. Adding a catch-all rewrite to index.html to make client routing work also makes every wrong URL return 200. If you add the rewrite, add a route that answers a genuine 404 as well.

  4. Generate the files nobody scaffolds

    A Vite scaffold has no robots.txt, no sitemap.xml and no structured data, and will never grow them on its own. Generate the sitemap from the same route table the router uses, so adding a page adds it in both places at once.

Worth knowing about Cursor and Windsurf

  • The development server flatters you

    Vite's dev server is not the thing your host runs. Test the built output, served the way production serves it, or you are checking a different application.

  • Tags in a component are not tags in the document

    A head-management library sets the title once React is running. Useful for a tab name, useless for a crawler and for every link preview, which read the document as it arrived.

Cursor and Windsurf questions

Should I switch frameworks or add prerendering?
If the public pages are a handful of routes whose content changes when you deploy, prerendering the existing app is far less work and reads the same to a crawler. If the content is loaded from a database and changes between deploys, a framework that renders on the server is the one that keeps working.
Does it matter whether I used Cursor or Windsurf?
No. Neither editor hosts anything or changes the build. What determines whether a crawler can read the app is the scaffold you started from and the host you deployed to, which is why the fix is the same in both.

Scan your Cursor and Windsurf app

Free, no account. You get the full checklist and your score.

Only scan sites you own or are authorised to scan. Free scans are limited. Terms

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Three ways in

Start free. Pay only if you want the fixes written out for you.

01

Free

See what they see

The full checklist, your score, and the two worst problems explained in full. Everything else is listed but locked.

€0

Instant, on screen

Scan free

02

Do it yourself

Runbook

A PDF that walks through every fix: robots.txt templates, prerender setup per builder, JSON-LD you can paste, llms.txt. Yours to keep, with updates.

€9.99

Download straight away

Payments are handled by Stripe; businesses can add a VAT ID at checkout.