If you have deployed your site to Azure Static Web Apps, here are the instructions for adding a custom domain.

Azure also supports hosting your domain, but you must register new domains elsewhere.