Gatsby on Github
npm i --save gh-pages
src/gastby-config.js
:
module.exports = {
pathPrefix: "/reponame",
};
package.json
:
{
"scripts": {
"deploy": "gatsby clean && gatsby build --prefix-paths && gh-pages -d public"
}
}
Source: https://www.gatsbyjs.org/docs/how-gatsby-works-with-github-pages/
🖖