Setting up Vercel with an ill.my.id subdomain

This guide will walk you through the process of setting up a Vercel site and pointing your ill.my.id subdomain towards it.

Ensure you have a Vercel site

If you haven’t made a Vercel site, make sure to make one. Follow the instructions in Vercel’s Docs.

Creating the domain

  1. Navigate to your Vercel dashboard. Then, navigate to the “Domains” tab of your project’s settings. Click “Add Domain” and enter the ill.my.id subdomain you want (e.g. example.ill.my.id).

NOTE

You may see Vercel enable by default the “Redirect example.ill.my.id to www.example.ill.my.id” button. We recommend to disable it since it will make the main subdomain (example.ill.my.id) be a redirect to a nested subdomain (www.example.ill.my.id), which you would have to make a file for alongside the main subdomain.

  1. Once you’re past the “Configure Environment and Redirects” tab—if unsure, just click “Save”—then click “Continue manually”. Copy the CNAME verification value that you’ll get; you’ll need this in step 4.
  2. Fork our repository and create a file in the /domains folder named your-domain.json. Replace your-domain with the name of the subdomain you chose earlier in the Vercel dashboard.
  3. In this file, paste the following JSON and make sure to replace all the values properly.
{
    "owner": {
        "username": "your-github-username",
        "email": "your-email-address@example.com"
    },
    "records": {
        "CNAME": "the-value-vercel-gave-you.vercel-dns-017.com"
    }
}

NOTE

Make sure you delete the dot (.) on the end of CNAME value, as it’s will be added using script.
Instead of "the-value-vercel-gave-you.vercel-dns-017.com.", it’s should be "the-value-vercel-gave-you.vercel-dns-017.com".

Make a pull request

Once you have made these two files, you can now make a pull request to the repository. Then you’ll need to be patient until it gets merged. If you want a chance to get your PR merged faster, join our Discord server and send your pull request link once in #pull-requests.

Once the pull request has been merged your site should be working; if it is still redirecting to the ill.my.id site, try clearing your cache.