If I don’t want to use the apex domain, do I still need to use A and AAA records? I, unfortunately, cannot do this as this affects my email service which is on CPanel. So I redirect everything to the www subdomain and then usually just have the www domain point to CNAME (how it worked with Heroku)
Can samething be done with fly.io by just adding a CNAME and proxy it to my my-app.fly.dev ?
Thank you for the quick response, I have tried exactly that from the doc link you sent, even after DNS propagation, it was not working. Only after doing the below three steps, it works, but I would want to use be able to add CNAME record and get it working because right now, my email is broken with the below steps.
Add certificate for apex and www
Update DNS records on cloudflare as per the instructions in the certificate page
Disable Universal SSL feature on cloudflare (as per instructions here)