A Cloudflare Worker that proxies your Bubble app and routes bot traffic through Prerender.io for SEO rendering.
- Regular users are proxied transparently to your Bubble app (
BUBBLE_UPSTREAM) - Search engine bots and crawlers are routed to Prerender.io for server-side rendered HTML
- Canonical tags are injected/replaced to point to the public URL
- Redirects from the upstream are rewritten to use your public hostname
- Deploy
worker.jsas a Cloudflare Worker - Set the following environment variables in your Worker settings:
- Cloudflare Workers (supports
HTMLRewriter)
