There are 2 options to deploy a Gatsby application
gatsby build command, we will need to transfer any keys in
We then run this command to get our production already built in
We can then run
gatsby serve to see our project
Netlify is a great option for hosting web applications and static websites.
We can deploy our project to Netlify with 2 options:
The benefit of deploying new site from Git is that Netlify will rebuild the site anytime there are changes in Github repo.
When deploying new site from Git repository, we need to add Variables from our
.env.development if we have any. We can do that in the “Show Advanced” option.
If we use Headless CMS such as Contentful or Strapi, it will be useful if we can trigger a rebuilt from Contentful any time we change our data.
To do that, we need to follow these steps: