Since I haven't done this myself, I will improvise in this answer and further explorations is needed. But from my understanding, you have basically 2 different apps running on Heroku. Frontend is the first one and accessed by publicly available URL, and backend is the second one to which frontend communicates after receiving the initial request from the end user.
Simplified version looks like this (requests and responses follow the same chain):
User -> Cloudflare -> Frontend -> Backend
In this case, the communication between frontend and backend reminds me of Amazon VPC. So, the frontend works like a gateway, thus only this app needs to be configured to use Cloudflare.
Actually, writing this made me realise that this topic might deserve its own article, so please don't forget to share your findings 😉
Hi Luboho!
Since I haven't done this myself, I will improvise in this answer and further explorations is needed. But from my understanding, you have basically 2 different apps running on Heroku. Frontend is the first one and accessed by publicly available URL, and backend is the second one to which frontend communicates after receiving the initial request from the end user.
Simplified version looks like this (requests and responses follow the same chain):
User -> Cloudflare -> Frontend -> Backend
In this case, the communication between frontend and backend reminds me of Amazon VPC. So, the frontend works like a gateway, thus only this app needs to be configured to use Cloudflare.
Actually, writing this made me realise that this topic might deserve its own article, so please don't forget to share your findings 😉
Thanks for reply. I will share findings if I will figure it out.