Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 11, 2022 06:40 am GMT

Deploy ReactJS app on shared hosting like GoDaddy, Hostinger etc.

Step 1 : Create .htaccess file in public folder and below content in it

Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]

Step 2: Build app using npm or yarn

npm run build
or
yarn run build

Step 3: Upload content of build/ directory in to public_html/ directory on shared hosting

Done.

Please follow to get updated posts and hit like to motivate me
Thanks


Original Link: https://dev.to/manojbhadane/deploy-reactjs-app-on-shared-hosting-like-godaddy-hostinger-etc-hko

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To