Reputation: 13
Hey. I have a problem with react. I use '/' path for client (some static html content), and '/panel' for example for another server using 1 domain. But i have errors which don't load my react page.
So on home location (http://localhost/) all good. http://localhost/panel - only 'react app' in title.
Upvotes: 1
Views: 657
Reputation: 4207
That's because your React app tries to load the CSS and JS from the root path. Configure the homePage field in package json to be
"homePage": "/panel"
Upvotes: 1