Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
325 stars 56 forks source link

Cannot setup root domain with A type record in godaddy #658

Open ahamedfazil opened 2 years ago

ahamedfazil commented 2 years ago

Describe the bug

I am trying to add custom domain to my Static webapp and I was almost succeeded, but while try to setup root domain by adding ALIAS record in domain provider I couldn't add since godaddy allows only IP address in A Type record.

I pinged my static webapp url and added that IPv4 address to A type record in godaddy but it didn't work (actually it worked for few minutes where I can go to my site without 'www' but after few minutes nothing worked even I cannot access the site with www).

I am referring this video for my custom domain setup -> https://youtu.be/SpQgKfJ87fE?t=210

Expected behavior I would like to have my custom domain to work without "www" in the url.

Screenshots image

Thanks in advance

arihantparsoya commented 1 year ago

I am facing the same issue

ahamedfazil commented 1 year ago

In Microsoft documentation, they suggested to use Azure DNS.. namecheap domain provider has no issue and it works fine as well

https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain?wt.mc_id=azurestaticwebapps_inline_inproduct_general#about-domains