DEV Community

Cover image for How to deploy your React website to Namecheap cPanel

How to deploy your React website to Namecheap cPanel

Andreea Egli on November 02, 2021

If you're a newbie web developer you probably never deployed a website to a web hosting provider before but I'm here to tell you that it is not tha...
Collapse
 
babaneh1001 profile image
Oluwaseun Ogunkayode

Thank you, I actually did not use the whole instructions as I just was having an issue using my ts file on name cheap, when I built it got converted and I had to just copy the js file generated to the cpanel

Collapse
 
armanhex profile image
Arman Hafizi

Hi! Thanks for the article.
Unfortunately, it does not work for me.
Your build message indicates that the homepage isn't actually set and I suspect that your compiled index.html file paths start with '/' rather than 'website.com/'. I was wondering if that makes any difference or problem in my case.
I also don't know how it does not matter where to put my built files. In any case, pasting the files into root or different directories haven't solved my issue.

Collapse
 
ukemike profile image
ukemike

Thankn you so much

Collapse
 
austinevick profile image
Augustine Victor

Thanks a lot. You saved my day!!!!!

Collapse
 
stephengade profile image
Stephen Gbolagade

Hi, nice article.

What it the product has secret keys stored in env files, will namecheap pick it up or is there a way to add the secret keys to it?

Collapse
 
stjamescodewarrior profile image
StJamesCodeWarrior

i followed these instructions to the tee. Im getting an error that says "Your connection is not private"

Collapse
 
peter_haro_4b11351874b7c9 profile image
Peter Haro

thank you so much, it really worked,

Collapse
 
renatosalhuana_2 profile image
renatosalhuana

it worked for me when I did it on the root folder of my domain, thanks!

Collapse
 
samterces profile image
SamTerces

I am unable to get the result with my URL

Collapse
 
decafujita profile image
Deca Fujita

Awesome! Thanks a lot!

Collapse
 
saytzeffd profile image
David O. Atanda

Is the url you set as the value of homepage the same as the domain name?

Collapse
 
saytzeffd profile image
David O. Atanda

This is urgent