You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out how to change the starting path in my app for the production build using the "homepage" setting in the package.json.
"homepage":"http//server-name/MyApp"
For this to work I also had to change my routes (using react-router) to include the subdirectory:
<Route path="/MyApp" components={App}>
This works great in prod but when I run npm start during development, I have to manually add "MyApp" to the url. Is there any way I can set this so it npm start runs the app as follows:
http://localhost:3000/MyApp
Thanks!
The text was updated successfully, but these errors were encountered:
I found out how to change the starting path in my app for the production build using the "homepage" setting in the package.json.
"homepage":"http//server-name/MyApp"
For this to work I also had to change my routes (using react-router) to include the subdirectory:
<Route path="/MyApp" components={App}>
This works great in prod but when I run npm start during development, I have to manually add "MyApp" to the url. Is there any way I can set this so it npm start runs the app as follows:
http://localhost:3000/MyApp
Thanks!
The text was updated successfully, but these errors were encountered: