Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react: app starting with localhost/appname

after deploy gh-pages
After I deploy the my app to gh-pages, it does not start with http://localhost:3000. It starts with http://localhost:3000/appname and can not viewed in my app; local and gh pages, I can cannot see data on app on my homepage.

like image 817
khan Avatar asked Oct 29 '25 05:10

khan


1 Answers

Check your package.json there is a property called homepage, according to your screenshots that value is now "redux-store" change it to "/" it will change the homepage and you can access your site at http://localhost:3000

like image 141
Amit Dutta Avatar answered Oct 31 '25 10:10

Amit Dutta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!