Free web hosting for static website with custom domain name

Do you have your custom domain name bought and have a static website which you would like to host it for free? Yes, for real free without advertisement!

Thanks to to make it happen.


  1. Install late version of Nodejs
  2. Install by running command:

3. Now login to your custom domain provider account (e.g. GoDaddy, NameCheap, 1and1 etc) and go to DNS setting page for CNAME setup.

a. Add a new CNAME record to your domain.

b. Set the hostnames and to:

Here is the detailed instruction about setting up CNAME for

Deploying to your custom domain

Now you’re ready to deploy your project to your custom domain. With the Surge command line tool installed, you could run the following command:

And that’s it!

After some time, you can visit to your <custom-domain-name> and it should load website from

Here is the detailed instruction.


Cloud Solution Architect | Author | Full Stack Developer | |

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store