How to add a subdomain on Vercel Hosting Platform
Hello and welcome to the devmaesters website, In this post I am going to show you how you can add a custom subdomain to a project deployed on vercel.
Vercel is a wonderful hosting platform with a very simple and easy to use deployment process. It is also very capable of deploying a wide range of programming projects that's based on different hosting platforms such as Next.js React.js, Django e.t.c.
To follow along with this post you must have already added a custom domain to your vercel dashboard. If you haven't then follow this link to learn how to do so.
Once you have added a custom domain to vercel via DNS Nameservers you have the ability to create subdomains directly from the vercel domain setting's page without having to go to your domain provider.
To achieve this go to the vercel domain settings page for the project you want to assign the subdomain to and follow the steps below.
In the input box, type in the subdomain you wish to add (e.g hashnft.devmaesters.com). This creates a subdomain for devmaesters.com.
Ps remember that the subdomain must be for a domain you have added in the past via DNS Nameserver on vercel.
Click on the add button and after a few minutes your subdomain to propagate.
When you see success marks then the subdomain has been assigned successfully to the project and you can click on the link to test it out in your browser.
Through this post I have been able to guide you through the process of adding a custom subdomain to your vercel project. If you have any questions then feel free to leave a comment down below and I will reply you as soon a possible.