Build Blog Site using Gatsby JS — Part 5 (Deploy site to Netlify)

Dicka Ismaji at 18 Feb 2022 2:06

3 min read
Build Blog Site using Gatsby JS — Part 5 (Deploy site to Netlify)

In the previous part, we have done to set up SEO on HTML meta tag using React Helmet.

Here to online your site, we have to deploy on server. because we are on the learning step, we can use free hosting to deploy static sites using Netlify.

  1. Build Blog Site using Gatsby JS — Part 1 (Getting Started)
  2. Build Blog Site using Gatsby JS — Part 2 (Chakra UI & Home Page)
  3. Build Blog Site using Gatsby JS — Part 3 (Gatsby Plugin Mdx)
  4. Build Blog Site using Gatsby JS — Part 4 (React Helmet and SEO tag)
  5. Build Blog Site using Gatsby JS — Part 5 (Deploy site to Netlify)

Introduce Netlify

Netlify Logo

Netlify is one of the most amazing web development platforms which is meant to multiply your productivity in the best possible way. The platform helps developers to build, test, and deploy websites. By unifying the modern decoupled web elements from local development processes to advanced logic, Netlify is offering an amazingly faster way to ensure much more performant, scalable, and secure websites and applications.

The website industry is changing away on a continuous as well as a rapid basis from monolithic to decoupled approaches. While developers are storming ahead with much more power than ever before. However, Netlify has been developed to cater to this moment. It is offering incredible web automation technology as well as web-hosting infrastructure. Netlify is offering next-generation solutions in both aspects and most amazingly, at a very affordable range.

It will work by connecting your GitHub repository to pull your website’s source code. After that, it will run a build process to pre-render your website’s pages into static HTML. The resulting pages will then be distributed and deployed across a wider range of content delivery networks. However, whenever, a user will request to access your website, it will choose the nearest data center automatically to serve users effectively

Create Repository on Github

I assumed you if have created your repository on GitHub and pushed gatsby blog code to that repository, if you have not yet, you can do it first

if you didn’t understand you can search on google.

Deploy to Netlify

  1. Login your Netlify account and create a new site by import existing project
  2. You can select Github or other if you have a repository on it
  3. Search and pick your repository
  4. And then click deploy site Basically Netlify will automatically identify type of your project, so we not needed to config anything.
  5. Wait until build process done and your site has been deployed 👌, open the site by click the link.

Customize domain name

After process build, we can look that URL of site is a random word generated by netlify, we can change the domain using self domain or sub domain that provided by Netlify.

  1. Click on Domain settings
  2. Click on Options > Edit site name
  3. Give your custom site name

Okay, your site now is live on new domain


By using Netlify we can deploy static site for free, there are a limit of created page for free plan, but we chooose plan or we can delete a unused site that you created before.


Another posts

Dicka Ismaji
A boy that entushiast
with Technology

For business inquiry

Images by unsplash

Designed with Developed with Deployed with