Photo by Billy Huynh on Unsplash
We’re done with our new site, it’s time to setup Netlify.
gatsby-cliin your repo (netlify needs it to build your site):
npm install --save gatsby-cli
- Get your node version
node -vand stick it in
.nvmrcto pin netlify to the version you used to build the site (note: don’t include the
vin version number i.e.
- Complete netlify setup up to step 5, but don’t hit deploy: A Step-by-Step Guide: Gatsby on Netlify | Netlify
advanced build settings
Remember those environmental variables we set up on
gatsby-config.js? It’s time add them up in Netlify.
Let’s the click deploy button to publish the site. If there were any errors, check out the logs in the Deploys section of your Netlify site.
To go to the next part of the series, click on the grey dot below which is next to the current marker (the black dot).