DEV Community

Cover image for Get a Developer Oriented Domain for Free and Use it with Vercel
0xkoji
0xkoji

Posted on • Edited on

Get a Developer Oriented Domain for Free and Use it with Vercel

https://thedev.id/

A free identity for developers on the web

Alt Text

thedev.id offers a subdomain, yourname.thedev.id for free which is awesome.
A great thing is that thedev.id allows devs to use Vercel.

Actually, I'm using it for my nextjs site that is hosting on Vercel.

Steps you will need are the below.

Step 1. Fork the repo
Step 2. Add your domain to subdomains.json
Step 3. Open a new PR
Step 4. Add yourname.thedev.id to a service(GitHub or Vercel)

Step 1 Fork the repo

Go to the following repo and Click the Fork button to fork the repo.

GitHub logo thedev-id / thedev.id

Identity for developers on the web.

thedev.id

An identity for developers on the web.

What is thedev.id

thedev.id is a free identity for developers on the web. This service offers a handy subdomain like foo.thedev.id or bar.thedev.id for use on your static sites via CNAME record. Fork, add subdomain and send a Pull Request. We will make it work.

How to get one

  • Star this repo.
  • Fork this repo.
  • Set a custom domain to your GitHub Pages.
  • Add your subdomain under subdomains.json file.
  • Run npm install and npm run sort to sort the keys alphabetically.
  • Send Pull Request.

Similar Services




Step 2 Add your domain to subdomains.json

Open subdomains.json and add the following style to the file.

"subdomain(whatever you want to have)": "site url that you are using for the site to host your site"
Enter fullscreen mode Exit fullscreen mode

In my case, the added line is like below.

"koji": "portfolio-nextjs-gdm7chx6i-kojikanao.vercel.app",
Enter fullscreen mode Exit fullscreen mode

All names are ordered alphabetically, so you have to follow that rule.

Step 3 Open a new PR

After editing subdomains.json, you need to push subdomains.json to your forked repo and open a new pull request

There is no specific format for a PR.
The following is my PR.

Alt Text

You can follow other people's styles.
https://github.com/fransallen/thedev.id/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc

The review process was very quick. In my case, it didn't take a day.

Add yourname.thedev.id to a service

Go to your project dashboard on Vercel and click Settings tab and select Domains then add subdomain.thedev.id.

Alt Text

The subdomain will work pretty soon!
Of course, it supports https, so you can access your website with https://subdomain.thedev.id.

In terms of GitHub, the process would be similar to Vercel. What you will need to do is to add the domain to your GitHub repo.

Hope you enjoy this!!!

Top comments (2)

Collapse
 
0xkoji profile image
0xkoji

maybe js.org/ ?