I resorted to create a new Azure Static Web App and move my custom domains to it, as nothing else really solved my issue.
Cannot generate TXT record for Static Web App - domainName is invalid. The domain name given was not found.
I had a Static web app with the custom domains of www.alican.se and alican.se configured. It worked as intended, and then I decided to create a new Static Web App and move my custom domains to it. I removed all references to my custom domain from my old App and then deleted it. I also cleared out all information from my DNS provider.
I then made my new Static Web App, configured my www domain without an issue and I can access the page without any problems. However, I am unable to configure my domain alican.se without the www. I get the following error: domainName is invalid. The domain name given was not found.
I know it takes couple of hours, even days for DNS changes to take effect. But this problem has persisted for almost a week. Any ideas on how to solve this issue?