Home
Support Forums

Automation of subdomain deploys

Netlify Site: https://brave-gates-f20d47.netlify.app/

Hi,

How can you programmatically create subdomains for a single site?

Additionally, the subdomain documentation isn’t entirely clear how to add a subdomain - I’d like to add a subdomain to the same site but there’s no clear way to do this (i.e. not branch subdomains), is this something Netlify provides?

Just like you add any other domain - by clicking on add custom domain or domain alias button.

Add domain aliases using the API and if you’re using Netlify DNS, you need to add DNS entries using API too.

Hi thanks,

It was just taking a while adding the first Domain Alias - leaving it a couple of hours seems to have fixed it and can now add multiple aliases fairly quickly!