Go Pro Sign Up Login

Buy Now and unlock this series







yours forever

Become a Pro and unlock everything




per month

Hosting On Netlify

Next, we are going to learn how to host our Gatsby site using Netlify. First, we are going to add our project GitHub. After we add the project to GitHub, we are going to connect Netlify to Git, pick the repository we created for the project, set up our build settings, and then deploy!


Become a pro to download code and videos



almost 3 years ago [edited]

@Andre C Thank you Andre, I tried what you said and wasn't it. When I really read what netlify was telling me (that I had a problem with my gatsby-source-filesystem that my file system for /opt/build/repo/src/data/ didn't exist) I was able to solve (since I didn't have anything inside data I deleted it and took out

{ resolve: gatsby-source-filesystem, options: { name: data, path: ${__dirname}/src/data/, ignore: [**/\.*], // ignore files starting with a dot }, }, from my gatsby-config.js)

Hope it helps someone else!

Andre C

almost 3 years ago

There is an issue deploying. delete yarn.lock, add package-lock.json to your .gitignore file, and make sure to 'npm upgrade --save' to update your package file to up to date dependencies. hopefully this helps. Scott, you should definitely point out this issue somewhere


about 3 years ago

Hi, I've trying to deploy my site to netlify for days and I'm receiving the same error every time, already googled how to fix but nothing works. This is the error:

failed during stage 'building site': Build script returned non-zero exit code: 1

Want to join the conversation?

Become a Pro member today!