Note that when using this approach, you shouldn't use the root domain; you can still use a subdomain with no issues though.
[0]: https://www.freecodecamp.org/news/why-cant-a-domain-s-root-b... [1]: https://blog.cloudflare.com/introducing-cname-flattening-rfc...