I’m trying to set up a Cloudflare proxy for my web app hosted on Railway. It works perfectly fine for www subdomain, but I cannot add a CNAME record for root because of the error above. This is how my DNS looks like:
I assume the issue is caused by the A record on the top but can I actually delete it since it indicates the IP address of my domain? Should I do something else then? Thank you upfront!
Does your wwwCNAME point to your Railway instance? Is that where you want the traffic for your apex domain to go? Does that host know how to handle requests for the apex domain?
If the answer to the last two questions is yes, then you can delete the A record for your domain and replace it with the same canonical name used by your www alias.