Hugo Custom Domain
Custom Domain
This step is how to use a custom domain name, instead of the URL that Azure provides. This is completely optional to do this step, and the Azure URL will work fine, however this step is more a vanity step to make the site easier to remember. The assumption with this step is that you already have bought a domain name.
The below steps are generic, as they will be different depending on who you bought the domain through, and who manages your DNS.
-
Log in to Azure, and select the Static Web App that you have created.
-
In the left hand menu, select “Custom domains”
-
Select “Add” in the top menu
-
Enter the “www.” domain name that you are going to use
-
Select next
-
Cope the “Value” that is provided for the CNAME record.
-
Log in to your DNS provider, to teh section where you configure your DNS
-
Add a new “CNAME” record, with the following details:
Name = www
Target = Value copied from Azure -
Click save
-
Return to Azure, and click “Add”
-
The new mapping should have been created
-
Access the URL you have chosen, and your site should be accessible. NB - This may take some time as it takes a while for DNS propogation.
For more information, check out: