Google now allows single page applications like react to practice - Dynamic rendering link
I’ve been trying to make a react single page application to prerender HTML to googlebot and serve normal spa web app to visitors. I’ve deployed cloudflare worker from a react build with wrangler.
The problem is google can’t even see there is a webpage at the url.
Did anyone try resolving googlebot requests to html generated from the cloudflare worker? Is it possible?
The reason the webapp gets the content from Graphql CMS api, so I’m exploring if it can be served from workers conditionally to googlebot with final html generation, without going to into rabid hole of apollo-ssr or nextjs.
I noticed there is HTMLRewriter, link . Is it possible to dynamically render statically generated HTML from a spa deployed in workers?