DEV Community

Discussion on: Deploy / Host your React App with cPanel in Under 5 Minutes

Collapse
 
aidan_mcbride_eb5b5f4cad5 profile image
Aidan McBride

Great article, I found it super helpful.
I was wondering however, is there any way for cPanel to hide environment variables while hosting only a React site?
I have a React app I would like to be deployed, but I have environment variables that will be visible in my build, and this visible on the browser for anyone to access.

Collapse
 
manas2297 profile image
MANAS YADAV

Did you find a way to implement this?

Collapse
 
aidan_mcbride_eb5b5f4cad5 profile image
Aidan McBride

Not strictly with React, I'm going to try to create a Node Express backend and hide the API keys there

Collapse
 
emyboy profile image
Chukwuemeka Ifeora

Please how did you added the environment variables?

Collapse
 
collinsmarra profile image
CollinsAndrea

did you find a way to add environment variables?