HOW TO DEPLOY A REACT WEBSITE IN GITHUB
Oussama Afassi
Software Engineer and Web Developer | Web Technologies Engineering Student | (React - Next)Js | MERN Stack
So the other day a friend of mine Taha Ouad asked me how can he deploy a React website in github, so i thought it would be better if i post it here so everyone can benefit from the information .
Note : this article is written assuming that you already know how to create a github repository, if you dont know how to do so you can check my other article here explaining how to create a github repository.
Exemple in the image
"predeploy" : "npm run build",
领英推荐
"deploy" : "gh-pages -d build",
( If you dont see the visit site button or the page says error 404, dont panic just wait a minute or so and refresh the page and it will work )
I hope this article helped you.
Full stack developer
1 年Thank you for your help ??.