Add server-side rendering — Bolt
AI crawlers usually do not execute JavaScript. If your content is only in a useEffect, ChatGPT sees a blank page. Pre-rendered HTML is required for AI citations and faster Google indexing.
Fixing this in Bolt
StackBlitz in-browser AI app builder with WebContainers
Depends on the scaffold. Vite SPA: same as Lovable. Next: same as Cursor.
Using a different tool? Pick your stack:
The prompt for Bolt
Copy and paste this into your Bolt chat exactly as-is.
In Bolt, please update my project with these exact changes: Render content server-side 1. Your page is mostly client-rendered React — AI crawlers see an empty shell. 2. Pre-render the key text content (headings, paragraphs, product info) directly into index.html so it shows up without JavaScript. 3. For dynamic data, fetch it at build time and bake it into the static HTML.
Why this matters
There are two kinds of crawlers: those that execute JavaScript (Googlebot — mostly, slowly) and those that do not (GPTBot, ClaudeBot, most AI tools, social preview scrapers). If your content is client-rendered only, the second category sees an empty shell and cannot cite you.
Pure SPAs — Create React App, unmodified Vite React, etc. — have this problem by default. The HTML response is a single `<div id="root"></div>` and everything else appears after JS runs. Fine for users, broken for AI search.
The fix is SSR or SSG. Next.js App Router does this by default. Lovable and Bolt projects based on Vite need either a Vite SSR adapter, a move to Next/Remix/Astro, or at least a pre-rendered static export for key pages.
How to use this prompt in Bolt
- 1. Open your Bolt project.
- 2. Copy the prompt above with the copy button.
- 3. Paste into the Bolt chat and send.
- 4. Review the diff, accept the changes, redeploy.
- 5. Verify the fix using the checklist below.
Common mistakes to avoid
- error_outlinePutting the entire page inside a useEffect that fetches content — nothing ships in the HTML.
- error_outlineMarking a whole page as `"use client"` in Next.js — you lose SSR benefits.
- error_outlineLoading content from an API on the client when you could fetch server-side.
- error_outlineUsing dynamic imports for content components — the content is not in the initial HTML.
How to verify the fix worked
- check_circle`curl -s https://yoursite.com/page | grep "YOUR HEADLINE"` — must return a match.
- check_circleDisable JavaScript in Chrome DevTools → Settings → Debugger → reload — core content must still be visible.
- check_circleView source (Ctrl+U) — the H1, first paragraph, and key CTAs must be in the raw HTML.
- check_circleOpen `view-source:yoursite.com/page` — search for your meta description text.
Frequently asked questions
Does Google render JavaScript?expand_more
Do I need to migrate my whole app to Next.js?expand_more
What about hydration errors?expand_more
Want all 34 prompts tailored to your Bolt site?
Pantra scans your site in 10 seconds, detects the stack, and generates the exact prompts that apply — only the ones you actually need.
Scan my siteRelated Bolt prompts
Put key content in static HTML — Bolt
Prompt to ensure your headings, paragraphs, and FAQs are in the raw HTML, not rendered via client JS.
AI Search / GEOAllow GPTBot, ClaudeBot, and PerplexityBot — Bolt
Prompt to whitelist AI crawlers so ChatGPT, Claude, and Perplexity can cite your pages. Works in any AI-coded stack.
AI Search / GEOAdd an llms.txt file — Bolt
Stack-specific prompt to publish llms.txt — a curated guide telling LLMs what your site is about.
AI Search / GEOAdd JSON-LD structured data — Bolt
Prompt to add Organization, Article, and FAQ JSON-LD to <head> — tells Google and AI crawlers exactly what your page represents.