1
0 Comments

Improving SEO on my SPA to get some hits!!!! This is for the react crowd. One ai prompt gets it done!!

Hey IH — first update here.

I've been building Dream API — a billing and auth infrastructure service for developers.

Product works. I'm proud of it. But I had a problem nobody warned me about.

I Googled my own site. Homepage barely showed up. Docs, pricing, templates — invisible. Every social preview on LinkedIn, Slack, Twitter showed the same generic card. Google Search Console showed 21/25 page resources couldn't even load.

The issue? My site is a React SPA. One index.html, one <title>, one <meta description> for every route. Google sees one page. Crawlers see an empty div.

How I fixed it

Wrote a Cloudflare Worker that sits in front of the SPA as a reverse proxy. Per-route meta tags, pre-rendered HTML for crawlers, zero changes to the app itself. Went from 1 indexed page to 10/11 with proper social previews everywhere.

Turned the whole setup into an AI prompt that builds everything — worker, prerender script, sitemap, structured data, deployment.

Grab it here if you're running a SPA.

Preparing for Product Hunt launch next. More updates coming.

posted toAvatar for product Dream API
Dream API