How do I route bubble app to subdomain on my OWN cloudflare account?

Here are some of the moving parts:

  • WP frontend with blog “myapp.io
  • Cloudflare account setup with “myapp.io
  • The app on bubble has the domain “myapp.app” setup with the built-in domain settings panel in bubble

Currently, I have people going to myapp.io and then transferring them to myapp.app to handle the backend. Note the Cloudflare account setup for myapp.io.

My preferred setup is get people to myapp.io as the front end and use a subdomain (i.e. app.myapp.io) to point to the backend.

How do I do this?

It’s possible. You are going to need to study the Cloudflare documentation around “workers”. Lame answer … but it’s the best I’ve got :slight_smile: It’s how I’ve done it previously – maybe there is a better way - but I also wanted to control all the response headers so “workers” is what I used - based on this project https://github.com/EtherDream/jsproxy.

What I’ve found and never managed to overcome is getting a Bubble app behind a path … so I’ve managed

myapp.io/wp → off to wordpress (ie use the path to discriminate a particular service)
myapp.io → off to a Bubble app

but I’ve had too many problems trying to rewrite

myapp.io/bubbleapp → off to a Bubble app - just too many hardcoded path problems in the Bubble app and I gave up trying to overcome them all.

1 Like