Closed mahmoud305 closed 2 years ago
Hey, I'm facing the same problem yesterday. But you can take a look at this youtube video to solve it. The reason why npm run deploy command doesn't work is because the code is using Gatsby and to host it, it needs some settings.
yes! what i did was to write a gatsby config command like a bash script to deploy!
Inside package.json
,
"scripts": { "deploy": "gatsby build --prefix-paths && gh-pages -d public", .... }
then npm run deploy on terminal
this applies to the .github.io main domain
when i run npm run build it executes successfully but no build folder created
the screenshot for executing npm run deploy command.
i want to deploy the portfolio to git hub pages but that what happen (no build folder generated ) link for the compressed code [code] (https://www.mediafire.com/file/qzl4rb68tj53qa6/react-portfolio-template-master.rar/file)