DEV Community

Discussion on: Creating a Portfolio Website Using GitHub Pages and React: Part 2

Collapse
 
bhargav_25 profile image
Bhargav Gohil

I have a custom Domain and I don't want to add Github pages themes in it.
What should I do to add a custom React Github portfolio on that domain ?
please can you help me with that.

Collapse
 
ionabrabender profile image
Iona Brabender

Hi Bhargav, if you want to use a custom domain with your GitHub Pages/ React app, you can just follow the above steps as normal and then specify this in the settings in your GitHub repository. Under the GitHub Pages section, there's a custom domain field where you can enter your own domain. I hope that helps!

Collapse
 
bhargav_25 profile image
Bhargav Gohil

Okay Got it.
Thank You So Much @Iona Brabender 😁

Collapse
 
vadiminsk profile image
Vadim Gadjimuradov

Hello. You should run build command in your project, something like npm build. And copy BUILD folder to you domain.
If you used create-react-app, note that build folder is in the gitigrone file