How to connect my domain (outside of repl.it)
Almost all night I've been trying to connect a free domain to repl.it to make sure it works before buying my actual one. It hasn't been connecting! I know I have to wait about 24 hours, but every few hours it has an error and starts over.
I'm not really interested in web hosting, but does anyone know a way and/or website I can use to add my code and add my domain?
You can get a free domain at https://freenom.com
When you bought a domain there, you have to go to the name servers and set it on default domain servers. Go to your DNS and add an A-record. Leave the name blank and set target to 126.96.36.199 . Save it and link your website. You CAN'T use www. If you want to use www. you have to add a CNAME, set the name to www and set the target to the link what you get in your repl and link your domain.
In the repl.it project editor, press the pencil button next to the URL bar in the website preview. Type/paste your domain into the box, then in your Freenom DNS settings add a new CNAME record with the randomly-generated repl.co URL then apply the changes in both places.
Read the support article for more in-depth information.