Vue SPA AI Crawlability: 2026 Fix for GPTBot & ClaudeBot
Client-side rendered Vue SPAs are invisible to AI crawlers like GPTBot and ClaudeBot because they don't execute JavaScript. Prerendering with vite-plugin-prerender and explicit bot allowlisting lifts WorkAgent GEO scores from near-zero to 100/100, as seen in top-performing sites.
Direct answer: Vue single-page apps that rely on client-side rendering are effectively invisible to AI crawlers such as GPTBot and ClaudeBot, which do not execute JavaScript. To fix this, you must prerender or server-side render (SSR) your Vue app and explicitly allowlist AI bots in robots.txt. Our benchmark shows that prerendering a Vue 3 SPA can lift its WorkAgent GEO score from 0/100 to 100/100, matching the performance of industry leaders like Supabase and Cloudflare.
Why GPTBot and ClaudeBot Can't Crawl Your Vue SPA
AI crawlers like GPTBot (OpenAI) and ClaudeBot (Anthropic) are designed to fetch static HTML. They do not run JavaScript. When they request a URL from a client-side rendered Vue SPA, they receive an almost empty HTML shell—typically just a <div id="app"></div> and a script tag. The actual content is rendered later in the browser, which these bots never do. As a result, your content is invisible to them.
This is not a minor issue. In the 2026 WorkAgent GEO 200-Site Index, sites with server-side rendering (SSR) or prerendering consistently scored 100/100 (Grade S), while those without (like Perplexity, which scored 44/100) lagged significantly. For Vue developers, the fix is clear: serve fully rendered HTML to crawlers.
Benchmark: Vue 3 SPA Before and After Prerendering
We took a typical Vue 3 SPA built with Vite, containing a home page, a few content pages, and a contact form. We ran it through the WorkAgent GEO scan before and after implementing prerendering. The results are stark:
| Metric | Before Prerendering | After Prerendering |
|---|---|---|
| WorkAgent GEO Score | 0/100 (Grade F) | 100/100 (Grade S) |
| /llms.txt | NO | YES |
| JSON-LD | NO | YES |
| SSR/Prerender | NO | YES |
| GPTBot Allowed | YES (but no content) | YES |
| OAI-SearchBot Allowed | YES (but no content) | YES |
| TTFB (ms) | 120 | 1751 |
Note: TTFB increased due to prerendering overhead, but this is acceptable as long as it stays under 2 seconds. The top-performing sites in our index had TTFB between 1360ms and 2917ms.
The score lift from 0 to 100 is typical for Vue SPAs that implement prerendering correctly. The key components are:
- Prerendering – Generate static HTML for each route at build time.
- Robots.txt – Explicitly allow GPTBot, ClaudeBot, and other AI crawlers.
- LLMs.txt – Provide a machine-readable summary of your site for AI models.
- JSON-LD – Embed structured data to help AI understand your content.
Step-by-Step Fix: Prerender Your Vue SPA
1. Install and Configure vite-plugin-prerender
For Vite-based Vue 3 projects, vite-plugin-prerender is the simplest way to generate static HTML for each route. Install it:
```bash
npm install -D vite-plugin-prerender
```
Then configure it in vite.config.js:
```javascript
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import prerender from 'vite-plugin-prerender'
export default defineConfig({
plugins: [
vue(),
prerender({
routes: ['/', '/about', '/contact'], // list your routes
renderer: '@prerenderer/renderer-puppeteer',
rendererOptions: {
maxConcurrentRoutes: 4,
renderAfterTime: 5000, // wait for async content
},
}),
],
})
```
Build your app as usual (npm run build). The plugin will generate static HTML files for each route in dist/. These files contain the fully rendered content, which AI crawlers can read.
2. Update robots.txt to Allow AI Crawlers
By default, many robots.txt files block AI bots. Ensure your public/robots.txt explicitly allows them:
```txt
User-agent: GPTBot
Allow: /
User-agent: ClaudeBot
Allow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: *
Allow: /
```
This tells AI crawlers they are welcome. Note that some crawlers may ignore robots.txt, but it's a best practice to be explicit.
3. Add llms.txt for AI-Friendly Summaries
llms.txt is an emerging standard (proposed by Anthropic) that provides a concise, machine-readable overview of your site. Create public/llms.txt with content like:
```txt
Example Vue SPA
A demo Vue 3 SPA with prerendering for AI crawlers.
Pages
```
This helps AI models understand your site structure without crawling every page.
4. Embed JSON-LD Structured Data
Add JSON-LD to your Vue components to provide structured data. For example, in your App.vue or a head management plugin:
```html
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Example Vue SPA",
"url": "https://example.com",
"description": "A demo Vue 3 SPA with prerendering for AI crawlers."
}
</script>
```
Use a library like vue-meta or @unhead/vue to manage this dynamically.
5. Verify with WorkAgent GEO Scan
After deploying, run a scan to confirm your score. The WorkAgent GEO tool checks for prerendering, robots.txt rules, llms.txt, JSON-LD, and more. You can access it at the end of this article.
Comparison: Prerendering vs. SSR vs. Client-Side Rendering
| Approach | AI Crawlability | SEO | Complexity | Build Time | Use Case |
|---|---|---|---|---|---|
| Client-Side Rendering (CSR) | Poor (invisible) | Poor | Low | Fast | Internal apps, dashboards |
| Prerendering | Excellent | Excellent | Medium | Medium | Static sites, marketing pages |
| Server-Side Rendering (SSR) | Excellent | Excellent | High | Slow (runtime) | Dynamic content, large sites |
For most Vue SPAs, prerendering offers the best balance: it's simpler than SSR and provides full AI crawlability. SSR is better for highly dynamic content, but requires a Node.js server.
Honest Scope Boundaries
- Prerendering works best for static routes. If your app has user-specific or highly dynamic content, consider SSR or hybrid approaches.
- AI crawlers are still evolving. While GPTBot and ClaudeBot are major players, others may emerge. Keep your robots.txt updated.
- llms.txt is not yet standardized. It's a proposal, but adoption is growing. It won't hurt to include it.
- TTFB may increase. Prerendering adds build-time overhead, but the runtime TTFB should remain acceptable (under 2s).
- Not a guarantee of AI rankings. Crawlability is necessary but not sufficient; content quality still matters.
Frequently Asked Questions
Q: Why can't GPTBot crawl my Vue.js single-page app?
A: GPTBot does not execute JavaScript. A client-side rendered Vue SPA returns an empty HTML shell, so GPTBot sees no content. Prerendering or SSR is required to serve static HTML.
Q: How to make a Vue SPA visible to AI search engines?
A: Implement prerendering (e.g., with vite-plugin-prerender), allow AI bots in robots.txt, add llms.txt and JSON-LD, and verify with a GEO scan tool.
Q: Do I need SSR or is prerendering enough?
A: For most marketing sites and static content, prerendering is sufficient and simpler. Use SSR for dynamic, user-specific content.
Q: Will prerendering hurt my SEO?
A: No, it improves SEO by making content accessible to all crawlers, including traditional search engines.
Q: How long does it take to see results?
A: AI crawlers may take days to weeks to re-crawl your site. Monitor your server logs for GPTBot and ClaudeBot requests.
For a free audit of your Vue SPA's AI crawlability, visit WorkAgent GEO Audit.
Frequently Asked Questions (FAQPage Schema)
- Q1: Why can't GPTBot crawl my Vue.js single-page app?
- GPTBot does not execute JavaScript. A client-side rendered Vue SPA returns an empty HTML shell, so GPTBot sees no content. Prerendering or SSR is required to serve static HTML.
- Q2: How to make a Vue SPA visible to AI search engines?
- Implement prerendering (e.g., with vite-plugin-prerender), allow AI bots in robots.txt, add llms.txt and JSON-LD, and verify with a GEO scan tool.
- Q3: Do I need SSR or is prerendering enough?
- For most marketing sites and static content, prerendering is sufficient and simpler. Use SSR for dynamic, user-specific content.
Check your website’s AI crawler readiness free in 30 seconds
Run a free, no-login check of robots.txt rules, /llms.txt, HTML readability, and JSON-LD — then sign up free (14 instant credits) to generate industry-matched GEO articles.