π Step 1 β Add Custom Domain in Azure Portal
- Go to portal.azure.com β Static Web Apps β Your App β Custom Domains
- Click "Add Custom Domain"
- Enter your domain name (e.g.,
expenses.yourdomain.com)
- Azure will provide a CNAME record to add to your DNS provider
π‘ Step 2 β Add CNAME Record in GoDaddy (or your DNS provider)
- Sign in to GoDaddy β Your Domains β Select your domain
- Go to DNS Management
- Find the CNAME records section and click "Add Record"
- Set:
Host: expenses
Points to: orange-pebble-082c35a10.6.azurestaticapps.net
TTL: 3600 (default)
Note: Replace the target with the CNAME value provided by Azure. It may differ for your app.
β
Step 3 β Validate in Azure
- Return to the Custom Domains page in Azure Portal
- Click "Validate" for your domain
- Azure will verify the DNS record β this may take 5-30 minutes to propagate globally
- Once validated, your custom domain will be active
- You can now access the app at
expenses.yourdomain.com