How to Create Custom Subdomains on Vercel, Heroku and Netlify
Tags: netlify, vercel, heroku, hosting
Published: 2022-06-14 01:28:13

## Introduction

After you finish building a project, you'd usually want to take it out of your localhost and put it somewhere else where you or others can access it from as well. The next point of call would be to deploy the project to any of the several cloud hosting platforms available.

Some of these hosting platforms even give you free hosting and if you are like virtually every other developer, chances are that's what you'd be opting for. Of course, what you get is a subdomain and limited resources—but that is often more than enough for most stuff you'd be building. You're usually able to set the subdomain name from which your project will be accessed at the point of deployment. But, as it happens sometimes, your preferred subdomain may already be taken (or maybe you're just in a hurry) and you may opt for an auto-generated subdomain name which you can change later on if you wish.

However, after coming across several sizable projects (and even a personal portfolio site!) with auto-generated subdomains of the **"notorious-badlands-47642.hostingplatform.app"** kind, it became clear to me many either don't know they can customize their projects' subdomain names or just don't know how to. And that was why I set out to write this article. Picking three among the top cloud hosting platforms used by developers, I'd be showing you how to do just that.
<br />


## Vercel

1) Log in and click on the project whose subdomain name you want to change

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tnztd4qhku22gv5djhpy.png)
<br />


2) After it opens up, go to the settings page and click on **"Domains"**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gkh7r4sjjh6t4mojy81a.png)
<br />


3) Click on the "Edit" button on the particular domain you want to change

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qkxianc903jeu2u7ins5.png)
<br />


4) Edit it and click on "Save" after you are done

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/57od7s7b1g9dni5hki36.png)
<br />


5) That's it! Your new Vercel subdomain is ready.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/reyj28jpu23y7p0e5i74.png)
<br />


## Heroku

1) Log in and click on the project whose subdomain name you wish to change

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9w631feag2smhnvnwcs4.png)
<br />


2) After it opens up, click on **"Settings"**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/brhmymqjrfc24rej4k6t.png)
<br />


3) Change the text in the **"App name"** input field to your preferred subdomain name and click on **"Save"**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m3xxared1l7uqbmmfgro.png)
<br />


4) Done and dusted! Your new Heroku subdomain name is set.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tj7u778s6on493qfiqvn.png)
<br />


## Netlify

1) Log in and click on the project whose subdomain name you want to change

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qfxg1ua0bmshgvughl2o.png)
<br />


2) After it opens up, click on **"Domain settings"**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/opfn5p9wuq05nfv949jb.png)
<br />


3) Under **"Custom domains"**, click on **"Options"**, then on **"Edit site name"**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0drunavtb439rqyml6w0.png)
<br />


4) Input your preferred subdomain name and click on **"Save"**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jm83fczrvwn2f4vl7bci.png)
<br />


5) Just like that—you've got a new Netlify subdomain name!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uts3eojqcsh5plej9s7p.png)
<br />


## Conclusion
Whatever it is you're building, presentation is always important. Be it your personal side project or your portfolio site, the domain name is the first point of contact for all who will behold whatever you've built. Random strings spat out by an algorithm do not make for a presentable domain name.

Hopefully, with all the info in this article, your **"notorious-badlands-47642"** days are over! 😉