How I put my repl on a free custom domain!!!
Ok so I created https://slight.gq, which is my URL shortener. But the process was long and tricky to get right so I thought I'd share.
Just make a repl or something you want to host.
Go to https://freenom.com and create an account and register a domain. It's super simple. Once you have your domain click "manage domain":
Now go to "name servers":
Leave this tab open and continue to the next step.
Make/login to your cloudfare account, then click "add site":
Now add your site you registered on freenom:
Select free plan (or paid if you want) on cloudfare and continue until you get to the "Looking up existing DNS records" this step for some reason takes forever for me. So I just clicked here:
There it should say to change the name servers and remove freenom.com ones. Go back to your freenom.com tab with nameservers and add the ones that cloudfare lists:
In your repl click add custom domain (the pencil icon) and then add your website (without https or www) and then copy the some-hash-here.repl.co thing it gives you. Now go back to your cloudfare tab and go to DNS:
Now you want to add a CNAME record to your DNS:
IMPORTANT make sure you click the "proxied" icon so it changes to "DNS only" this is important to make sure your website doesn't infinite loop (idk why it did this). Also if you want just https://yoursite.whatever instead of https://www.yoursite.whatever replace "www" with "@".
Now add that record and go back to the repl page and click "next" then "finish linking" and wait for it to link.
Now you have a custom website! Post a comment if you want help with something!
@zelferry THere is an extremely easy way to make an acount just search up anything you want for example if you want your url to be hello.ml search hello.ml with the.ml thing. Then click checkout verify your email and then go to https://fakeaddressgenerator.org/usa_address_generator for your info